Set a monochromatic theme and an appropriate background for Ubuntu.

This commit is contained in:
Colin Watson 2013-01-29 05:45:59 +00:00
parent 2a521bc7b0
commit de99029fea
2 changed files with 14 additions and 3 deletions

1
debian/changelog vendored
View File

@ -8,6 +8,7 @@ grub2 (2.00-13) UNRELEASED; urgency=low
"Ubuntu".
- source_grub2.py: Use attach_default_grub from apport's hookutils.
- Output a menu entry for firmware setup on UEFI FastBoot systems.
- Set a monochromatic theme and an appropriate background for Ubuntu.
-- Colin Watson <cjwatson@debian.org> Mon, 28 Jan 2013 11:08:07 +0000

View File

@ -28,9 +28,19 @@ test -d /boot/grub; cd /boot/grub
BACKGROUND_CACHE=".background_cache"
set_default_theme(){
# Set the traditional Debian blue theme.
echo "${1}set menu_color_normal=cyan/blue"
echo "${1}set menu_color_highlight=white/blue"
if [ "$GRUB_DISTRIBUTOR" = Ubuntu ]; then
# Set a monochromatic theme for Ubuntu.
echo "${1}set menu_color_normal=white/black"
echo "${1}set menu_color_highlight=black/light-gray"
if [ -e /lib/plymouth/themes/default.grub ]; then
sed "s/^/${1}/" /lib/plymouth/themes/default.grub
fi
else
# Set the traditional Debian blue theme.
echo "${1}set menu_color_normal=cyan/blue"
echo "${1}set menu_color_highlight=white/blue"
fi
}
module_available(){