diff options
Diffstat (limited to 'templates/base.liquid')
| -rw-r--r-- | templates/base.liquid | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/templates/base.liquid b/templates/base.liquid new file mode 100644 index 0000000..da4ad7d --- /dev/null +++ b/templates/base.liquid @@ -0,0 +1,73 @@ +# {{ theme_name }} Rockbox theme +# Generated using gen_theme.rb at {{ generated_at }} +# +# Theme made by Georg Gadinger <nilsding@nilsding.org> in 2021. +# Licensed under CC BY-NC-SA + +# Disable status bar and clear backdrop +%wd +%X(d) + +#################### +# Fonts and images # +#################### +%Fl(2,10-Espy Sans-Bold.fnt) +{{- fonts }} + +%xl(battery,batt.bmp,0,0,16) +%xl(battery_charging,battchrg.bmp,0,0,16) +%xl(playmodes,playmodes.bmp,0,0,9) +%xl(hold,hold.bmp,0,0) +{{- images }} + +############# +# Viewports # +############# +%Vd(playbackmode) +%?if(%mh, =, h)<%Vd(hold_lock)|> +%Vd(title) +%?if(%St(battery display), =, numeric)<%Vd(batteryn)|%Vd(batteryg)> + +%Vd(topbar) +{{- viewports }} + +######################### +# Playback status icons # +######################### +%Vl(playbackmode,1,3,20,10,-) +%xd(playmodes,%mp) + +######################## +# Lock for hold switch # +######################## +%Vl(hold_lock,13,3,8,10,-) +%xd(hold) + +############## +# Menu title # +############## +%Vl(title,20,3,95,13,2) +#%?if(%lh, =, h)<%HDD|> +%ac%?Lt<%?if(%Lt, =, Rockbox)<{{ default_title | default: main_menu_title }}|%?if(%Lt, =, Database)<Music|%Lt>>|{{ default_title | default: main_menu_title }}> + +####################### +# Battery (graphical) # +####################### +%Vl(batteryg,111,3,25,10,-) +%?if(%bp, =, p)<%?if(%bl, >, 94)<%xd(battery_charging, 16)|%?if(%bl, >, 88)<%xd(battery_charging, 15)|%?if(%bl, >, 81)<%xd(battery_charging, 14)|%?if(%bl, >, 75)<%xd(battery_charging, 13)|%?if(%bl, >, 69)<%xd(battery_charging, 12)|%?if(%bl, >, 63)<%xd(battery_charging, 11)|%?if(%bl, >, 56)<%xd(battery_charging, 10)|%?if(%bl, >, 50)<%xd(battery_charging, 9)|%?if(%bl, >, 44)<%xd(battery_charging, 8)|%?if(%bl, >, 38)<%xd(battery_charging, 7)|%?if(%bl, >, 31)<%xd(battery_charging, 6)|%?if(%bl, >, 25)<%xd(battery_charging, 5)|%?if(%bl, >, 19)<%xd(battery_charging, 4)|%?if(%bl, >, 13)<%xd(battery_charging, 3)|%?if(%bl, >, 6)<%xd(battery_charging, 2)|%xd(battery_charging, 1)>>>>>>>>>>>>>>>|%?if(%bl, >, 94)<%xd(battery, 16)|%?if(%bl, >, 88)<%xd(battery, 15)|%?if(%bl, >, 81)<%xd(battery, 14)|%?if(%bl, >, 75)<%xd(battery, 13)|%?if(%bl, >, 69)<%xd(battery, 12)|%?if(%bl, >, 63)<%xd(battery, 11)|%?if(%bl, >, 56)<%xd(battery, 10)|%?if(%bl, >, 50)<%xd(battery, 9)|%?if(%bl, >, 44)<%xd(battery, 8)|%?if(%bl, >, 38)<%xd(battery, 7)|%?if(%bl, >, 31)<%xd(battery, 6)|%?if(%bl, >, 25)<%xd(battery, 5)|%?if(%bl, >, 19)<%xd(battery, 4)|%?if(%bl, >, 13)<%xd(battery, 3)|%?if(%bl, >, 6)<%xd(battery, 2)|%xd(battery, 1)>>>>>>>>>>>>>>>> + +####################### +# Battery (numerical) # +####################### +%Vl(batteryn,110,1,27,10,2) +%ar%?if(%bc, =, c)<+|>%bl%% + +########################## +# Top Bar Separator Line # +########################## +%Vl(topbar,0,17,138,1,-) +%dr(0,0,138,1) + +## {{ filename }} starts below this line ## + +{{ content }} |
