Grub2 themes
Working with administrative privileges, copy the theme folder to /boot/grub2/themes/ and select the customized theme.txt file in the YaST Bootloader module. In theme.txt, add desktop-image: "file.png" at the start of the global block. The image must be a PNG or JPEG image with a color depth of 8 bits that you copy into the theme folder. For instance, highlight_c.png refers to the center of the screen, and _w, _n, _s, and _e refer to the four cardinal directions.Ī background image is far more appealing than a monochrome background. The file names for the highlight_* and slider_* files include final characters defining the position on a map: _c, _w, _n, _s, _e, _ne, _nw, _se, and _sw. The important thing to know about 3D designs is that the highlight and slider settings result from the values for selected_item_pixmap_style (= highlight_*.png) and scrollbar_thumb (= slider_*.png). Gimp gives you an easy option for changing the color. Open in Gimp and zoom in until the scale is large enough.įigure 5: In graphical mode, openSUSE's GRUB configuration uses bitmaps for the highlight bar. The highlight_c.png file consists of only one pixel. Use the Fill tool (also highlighted) to color the formerly green areas to reflect your wishes. In the HTML notation field of the Gimp color selector, enter hexadecimal values as in theme.txt. In Gimp, click on the upper color box just below the tool palette (highlighted in Figure 5). The slider_* files are responsible for displaying a scrollbar, which only appears if there is not enough space for all the items in the start menu. To adjust the color of the highlight bar, open the highlight_c.png file in Gimp ( Figure 5).
![grub2 themes grub2 themes](https://i.imgur.com/zB0qtod.jpg)
This means that 3D effects can be realized, although the openSUSE theme does not use any. The colors of the bars that highlight a selected menu item are not based on a setting in theme.txt, but on bitmaps.
![grub2 themes grub2 themes](https://i.stack.imgur.com/Oxo1y.jpg)
The file consists of five parts : a definition of global properties at the beginning and the sections + **image section, have been adjusted. Then open the theme.txt file in a text editor. įirst copy the /boot/grub2/themes/openSUSE/ folder to your home directory for editing. To create a background image and colors that you like, you need to be familiar with a few elements of the GRUB theme description language. It is easier to adapt an existing theme to suit your requirements. Figure 4: A cosmetic color change for the boot menu does not require any in-depth knowledge of the GRUB configuration syntax.Ĭreating your own GRUB theme is somewhat complicated.