grub: add theme

Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
AuxXxilium
2024-04-27 12:11:47 +02:00
parent 268bae540a
commit 9deeba61d8
9 changed files with 85 additions and 5 deletions

View File

@@ -43,12 +43,31 @@ function load_video {
}
load_video
if loadfont unicode; then
set gfxmode=auto
insmod gfxterm
terminal_output gfxterm
fi
if loadfont unicode ; then
if keystatus --shift ; then true ; else
if [ "${grub_platform}" == "efi" ]; then
insmod efi_gop
insmod efi_uga
else
insmod vbe
insmod vga
fi
insmod gfxterm
set gfxmode=1024x768
set gfxpayload=auto
terminal_output gfxterm
if terminal_output gfxterm ; then true ; else
terminal gfxterm
fi
insmod gfxmenu
loadfont ${prefix}/theme/dejavu_bold_14.pf2
loadfont ${prefix}/theme/dejavu_mono_12.pf2
insmod png
set theme=${prefix}/theme/theme.txt
export theme
fi
fi
set menu_color_normal=white/black
set menu_color_highlight=white/red
set color_normal=white/black

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 142 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 142 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 462 B

View File

@@ -0,0 +1,61 @@
# Arc Theme for GRUB2
#
# Copyright (C) 2024 AuxXxilium
#general settings
title-text: ""
desktop-color: "#333"
terminal-font: "Dejavu Sans Mono 12"
terminal-left: "0"
terminal-top: "0"
terminal-width: "100%"
terminal-height: "100%"
terminal-border: "0"
#progress bar
+ progress_bar {
id = "__timeout__"
left = 0
top = 0
height = 15
width = 100%
show_text = false
# just two vertical pixels of color #1793d1
bar_style = "progress_bar/progress_bar_*.png"
highlight_style = "progress_bar/progress_bar_hl_*.png"
}
# arc logo
+ image {
top = 50%-200
left = 50%-250
file = "arc_logo.png"
}
#boot menu
+ boot_menu {
left = 50%-150
width = 500
top = 50%+100
height = 300
item_font = "DejaVu Sans Bold 14"
item_color = "#999"
selected_item_font = "DejaVu Sans Bold 14"
selected_item_color= "#fff"
item_height = 26
item_padding = 0
item_icon_space = 0
item_spacing = 1
scrollbar = false
}
#help bar at the bottom
+ image {
top = 100%-56
left = 50%-175
file = "help_bar.png"
}