Theming: move $theme_name out of theming.cfg

This commit is contained in:
Eric Teunis de Boone 2023-04-08 11:43:08 +02:00
parent 056e1bee75
commit 676cc574e1
3 changed files with 12 additions and 4 deletions

View file

@ -25,8 +25,14 @@ export imgdevpath rootuuid
set pager=1 set pager=1
# Get theming # Get theming
if [ -f "${prefix}/mytheme.cfg" ]; then
if [ -f "${prefix}/theming.cfg" ]; then if [ -f "${prefix}/theming.cfg" ]; then
#source "${prefix}/theming.cfg" # load theme_name
source "${prefix}/mytheme.cfg"
# set theme
source "${prefix}/theming.cfg"
fi
fi fi
# Start the menuentries # Start the menuentries

2
boot/grub/mytheme.cfg Normal file
View file

@ -0,0 +1,2 @@
set theme_name="Cyberpunk"
export theme_name

View file

@ -1,5 +1,5 @@
# Make sure to have ${theme_name} defined!
set theme_name="Cyberpunk" #
insmod jpeg insmod jpeg
insmod png insmod png