Grub2 个人风格主题 MoonLight V0.1
1、主打黑色背景,包含主题元素中的background,image,progress_bar,circular_progress,icon等,名词及用法参见http://wiki.rosalab.ru/en/index.php/Grub2_theme_tutorial; 2、解压到grub2的themes目录下,并在你的grub2配置文件中主题段落加入以下代码: if [ -s $prefix/themes/MoonLight/theme.cfg ]; then source $prefix/themes/MoonLight/theme.cfg fi 如果有别的主题包可以在fi前加入else 并指向其他主题包的配置文件; 3、在grub2的配置文件中,在每个menuentry的{}前添加--class=deepin(视实际菜单情况而定,名称依据icons子文件夹内图标名称取),示例如下: menuentry " [ W ] Windows Boot Manager for Legacy BIOS" --class=windows --class=os --hotkey=w{ configfile "${prefix}/Config/02_windows.cfg" } menuentry " [ L ] Linux Recovery & More …" --class=Linux --hotkey=l{ configfile "${prefix}/Config/03_linux.cfg" } menuentry " [ G ] Grub 4 Dos Boot Menu" --class=shell --hotkey=t{ linux16 /Boot/grub4dos/Grub.exe }