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:
parent
3d736a5810
commit
20b544918d
|
@ -15,35 +15,35 @@ terminal-font: "Sans Regular 12"
|
|||
#ifdef MENU0
|
||||
+ hbox {
|
||||
left = 0
|
||||
+ label {text = MENU0 font = "Sans 10" color = "#d3d3d3" align = "left"}
|
||||
+ label {text = MENU0 font = "Sans 10" color = "#c0c0c0" align = "left"}
|
||||
}
|
||||
#endif
|
||||
#ifdef MENU1
|
||||
+ hbox {
|
||||
left = 0
|
||||
+ 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
|
||||
#ifdef MENU2
|
||||
+ hbox {
|
||||
left = 0
|
||||
+ 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
|
||||
#ifdef MENU3
|
||||
+ hbox {
|
||||
left = 0
|
||||
+ 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
|
||||
#ifdef MENU4
|
||||
+ hbox {
|
||||
left = 0
|
||||
+ 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
|
||||
}
|
||||
|
@ -54,11 +54,12 @@ terminal-font: "Sans Regular 12"
|
|||
top = 200
|
||||
height = 200
|
||||
item_font = "Sans Regular 12"
|
||||
item_color = #d3d3d3
|
||||
selected_item_color = "white"
|
||||
item_color = #c0c0c0
|
||||
selected_item_color = "black"
|
||||
selected_item_pixmap_style = "hl_*.png"
|
||||
item_height = 20
|
||||
item_padding = 15
|
||||
item_spacing = 5
|
||||
item_spacing = 10
|
||||
}
|
||||
|
||||
+ vbox {
|
||||
|
@ -68,20 +69,20 @@ terminal-font: "Sans Regular 12"
|
|||
top = 0
|
||||
left = 20%
|
||||
+ 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
|
||||
+ label {text = " " 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
|
||||
}
|
||||
+ hbox {
|
||||
top = 0
|
||||
left = 20%
|
||||
+ 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 = "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"}
|
||||
}
|
||||
}
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 267 B |
|
@ -475,6 +475,7 @@ if [ -d boot$N/isolinux/grub ] && [ $BOOT_EFI -ne 0 ] ; then
|
|||
$BASEDIR/tools/boot/$DI_CODENAME/parse_isolinux \
|
||||
boot$N/isolinux $CDDIR $BASEDIR/data/$DI_CODENAME/grub-theme.in "$DISKINFO_DISTRO" "$DEBIAN_KERNEL" "$DEBVERSION" \
|
||||
>> $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)
|
||||
echo " CD$N/boot/grub/grub.cfg has $NUM_ENTRIES boot entries defined"
|
||||
|
||||
|
|
Loading…
Reference in New Issue