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
Search



Donate

Rockbox Technical Forums


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

Rockbox Ports are now being developed for various digital audio players!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  How to use the value returned by %St() function in WPS
« previous next »
  • Print
Pages: [1]

Author Topic: How to use the value returned by %St() function in WPS  (Read 1867 times)

Offline Frankenpod

  • Member
  • *
  • Posts: 415
How to use the value returned by %St() function in WPS
« on: February 27, 2017, 05:02:42 PM »
If I use %St(foreground colour) I can get the current foreground colour.  But %Vf(%St(foreground colour)) doesn't work, I guess because of something to do with cast or variable type.  I know %Vf(-) will achieve that, but I was thinking of maybe manipulating the value returned by %St in order to allow user to set one foreground colour and then have wps use variations of that colour in the theme, not just that exact colour.
Does anyone know if there any way to 'cast' the value returned by %St so as to to something useful with it?  Thanks.
Logged

Offline Frankenpod

  • Member
  • *
  • Posts: 415
Re: How to use the value returned by %St() function in WPS
« Reply #1 on: January 08, 2018, 06:12:50 AM »
Just bumping this post in case anyone has an answer.

As it would be neat to be able to let the user specify the foreground colour (via the settings menu) and then to derive various shades of that colour, so you could pick 'blue' and the theme would adjust to use several different shades of blue, for example, rather than having to be monochrome.
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  How to use the value returned by %St() function in WPS
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.044 seconds with 15 queries.