# GRUB2 gfxmenu pop theme, based and inspired by Vimix and Dracula grub themes
# Designed for any resolution but some UEFI might interpret high resolution differently and scaling would be required

# Global Property
terminal-font: "HackNerdFontMonoBold16"
title-text: ""
desktop-image: "background.png"
desktop-image-scale-method: "stretch"
desktop-color: "#1E1E2E"
terminal-left: "0"
terminal-top: "0"
terminal-width: "100%"
terminal-height: "100%"
terminal-border: "0"

# Garuda Logo image
+ image {
    left = 50%-35
    top = 15%
    width = 100
    height = 100
    file = "logo.png"
}

# Show the boot menu
+ boot_menu {
  left = 30% # Starting coordinates of the menu box. 30% centers it horizontally relative to your screen width.
  top = 30% # Starting coordinates of the menu box. 30% centers it horizontally relative to your screen width.
  width = 45% # Dimensions of the invisible "container" that holds your OS list.
  height = 40% # Dimensions of the invisible "container" that holds your OS list.
  item_font = "HackNerdFontMonoBold16"
  item_color = "#CDD6F4" # Color of the NON-selected text.
  selected_item_font = "HackNerdFontMonoBold16"
  selected_item_color = "#F38BA8" # Color of the selected text.
  icon_width = 24 # Box size for the OS icons, scaled to fit these dimensions.
  icon_height = 28 # Box size for the OS icons, scaled to fit these dimensions.
  item_icon_space = 20 # Horizontal gap (in pixels) between the icon and the start of the text.
  item_height = 28 # Height of a single row in the menu. Must be larger than font size.
  item_padding = 3 # Internal "cushion" inside the row.
  item_spacing = 15 # Vertical gap between the different OS entries.
  selected_item_pixmap_style = "select_*.png"
}

# Information
+ vbox {
    left = 50%-300   # Half of your 600 width
    top = 80%        # Pushed down to the bottom area
    width = 600
    align = "center"
    + label { width = 600 height = 30 align = "center" color = "#F5C2E2" font = "HackNerdFontMonoBold16" text = "[↵] Boot selected OS" }
    + label { width = 600 height = 30 align = "center" color = "#CBA6F7" font = "HackNerdFontMonoBold16" text = "[↑ and ↓ Key] Navigation" }
    + label { width = 600 height = 30 align = "center" color = "#F38BA8" font = "HackNerdFontMonoBold16" text = "[E] Edit Selection" }
    + label { width = 600 height = 30 align = "center" color = "#B4BEFE" font = "HackNerdFontMonoBold16" text = "[C] GRUB Commandline" }
}

# Show a countdown message using the label component
+ label {
  top = 96%
  left = 33%
  width = 35%
  align = "center"
  id = "__timeout__"
  font = "HackNerdFontMonoBold16"
  text = "Booting soothly in %d seconds"
  color = "#F9E2AF"
  #color = "#CDD6F4"
}
