[Topic DIscussion] 有没有大神知道这个是怎么回事?如何解决
Tofloor
poster avatar
liuyongjin1987
deepin
2023-02-18 05:18
Author

44725765c65d1c4b6613a4c71f4afd9.jpg

#version:17
#lang:zh_CN.UTF-8
#themeInputDir:/usr/share/dde-api/data/grub-themes/deepin
#screenWidth:1920
#screenHeight:1080
#head end
title-text: ""
desktop-image: "background.jpg"
desktop-color: "#000000"
terminal-font: "Unifont Regular 17"
terminal-box: "terminal_box_*.png"
terminal-left: "0"
terminal-top: "0"
terminal-width: "100%"
terminal-height: "100%"
terminal-border: "0"

  • boot_menu {
    left = 28%
    top = 27%
    width = 850
    height = 500
    item_font = "Noto Sans CJK SC Regular 17"
    item_color = "#dddddd"
    selected_item_color = "#ffffff"
    item_height = 52
    item_spacing = 11
    item_padding = 11
    icon_width = 37
    icon_height = 26
    item_icon_space = 22
    item_pixmap_style = "item_.png"
    selected_item_pixmap_style = "selected_item_
    .png"
    menu_pixmap_style = "menu_.png"
    scrollbar_thumb = "scrollbar_thumb_
    .png"
    scrollbar_width = 8
    }
  • label {
    left = 0
    top = 98%
    width = 90%
    align = "center"
    id = "timeout"
    color = "#99E53E"
    font = "Noto Sans CJK SC Regular 14"
    text = "在 %d 秒内启动"
    }
  • label {
    left = 0
    top = 95%
    width = 100%
    align = "center"
    color = "#99E53E"
    font = "Noto Sans CJK SC Regular 14"
    text = "使用 ↑ 和 ↓ 键移动选择条,Enter 键确认,E 键编辑启动命令,C 键进入命令行"
    }
Reply Favorite View the author
All Replies
lizhu
deepin
2023-02-18 05:24
#1

你这不就是开机主题不对呗!分辨率改改?

Reply View the author
忘记、过去
deepin
2023-02-18 05:47
#2
  1. 检查 /etc/default/grub 文件,设置 GRUB_GFXMODE="1920x1080" (建议写死分辨率,不建议写多个或者 auto,生成主题的时候好像有问题)
  2. 终端执行 sudo /usr/lib/deepin-api/adjust-grub-theme,该程序会自动根据 grub 分辨率、背景等重新生成圆角、模糊效果的图片以及文字位置等,替换原有 grub 主题(可能会提示找不到 background_source 文件,手动把想要的 grub 背景图片改成这个名字,放在 /boot/grub/themes/deepin 文件夹下,重新执行即可)
  3. 检查 /etc/default/grub 文件,检查 GRUB_BACKGROUNDGRUB_THEME 是否指向 /boot/grub/themes/deepin
  4. 终端执行 sudo update-grub 更新 /boot/grub/grub.cfg

重启看看效果

Reply View the author
神逰九州
deepin
2023-02-19 00:10
#3

selected_item_* .png

我想是改这个文件,宽度缩小。

或者改terminal-width: "100%" 变成150%试试。

Reply View the author
liuyongjin1987
deepin
2023-02-19 20:21
#4
lizhu

你这不就是开机主题不对呗!分辨率改改?

确实是主题分辨率问题,已解决

Reply View the author