Skip to documentation content

Global Properties & Terminal

Configure desktop-image scaling, fallback colors, title headers, and the gfxterm console overlay in theme.txt.

Global theme properties

Top-level properties in theme.txt use a colon (:) instead of = and control the background canvas, title banner, and interactive command-line console:

globals.theme.txt
        
          
            # Background
          
            desktop-image: "background.png"
          
            desktop-image-scale-method: "stretch"
          
            desktop-image-h-align: "center"
          
            desktop-image-v-align: "center"
          
            desktop-color: "#090B10"
          
            
          
            # Hide default GRUB title string when using custom labels
          
            title-text: ""
          
            title-font: "Inter Bold 28"
          
            title-color: "#E3E2E6"
          
            
          
            # Interactive gfxterm console (pressed with 'c' or 'e' at boot)
          
            terminal-font: "JetBrains Mono Regular 16"
          
            terminal-box: "terminal_*.png"
          
            terminal-left: "10%"
          
            terminal-top: "12%"
          
            terminal-width: "80%"
          
            terminal-height: "76%"
          
            terminal-border: "8"
          
        
      

Background scaling options (desktop-image-scale-method)

Value Behavior Best for
"stretch" Scales the image to fill the entire viewport Full-screen gradients and wallpapers matching the display ratio
"crop" Preserves aspect ratio and crops overflow according to h-align/v-align Photographic wallpapers shared across 16:9 and 16:10 displays
"padding" Displays the image at native pixel size and fills margins with desktop-color Centered emblems over a solid background color
"fitwidth" / "fitheight" Fits one dimension while preserving aspect ratio Banner illustrations

Designing the gfxterm console

When a user presses c (command line) or e (edit kernel parameters) at boot, GRUB hides the boot_menu and opens its interactive terminal inside the rectangle defined by terminal-left, terminal-top, terminal-width, and terminal-height.

  • Always pick a monospace .pf2 font for terminal-font so kernel command lines and ls / videoinfo output stay aligned.
  • Give terminal-box a high-contrast dark background: GRUB prints light terminal text by default; a bright or overly transparent terminal box makes emergency boot editing hard to read.
  • Preview inside Grub Designer: Press C on the canvas to toggle live gfxterm console preview and verify padding and readability immediately.