- Status Closed
- Percent Complete
- Task Type Bugs
- Category User Interface → Themes
- Assigned To No-one
- Operating System All players
- Severity Low
- Priority Very Low
- Reported Version Release 3.6
- Due in Version Undecided
-
Due Date
Undecided
- Votes
- Private
FS#11593 - %Vf/%Vb (viewport colours) not working in conditionals
The colour parameters were made independent of the viewport definitions not long ago which was supposed to give the opportunity to e.g. change the line colour within the viewport - and I asked in IRC - should also have given the opportunity to put the colours in conditionals (e.g. you could make the volume display turn red if volume is set to above 0dB etc.).
I tried this because it would greatly simplify my WPS which uses these “indicator” colours but gets the effect with the help of conditional viewports for now.
For a first try I only wrote the following test.wps which should display the word “Test” in magenta if the hold switch is off and in cyan if it is on:
—
%wd
%V(0,0,-,30,1)%?mh<%Vf(00FFFF)|%Vf(FF00FF)>
Test
(also tried putting the %?mh conditional on its own line)
—
When entering the WPS (hold off), the magenta “Test” is displayed correcty, if I switch hold the text disappears and won’t come back anymore however often I switch hold on or off. This was tested in an X5 sim but also with grey shades in an M5 sim and on target.
2010-10-13 09:47
Reason for closing: Fixed
Additional comments about closing: Warning: Undefined array key "typography" in /home/rockbox/flyspray/plugins/dokuwiki/inc/parserutils.php on line 371 Warning: Undefined array key "camelcase" in /home/rockbox/flyspray/plugins/dokuwiki/inc/parserutils.php on line 407
in r28266
Loading...
Available keyboard shortcuts
- Alt + ⇧ Shift + l Login Dialog / Logout
- Alt + ⇧ Shift + a Add new task
- Alt + ⇧ Shift + m My searches
- Alt + ⇧ Shift + t focus taskid search
Tasklist
- o open selected task
- j move cursor down
- k move cursor up
Task Details
- n Next task
- p Previous task
- Alt + ⇧ Shift + e ↵ Enter Edit this task
- Alt + ⇧ Shift + w watch task
- Alt + ⇧ Shift + y Close Task
Task Editing
- Alt + ⇧ Shift + s save task
I tried what was suggested in the first closing message (see History tab here ^ ) adapted to greyshades for my M5 and by using %pc as dynamic tag.
My new test.wps looks as follows: http://pastebin.com/W43dnVAd but it didn’t work. The TTT or GGG inside the conditional but behind the %Vf tags didn’t show up at all but I’m not sure if they should. The foreground greyshade didn’t change, it just stayed black (0).