# grommunio GRUB2 theme (theme id "gr1")
#
# The look of grommunio-web's login page: its 150deg #009FFD -> #2a2a72 gradient
# with the white ribbon overlay, a white 20px-radius card carrying the logo,
# #1d2939 text and the #009FFD 10px-radius "Sign in" button as the selection.
#
# Targets grub2 2.12 (Leap 15.6 / 16.0, SLE 15 SP6/SP7) and 2.14 (Tumbleweed).
# Geometry rules of gfxmenu that this file relies on (grub-core/gfxmenu):
#  * a component is never smaller than its content, so every image is shipped at
#    the size it is drawn at and the card is a fixed 504px (440 + shadow margins)
#  * the pixmaps of a boot_menu item are drawn as top/bottom padding around the
#    row; the unselected item_*.png are transparent copies of select_*.png so
#    selected and unselected text sit on the same baseline, and item_spacing
#    covers the 2 x 10px of pill padding plus a 4px gap
#  * a progress_bar is never drawn below 28x200px (gui_progress_bar.c), so the
#    8px countdown pill is centred in 28px-tall pixmaps with transparent padding
#  * the canvas paints components in reverse order of declaration, so the
#    countdown that overlaps the card must come before the boot_menu
# Fonts are loaded by grub.cfg (kiwi loads exactly DejaVuSans12/10/-Bold14 and
# ascii.pf2 from the theme directory, 00_header loads every *.pf2 in it).

desktop-image: "bootback.png"
desktop-image-scale-method: "crop"
desktop-image-h-align: "center"
desktop-image-v-align: "center"
desktop-color: "#1f5fc0"

title-text: ""
title-color: "#ffffff"
title-font: "DejaVu Sans Bold 14"
message-font: "DejaVu Sans Regular 12"
message-color: "#ffffff"
message-bg-color: "#1f5fc0"

terminal-font: "DejaVu Sans Mono Regular 12"
terminal-box: "terminal_*.png"
terminal-border: "0"

# countdown pill below the entries, inside the card (the visible 8px pill is
# 10px below the top of this 28px component)
+ progress_bar {
	id = "__timeout__"
	left = 50%-188
	width = 376
	top = 50%+112
	height = 28
	bar_style = "progress_bar_*.png"
	highlight_style = "progress_hl_*.png"
	highlight_overlay = true
}

+ label {
	id = "__timeout__"
	left = 50%-188
	width = 376
	top = 50%+146
	height = 14
	text = "The selected entry starts in %d s"
	font = "DejaVu Sans Regular 10"
	color = "#667085"
	align = "center"
}

+ label {
	left = 24
	top = 100%-32
	text = "C: Command line     E: Edit entry"
	font = "DejaVu Sans Regular 12"
	color = "#ffffff"
	align = "left"
}

# card body = the boot menu; menu_*.png continue the white card and its shadow
+ boot_menu {
	left = 50%-252
	top = 50%-42
	width = 504
	height = 256

	menu_pixmap_style = "menu_*.png"

	item_font = "DejaVu Sans Regular 12"
	item_color = "#1d2939"
	item_pixmap_style = "item_*.png"
	item_height = 24
	item_padding = 0
	item_spacing = 24

	selected_item_font = "DejaVu Sans Regular 12"
	selected_item_color = "#ffffff"
	selected_item_pixmap_style = "select_*.png"

	icon_width = 0
	icon_height = 0

	scrollbar = true
	scrollbar_width = 6
	scrollbar_thumb = "slider_*.png"
}

# card head: 32px shadow margin + 116px white area with the 220px logo
+ image {
	left = 50%-252
	top = 50%-190
	width = 504
	height = 148
	file = "card_head.png"
}
