Rockbox Technical Forums

Support and General Use => Theming and Appearance Customization => Topic started by: cereal_killer on January 09, 2018, 12:00:55 PM

Title: modifying GoldscreenO theme for Clip Zip
Post by: cereal_killer on January 09, 2018, 12:00:55 PM
I like the GoldscreenO theme for the clip Zip a lot and want to modify it slightly to reduce the information that is shown. Basically I want to remove the alternating information and just have it shown steadily, which I achieved for the shuffle and repeat icons, but I can't make the year being always shown (see screenshot).
I found the relevant part in GoldscreenO.wps
Code: [Select]
# year or track number and number of disk (number of disk from directory if not content of tag)
%Vl(t,26,68,42,16,2)%Vf(FFFFFF)%Vb(000000)
%ac%?iy<%?if(%in, ==, "<Untagged>")<%?if(%ik, ==, "<Untagged>")<%?if(%ss(0,2,%d(1)), !=, CD)<%?if(%ss(0,2,%d(1)), !=, cd)<%iy>>>>%t(2)%iy;%t(2)%?ik<%ik%?in<|/>|%?if(%ss(0,2,%d(1)), =, CD)<%ss(2,3,%d(1))%?in<|/>|%?if(%ss(0,2,%d(1)), =, cd)<%ss(2,3,%d(1))%?in<|/>>>>%?in</%in>|%?ik<%ik%?in<|/>|%?if(%ss(0,2,%d(1)), =, CD)<%ss(2,3,%d(1))%?in<|/>|%?if(%ss(0,2,%d(1)), =, cd)<%ss(2,3,%d(1))%?in<|/>>>>%?in</%in>>
but when commenting this part out and just put
Code: [Select]
%Vl(t,26,68,42,16,2)%Vf(FFFFFF)%Vb(000000)%ac%iy
nothing is shown. What should the correct code be?
I appreciate any help.
Title: Re: modifying GoldscreenO theme for Clip Zip
Post by: Frankenpod on January 09, 2018, 12:31:55 PM
Can't see what is wrong with that.

Does the track you are testing it with definitely have the year field set to a value?
What happens if you check for missing data and use:
%Vl(t,26,68,42,16,2)%Vf(FFFFFF)%Vb(000000)
%ac%?iy<%iy|---->
Title: Re: modifying GoldscreenO theme for Clip Zip
Post by: cereal_killer on January 10, 2018, 11:19:08 AM
What you suggested works. The year is correctly shown. Thanks a lot.