Support and General Use > Theming and Appearance Customization
When %cs returns 12 (aka Setting chooser)
(1/1)
iPodVT:
Is it possible to determine which Setting chooser is currently on screen? I specifically want to know whether or not it's the Brightness chooser, but I'm not finding a way to make that determination.
Thanks.
iPodVT:
I seem to have found a working solution, gleaned from adwaitapod.sbs. HUGE thanks to evan Dook!
Here's what I'm using:
# if we're in the Settings chooser and if the list title is Brightness, do A, otherwise do B
%?and(%if(%cs, =, 12),%if(%Lt, =, %Sx(Brightness)))<A|B>
If anyone has any corrections, improvements, or other comments, I'm all ears.
Dook:
Was just about to pop in and suggest that solution! I will say, you probably don't need to check %cs here and would be fine with just %?if(%Lt,=,%Sx(Brightness))<True|False> As far as I'm aware, there aren't any other screens that would use the Brightness string.
iPodVT:
--- Quote from: Dook on May 07, 2025, 01:18:07 PM ---Was just about to pop in and suggest that solution! I will say, you probably don't need to check %cs here and would be fine with just %?if(%Lt,=,%Sx(Brightness))<True|False> As far as I'm aware, there aren't any other screens that would use the Brightness string.
--- End quote ---
Thanks very much for your feedback.
After I submitted my two prior posts in this topic, and before I saw your post, I discovered an interaction between shortcuts and settings choosers that can cause this title test to fail. I have posted a report about it [edit: in] the User Interface and Voice forum with the title "A user-named shortcut to a setting chooser will change that chooser's list title" [https://forums.rockbox.org/index.php/topic,55334.0.html].
Navigation
[0] Message Index
Go to full version