# Documentation: https://www.gnu.org/software/grub/manual/grub/grub.html#Theme-file-format

desktop-image: "boot_menu_background.png"
desktop-image-scale-method: "crop"

# Not using 'title-text' (nor 'title-color' and 'title-font') as it seems to have limited flexibility in positioning.
title-text: ""

message-font: "Unifont Regular 16"
terminal-font: "Unifont Regular 16"

# Display version information using label field
+ label {
        # The distance from the left border of container to left border of the object in either of three formats:
        #
        # x     Value in pixels
        # p%    Percentage
        # p%+x  mixture of both
        left = 0%
        top = 5%
        width = 100%
        height = 10%
        # This field is modified by the build scripts, typically in the form: "X.Y.Z 64bit 20XX-YY-ZZT012345"
        text = "VERSION-SUBSTITUTED-BY-BUILD-SCRIPT MEMORY-BUS-WIDTH-SUBSTITUTED-BY-BUILD-SCRIPT GIT-COMMIT-DATE-SUBSTITUTED-BY-BUILD-SCRIPT"
        align = "right"
        color = "black"
        font = "DejaVu Sans Bold 16"
}

#boot menu
+ boot_menu {
        left = 60%
        top = 20%
        width = 40%
        height = 55%
        item_font = "DejaVu Sans Bold 14"
        item_color = "black"
        selected_item_color = "white"
        # The image file pattern for the selected item highlight styled box.
        selected_item_pixmap_style = "select_*.png"
        item_height = 16
        item_padding = 0
        item_icon_space = 0
        item_spacing = 4
        icon_width = 0
        icon_height = 0

        menu_pixmap_style = "menu_pixmap_style_*.png"
        scrollbar = true
        scrollbar_width = 20
        scrollbar_thumb = "scrollbar_thumb_*.png"
        scrollbar_frame = "scrollbar_frame_*.png"
}

# Countdown for automatic booting of the default menu option
+ progress_bar {
        left = 60%
        top = 75%
        width = 40%
        # Height parameter does not seem to be respected for some reason (bar too thick)
        height = 3%
        # The text to display. If “id“ is set to “__timeout__“ and no “text“ property is set then the amount of seconds will be shown.
        id = "__timeout__"
        # The border color for plain solid color rendering.
        # (Using a color from the background image)
        fg_color = "#345278"
        # The background color for plain solid color rendering.
        bg_color = "white"
        # The border color for plain solid color rendering.
        border_color = "black"
        text_color = "#F39721"
        font = "DejaVu Sans Bold 6"
        # The text to display on the progress bar. If the progress bar’s ID is set to “__timeout__“ and the value of this property is set to
        # “@TIMEOUT_NOTIFICATION_SHORT@“, “@TIMEOUT_NOTIFICATION_MIDDLE@“ or “@TIMEOUT_NOTIFICATION_LONG@“, then GRUB will update this property
        # with an informative message as the timeout approaches.
        text = "@TIMEOUT_NOTIFICATION_MIDDLE@"
}


# Hotkey legend bar (the "Press 'e' to edit boot options" menu)
+ label {
        left = 0%
        top = 90%
        width = 100%
        height = 10%
        text = "@KEYMAP_SHORT@"
        align = "right"
        color = "black"
        item_font = "DejaVu Sans Bold 14"
}
