if [ x$feature_default_font_path = xy ] ; then
   font=unicode
else
   font=$prefix/font.pf2
fi

if loadfont $font ; then
  set gfxmode=800x600
  set gfxpayload=keep
  insmod efi_gop
  insmod efi_uga
  insmod video_bochs
  insmod video_cirrus
  insmod gfxterm
  insmod png
  terminal_output gfxterm
fi

if background_image /isolinux/splash.png; then
  set color_normal=light-gray/black
  set color_highlight=white/black
elif background_image /splash.png; then
  set color_normal=light-gray/black
  set color_highlight=white/black
else
  set menu_color_normal=cyan/blue
  set menu_color_highlight=white/blue
fi

insmod play
play 960 440 1 0 4 440 1
set theme=/boot/grub/theme/skylanix
menuentry --hotkey=g 'Graphical install (recommended)' {
    set background_color=black
    linux    /install.amd/vmlinuz preseed/file=/cdrom/preseeds/default.preseed vga=788 --- quiet
    initrd   /install.amd/gtk/initrd.gz
}
menuentry --hotkey=i 'Install' {
    set background_color=black
    linux    /install.amd/vmlinuz preseed/file=/cdrom/preseeds/default.preseed vga=788 --- quiet
    initrd   /install.amd/initrd.gz
}
menuentry --hotkey=s 'Graphical install with speech synthesis' {
    set background_color=black
    linux    /install.amd/vmlinuz preseed/file=/cdrom/preseeds/default.preseed vga=788 speakup.synth=soft --- quiet
    initrd   /install.amd/gtk/initrd.gz
}
menuentry --hotkey=d 'Graphical install with accessible dark contrast' {
    set background_color=black
    linux    /install.amd/vmlinuz preseed/file=/cdrom/preseeds/default.preseed vga=788 theme=dark --- quiet
    initrd   /install.amd/gtk/initrd.gz
}
menuentry --hotkey=k 'Install with accessible dark contrast' {
    set background_color=black
    linux    /install.amd/vmlinuz preseed/file=/cdrom/preseeds/default.preseed vga=788 theme=dark --- quiet
    initrd   /install.amd/initrd.gz
}
