Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
translations translations
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Thank You for your continued support and contributions!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  When %cs returns 12 (aka Setting chooser)
« previous next »
  • Print
Pages: [1]

Author Topic: When %cs returns 12 (aka Setting chooser)  (Read 125 times)

Offline iPodVT

  • Member
  • *
  • Posts: 467
When %cs returns 12 (aka Setting chooser)
« on: May 06, 2025, 07:15:55 PM »
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.
Logged

Offline iPodVT

  • Member
  • *
  • Posts: 467
Re: When %cs returns 12 (aka Setting chooser)
« Reply #1 on: May 06, 2025, 08:55:10 PM »
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.
Logged

Offline Dook

  • Member
  • *
  • Posts: 66
    • D00k.net
Re: When %cs returns 12 (aka Setting chooser)
« Reply #2 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.
Logged

Offline iPodVT

  • Member
  • *
  • Posts: 467
Re: When %cs returns 12 (aka Setting chooser)
« Reply #3 on: May 09, 2025, 08:55:08 PM »
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.

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].
« Last Edit: May 09, 2025, 11:29:01 PM by iPodVT »
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  When %cs returns 12 (aka Setting chooser)
 

  • SMF 2.0.19 | SMF © 2021, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.035 seconds with 17 queries.