Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

templates: replace GRUB boot theme #186

Merged
merged 1 commit into from
Nov 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file removed templates/boot/grub/grml-theme/black.png
Binary file not shown.
Binary file removed templates/boot/grub/grml-theme/grml-logo.png
Binary file not shown.
Binary file added templates/boot/grub/grml-theme/item_c.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added templates/boot/grub/grml-theme/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added templates/boot/grub/grml-theme/menu_c.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added templates/boot/grub/grml-theme/menu_e.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added templates/boot/grub/grml-theme/menu_s.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
79 changes: 45 additions & 34 deletions templates/boot/grub/grml-theme/sb-theme.txt
Original file line number Diff line number Diff line change
@@ -1,45 +1,56 @@
# This is the theme to be used in Secure Boot mode

title-text: ""
title-color: "#FFFFFF"
desktop-image: "black.png"
message-color: "#FFFFFF"
title-color: "#FFF"
desktop-color: "#000"

+ image {
file = "grml-logo.png"
left = 45%
top = 2%
file = "logo.png"
left = 4%
top = 4%
}
+ image {
file = "uefisec.png"
left = 96%-250
top = 4%
}
+ boot_menu {
left = 15%
width = 70%
top = 16%
height = 36%
item_color = "#FFFFFF"
selected_item_color = "orange"
left = 4%+90
width = 92%-180
top = 25%
height = 55%
# TODO: set height=60%
item_color = #FFF
selected_item_color = #000
item_spacing = 4
item_height = 12
border_color = "#FFFFFF"
item_padding = 10
item_height = 20
menu_pixmap_style = "menu_*.png"
item_pixmap_style = "item_*.png"
selected_item_pixmap_style = "sel_*.png"
item_icon_space = 0
icon_width = 0
icon_height = 0
scrollbar_frame = "scbf_*.png"
scrollbar_thumb = "scbt_*.png"
scrollbar_width = 2
}


# Show an informational message.
+ vbox {
top = 55%
left = 20%
+ label {text = "Running in Secure Boot mode" color = "white" align = "left"}
+ label {text = ""}
+ label {text = "Press ENTER to boot or E to edit menu entry " color = "white"}
+ label {text = "Press C to enter the Grub commandline" color = "white"}
left = 4%+100
width = 80%
top = 90%
+ label {text = "Press ENTER to boot" color = "white" align = "left" }
+ label {text = "Press E to edit menu entry" color = "white" align = "left" }
+ label {text = "Press C to enter the GRUB commandline" color = "white" }
}

+ progress_bar {
id = "__timeout__"
top = 75%
left = 20%
text_color = "#FFFFFF"
fg_color = "orange"
bg_color = #66B
border_color = #006
text = "@TIMEOUT_NOTIFICATION_LONG@"
id = "__timeout__"
top = 90%+26
left = 96%-300
width = 190
height = 16
text_color = #000
fg_color = "#F47820"
bg_color = #FFF
border_color = #000
#border_color = "#F47820"
text = "@TIMEOUT_NOTIFICATION_MIDDLE@"
}
Binary file added templates/boot/grub/grml-theme/scbf_c.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added templates/boot/grub/grml-theme/scbf_n.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added templates/boot/grub/grml-theme/scbf_s.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added templates/boot/grub/grml-theme/scbt_c.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added templates/boot/grub/grml-theme/scbt_n.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added templates/boot/grub/grml-theme/scbt_s.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added templates/boot/grub/grml-theme/sel_c.afphoto
Binary file not shown.
Binary file added templates/boot/grub/grml-theme/sel_c.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
77 changes: 45 additions & 32 deletions templates/boot/grub/grml-theme/theme.txt
Original file line number Diff line number Diff line change
@@ -1,43 +1,56 @@
# This is the default GRUB theme of Grml

title-text: ""
title-color: "#FFFFFF"
desktop-image: "black.png"
message-color: "#FFFFFF"
title-color: "#FFF"
desktop-color: "#000"

+ image {
file = "grml-logo.png"
left = 45%
top = 2%
file = "logo.png"
left = 4%
top = 4%
}
+ image {
file = "uefi.png"
left = 96%-250
top = 4%
}
+ boot_menu {
left = 15%
width = 70%
top = 16%
height = 36%
item_color = "#FFFFFF"
selected_item_color = "orange"
left = 4%+90
width = 92%-180
top = 25%
height = 55%
# TODO: set height=60%
item_color = #FFF
selected_item_color = #000
item_spacing = 4
item_height = 12
border_color = "#FFFFFF"
item_padding = 10
item_height = 20
menu_pixmap_style = "menu_*.png"
item_pixmap_style = "item_*.png"
selected_item_pixmap_style = "sel_*.png"
item_icon_space = 0
icon_width = 0
icon_height = 0
scrollbar_frame = "scbf_*.png"
scrollbar_thumb = "scbt_*.png"
scrollbar_width = 2
}


# Show an informational message.
+ vbox {
top = 55%
left = 20%
+ label {text = "Press ENTER to boot or E to edit menu entry " color = "white" align = "left"}
+ label {text = "Press C to enter the Grub commandline" color = "white"}
left = 4%+100
width = 80%
top = 90%
+ label {text = "Press ENTER to boot" color = "white" align = "left" }
+ label {text = "Press E to edit menu entry" color = "white" align = "left" }
+ label {text = "Press C to enter the GRUB commandline" color = "white" }
}

+ progress_bar {
id = "__timeout__"
top = 75%
left = 20%
text_color = "#FFFFFF"
fg_color = "orange"
bg_color = #66B
border_color = #006
text = "@TIMEOUT_NOTIFICATION_LONG@"
id = "__timeout__"
top = 90%+26
left = 96%-300
width = 190
height = 16
text_color = #000
fg_color = "#F47820"
bg_color = #FFF
border_color = #000
#border_color = "#F47820"
text = "@TIMEOUT_NOTIFICATION_MIDDLE@"
}
Binary file added templates/boot/grub/grml-theme/uefi.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added templates/boot/grub/grml-theme/uefisec.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions templates/grub-theme-sources/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Grub Theme image sources
========================

Source files used to build the PNGs in templates/boot/grub/grml-theme.
Affinity Photo 2 was used.
Binary file added templates/grub-theme-sources/logo.afphoto
Binary file not shown.
Binary file added templates/grub-theme-sources/menu_c.afphoto
Binary file not shown.
Binary file added templates/grub-theme-sources/menu_e.afphoto
Binary file not shown.
Binary file added templates/grub-theme-sources/menu_s.afphoto
Binary file not shown.
Binary file added templates/grub-theme-sources/scbf_c_n_s.afphoto
Binary file not shown.
Binary file added templates/grub-theme-sources/scbt_c_n_s.afphoto
Binary file not shown.
Binary file added templates/grub-theme-sources/uefi.afphoto
Binary file not shown.
Binary file added templates/grub-theme-sources/uefisec.afphoto
Binary file not shown.