You can change the default background by adding a \_ISO\MyBackground.bmp.gz or MyBackground.bmp file or by modifying the \_ISO\MyE2B.cfg file
However you can also have different background wallpapers for different menus (and change other menu settings like the menu text colours).
You can configure E2B so that each sub-menu displays a different background wallpaper bitmap. See video in my blog post here
. Also this YouTube video
by Liu Evan.
Note: Wallpaper .bmp files can be compressed using 7Zip to gzip format, or, for even better compression, you can use the LZMA utility (see \_ISO\docs\E2B Utilities\LZMA\ReadMe_LZMA.txt for details on how to use drag-and-drop to compress any file).
E2B (i.e. grub4dos) will automatically detect if any .bmp or text file is compressed and how it has been compressed (the file extension is irrelevant).
The smaller the file, the faster it will load.
E2B v1.72+ can also use JPEG encoded graphics files for backgrounds.
Instructions below apply to E2B v1.62+ (the \_ISO\MAINMENU\$$$SetDefaultMenu.mnu file should be present).
Set the Main menu background
To have a different background for a sub-menu, you must first set-up E2B so that the Main menu background will always be re-loaded when the Main menu is displayed - otherwise when you return to the Main menu, the menu background from the previous menu will still be displayed.
1 Make a new file at \_ISO\MAINMENU\$$$$CONFIG\CONFIG.mnu
2 Add a background image (splashimage) command, you can also add other commands such as color commands (if required), etc. to the CONFIG.mnu file - e.g.
Example 1: Place Aliums.bmp.gz file is in same folder as CONFIG.mnu file ($HOME$ = path of the .mnu file)
color red/black white/black
Add a second pair of colours to change the highlighted menu text colour. The 2nd colour in each pair is the background colour and will be ignored - or use 'color normal' and 'color highlight' as in Example 2...
Example 2: Place bitmap file in a different folder - .e.g. default E2B bitmap
color highlight=0xFFFF00 ;; # background will be transparent
Note: Any changes in this file will affect ALL menus unless you also use a similar CONFIG.mnu file for each sub-menu (see below).
Define different backgrounds for each sub-menu
You can have a different backgrounds and other settings for one or more of the 'normal' types of sub-menu.
Someone has made a YouTube video showing you how to do this here
Note: You must specify the Main menu background using a \_ISO\MAINMENU\$$$$CONFIG\CONFIG.mnu file otherwise the Main menu background will not be re-loaded when you go back to the Main menu.
This example is for the ANTIVIRUS sub-menu...
1. Create a new folder at \_ISO\ANTIVIRUS\$$$$CONFIG and place your background bitmap in the new folder.
2. Create a \_ISO\ANTIVIRUS\$$$$CONFIG\CONFIG.mnu file with your settings- e.g. (assumes the bitmap file is in the same folder as the .mnu file)
color red/blue white/blue
Because the $$$$CONFIG folder will be enumerated first (E2B alphabetically sorts files), then the commands will be executed when the AntiVirus menu loads.
The color command is optional and will affect the menu text only. Add a second pair of colours to change the highlighted menu text colour. The 2nd colour in each pair is the background colour and will be ignored - or use 'color normal' and 'color highlight' as in Example 2 above.
If you want to use the same bitmap background for all of the sub-menus, then place the bitmap in the \_ISO folder (e.g. \_ISO\submenu.bmp.gz) and change the first splashimage line to:
Then copy the $$$$CONFIG folder to all sub-menu folders (except WINDOWS and MAINMENU). This would mean that any change you make to the sub-menu CONFIG.mnu file would need to be copied to all other sub-menus however. So instead, your CONFIG.mnu could call a grub4dos batch file - e.g.
Then you would just need to change the submenu_config.g4b file to make the change affect all sub-menus.
Note: If you specify a different background in \_ISO\MAINMENU\$$$$CONFIG\CONFIG.mnu from the default \_ISO\MyBackground.bmp file (or the background file used in MyE2B.cfg), E2B will first load the \_ISO\MyBackground.bmp file (or default E2B file) and just before the Main menu is displayed, it will then load the background file from \_ISO\MAINMENU\$$$$CONFIG\CONFIG.mnu .
If you add 'call Fn.70 3' to the MyE2B.cfg file, then the user will see the default bitmap first during file enumeration and then the bitmap from $$$$CONFIG.mnu will be loaded when the Main menu is displayed.
See video in my blog post here.
# WINCOUNT=1 below is only required if \FASTLOAD.YES exists and E2B v1.79 or earlier
###if exist /FASTLOAD.YES set WINCOUNT=1
# Show background wallpaper during file enumeration
call Fn.70 3
\_ISO\MAINMENU\$$$$CONFIG\CONFIG.mnu (main menu image)
Background for AUTO (Direct) Menu (E2B v1.70+)
The file \_ISO\AUTO.bmp will be used as the background for the AUTO menu, if it is present. Note that you can compress the file using gzip or LZMA (best) or use a JPEG file, but the file name must remain as 'AUTO.bmp'.
The bitmap must be the same size as the Main menu bitmap (e.g. 800x600). Menu colours, etc. cannot be changed, only the background image.
If you want to set different colours for the menu text, then you must create a \_ISO\AUTO.g4b batch file - this will be used instead of the AUTO.bmp file - e.g.
color normal=0x1c highlight=0xe2
Note that you could (in theory) also load a different sized bitmap by setting the graphics mode - e.g.
color normal=0xc highlight=0xe
graphicsmode -1 1024 768
See the MyE2B.cfg file for other color commands (e.g. you could change the colour of the menu border frame or the console text colour).
Backgrounds for Windows Install menus (E2B v1.70+)
If any of the following files exist, they will be loaded as a background wallpaper for the appropriate Windows Install menu. If the file does not exist, then the background will be unchanged from the previous menu.
- \_ISO\WINMENU.bmp (background for the Windows Install Menu - if any of the other Windows .bmp are used, this should also exist)
The bitmap must be the same size as the Main menu bitmap. You can compress .bmp files using gzip or LZMA, or use JPEG encoding (v1.72+), but the name+extension must not be changed (it must be .bmp).
If you only use \_ISO\WINMENU.bmp to change the Windows Install menu background, then all the Windows Install sub-menus will also use this background.
If you want to also change the colours (or other settings), then use a .g4b file (e.g. \_ISO\WINMENU.g4b) instead of a .bmp file - see AUTO section above for details of what to put in each file.
With E2B v1.78+ and grub4dos 0.4.6a we can use the 'stamp' feature which will overwrite the wallpaper background with any small image we desire.
For instance, we could stamp a 300x100 'boiler plate' containing our company logo onto the wallpaper in the Main menu, and then stamp a 300x100 AntiVirus logo onto the AntiVirus menu wallpaper:
color red/blue white/blue
splashimage --offset=500=0 $HOME$/AVStamp.bmp
color red/black white/black
splashimage --offset=500=0 /_ISO/LogoStamp.bmp