Tweak grub menu theming

Add a png to use as highlighting for the selected menu item, and play
with colours a little
This commit is contained in:
Steve McIntyre 2019-05-12 02:13:47 +01:00
parent 3d736a5810
commit 20b544918d
3 changed files with 14 additions and 12 deletions

View File

@ -15,35 +15,35 @@ terminal-font: "Sans Regular 12"
#ifdef MENU0 #ifdef MENU0
+ hbox { + hbox {
left = 0 left = 0
+ label {text = MENU0 font = "Sans 10" color = "#d3d3d3" align = "left"} + label {text = MENU0 font = "Sans 10" color = "#c0c0c0" align = "left"}
} }
#endif #endif
#ifdef MENU1 #ifdef MENU1
+ hbox { + hbox {
left = 0 left = 0
+ label {text = " >" font = "Sans 10" color = "white" align = "left"} + label {text = " >" font = "Sans 10" color = "white" align = "left"}
+ label {text = MENU1 font = "Sans 10" color = "#d3d3d3" align = "left"} + label {text = MENU1 font = "Sans 10" color = "#c0c0c0" align = "left"}
} }
#endif #endif
#ifdef MENU2 #ifdef MENU2
+ hbox { + hbox {
left = 0 left = 0
+ label {text = " >" font = "Sans 10" color = "white" align = "left"} + label {text = " >" font = "Sans 10" color = "white" align = "left"}
+ label {text = MENU2 font = "Sans 10" color = "#d3d3d3" align = "left"} + label {text = MENU2 font = "Sans 10" color = "#c0c0c0" align = "left"}
} }
#endif #endif
#ifdef MENU3 #ifdef MENU3
+ hbox { + hbox {
left = 0 left = 0
+ label {text = " >" font = "Sans 10" color = "white" align = "left"} + label {text = " >" font = "Sans 10" color = "white" align = "left"}
+ label {text = MENU3 font = "Sans 10" color = "#d3d3d3" align = "left"} + label {text = MENU3 font = "Sans 10" color = "#c0c0c0" align = "left"}
} }
#endif #endif
#ifdef MENU4 #ifdef MENU4
+ hbox { + hbox {
left = 0 left = 0
+ label {text = " >" font = "Sans 10" color = "white" align = "left"} + label {text = " >" font = "Sans 10" color = "white" align = "left"}
+ label {text = MENU4 font = "Sans 10" color = "#d3d3d3" align = "left"} + label {text = MENU4 font = "Sans 10" color = "#c0c0c0" align = "left"}
} }
#endif #endif
} }
@ -54,11 +54,12 @@ terminal-font: "Sans Regular 12"
top = 200 top = 200
height = 200 height = 200
item_font = "Sans Regular 12" item_font = "Sans Regular 12"
item_color = #d3d3d3 item_color = #c0c0c0
selected_item_color = "white" selected_item_color = "black"
selected_item_pixmap_style = "hl_*.png"
item_height = 20 item_height = 20
item_padding = 15 item_padding = 15
item_spacing = 5 item_spacing = 10
} }
+ vbox { + vbox {
@ -68,20 +69,20 @@ terminal-font: "Sans Regular 12"
top = 0 top = 0
left = 20% left = 20%
+ label {text = "Enter: " font = "Sans 10" color = "white" align = "left"} + label {text = "Enter: " font = "Sans 10" color = "white" align = "left"}
+ label {text = "Select " font = "Sans 10" color = "#d3d3d3" align = "left"} + label {text = "Select " font = "Sans 10" color = "#c0c0c0" align = "left"}
#ifdef MENU1 #ifdef MENU1
+ label {text = " " font = "Sans 10" color = "white" align = "left"} + label {text = " " font = "Sans 10" color = "white" align = "left"}
+ label {text = "Esc: " font = "Sans 10" color = "white" align = "left"} + label {text = "Esc: " font = "Sans 10" color = "white" align = "left"}
+ label {text = "Back up one level " font = "Sans 10" color = "#d3d3d3" align = "left"} + label {text = "Back up one level " font = "Sans 10" color = "#c0c0c0" align = "left"}
#endif #endif
} }
+ hbox { + hbox {
top = 0 top = 0
left = 20% left = 20%
+ label {text = "E: " font = "Sans 10" color = "white" align = "left"} + label {text = "E: " font = "Sans 10" color = "white" align = "left"}
+ label {text = "Edit Selection " font = "Sans 10" color = "#d3d3d3" align = "left"} + label {text = "Edit Selection " font = "Sans 10" color = "#c0c0c0" align = "left"}
+ label {text = " " font = "Sans 10" color = "white" align = "left"} + label {text = " " font = "Sans 10" color = "white" align = "left"}
+ label {text = "C: " font = "Sans 10" color = "white" align = "left"} + label {text = "C: " font = "Sans 10" color = "white" align = "left"}
+ label {text = "GRUB Command line" font = "Sans 10" color = "#d3d3d3" align = "left"} + label {text = "GRUB Command line" font = "Sans 10" color = "#c0c0c0" align = "left"}
} }
} }

BIN
data/buster/hl_c.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 267 B

View File

@ -475,6 +475,7 @@ if [ -d boot$N/isolinux/grub ] && [ $BOOT_EFI -ne 0 ] ; then
$BASEDIR/tools/boot/$DI_CODENAME/parse_isolinux \ $BASEDIR/tools/boot/$DI_CODENAME/parse_isolinux \
boot$N/isolinux $CDDIR $BASEDIR/data/$DI_CODENAME/grub-theme.in "$DISKINFO_DISTRO" "$DEBIAN_KERNEL" "$DEBVERSION" \ boot$N/isolinux $CDDIR $BASEDIR/data/$DI_CODENAME/grub-theme.in "$DISKINFO_DISTRO" "$DEBIAN_KERNEL" "$DEBVERSION" \
>> $CDDIR/boot/grub/grub.cfg >> $CDDIR/boot/grub/grub.cfg
cp -v $BASEDIR/data/$DI_CODENAME/hl*png $CDDIR/boot/grub/theme
NUM_ENTRIES=$(grep menuentry $CDDIR/boot/grub/grub.cfg | wc -l) NUM_ENTRIES=$(grep menuentry $CDDIR/boot/grub/grub.cfg | wc -l)
echo " CD$N/boot/grub/grub.cfg has $NUM_ENTRIES boot entries defined" echo " CD$N/boot/grub/grub.cfg has $NUM_ENTRIES boot entries defined"