summaryrefslogtreecommitdiff
path: root/apps/gui/skin_engine (follow)
Commit message (Collapse)AuthorAge
...
* revert r24478 and make the backdrop behaviour the same as it used to be (so ↵Jonathan Gordon2010-02-08
| | | | | | when in the wps the sbs' backdrop will be fully disabled). Also changes the API back to having to manually set the current backdrop. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24565 a1c6a512-1295-4272-9138-f99709370657
* make all the RTC tokens in the skins be useable in conditionals (I dare ↵Jonathan Gordon2010-02-05
| | | | | | anyone to use %cY though :D ) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24526 a1c6a512-1295-4272-9138-f99709370657
* fix a bug where the backdrop from the sbs is displayed on scrolling lines in ↵Jonathan Gordon2010-02-03
| | | | | | | | | | the wps when the %wd tag is not used. I'm not crazy about this commit and maybe a better solution would be to outright disable the sbs backdrop when in any skinned screen. This then means backdrops go back to needing special handling (i.e they arnt "free") git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24478 a1c6a512-1295-4272-9138-f99709370657
* make sure skins always draw with their backdrop, otherwise the backdrop only ↵Jonathan Gordon2010-02-01
| | | | | | changes on a full redraw which usually ends up being in the wrong order git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24435 a1c6a512-1295-4272-9138-f99709370657
* bugger, too tired, didnt mean to commit this. Jonathan Gordon2010-01-29
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24369 a1c6a512-1295-4272-9138-f99709370657
* fix the last of the red... note to self, fix backdrop.h!Jonathan Gordon2010-01-29
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24368 a1c6a512-1295-4272-9138-f99709370657
* skin rework (FS#10922) notable changes:Jonathan Gordon2010-01-29
| | | | | | | | | | - simplify the setting/skin relationship. settings are used as the fallback if it's not specified in the skin - backdrop buffers are now in the skin buffer (which has also increased slightly to accomodate 1 backdrop for each skin and 2 full colour screens for bmps (up for 1.5)) - if no %X is specified in a skin then the backdrop setting will be used. use %Xd to explicitly disable a skin from displaying a backdrop - the base skin can now specify a backdrop. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24366 a1c6a512-1295-4272-9138-f99709370657
* Add a missing #include, make a function static, make ↵Bertrik Sikken2010-01-18
| | | | | | touchpad_set_buttonlight implementation and declaration consistent git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24281 a1c6a512-1295-4272-9138-f99709370657
* fix redJonathan Gordon2010-01-15
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24234 a1c6a512-1295-4272-9138-f99709370657
* Get rid of those horrible macros to protect against NULL reference when ↵Jonathan Gordon2010-01-15
| | | | | | | | | looking up the id3 info for tokens. Change the way the wps playlist viewer gets the token values. All %i tokens are now supported (and a few others, experiment :) ) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24233 a1c6a512-1295-4272-9138-f99709370657
* outright reject any tags which need a special parser in the wps playlist ↵Jonathan Gordon2010-01-15
| | | | | | viewer. There is no intention of even trying to support them and without this possible upcoming changes will cause crashes if any of those tags are used. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24229 a1c6a512-1295-4272-9138-f99709370657
* fix typoJonathan Gordon2010-01-13
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24223 a1c6a512-1295-4272-9138-f99709370657
* Fix red and yellow. HWCODEC cant see the metadata for more than the next ↵Jonathan Gordon2010-01-13
| | | | | | track so only show the filename there git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24221 a1c6a512-1295-4272-9138-f99709370657
* FS#10898 - Add a playlist viewer to the WPS. ↵Jonathan Gordon2010-01-13
| | | | | | http://www.rockbox.org/wiki/CustomWPS#Playlist_viewer for an exaplanation how to use it. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24220 a1c6a512-1295-4272-9138-f99709370657
* fix checkwpsJonathan Gordon2010-01-07
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24194 a1c6a512-1295-4272-9138-f99709370657
* RTL language enhancements by Tomers Shalev and I.Jonathan Gordon2010-01-07
| | | | | | | | | | | | 3 new tokens: %ax - the next token should follow the language direction (what that means is defined by the individual tokens) %aL - align left on LTR language (same as %al), right on RTL languages %aR - align right on LTR language (same as %ar), left on RTL languages This commit adds %ax support to the %V and %Cl tokens. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24193 a1c6a512-1295-4272-9138-f99709370657
* Set svn:keywords property on .c and .h files that didn't already have it. ↵Bertrik Sikken2010-01-03
| | | | | | Correct svn:executable property on some files. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24165 a1c6a512-1295-4272-9138-f99709370657
* Fix further tabsAndree Buschmann2010-01-03
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24156 a1c6a512-1295-4272-9138-f99709370657
* Make debug builds compile againBertrik Sikken2010-01-02
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24150 a1c6a512-1295-4272-9138-f99709370657
* WPS: Use helper function to parse int value on album-art directiveTomer Shalev2009-12-29
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24121 a1c6a512-1295-4272-9138-f99709370657
* Fix FS#10215 - peakmeter updates breaks scrolling lines in conditionally ↵Jonathan Gordon2009-12-21
| | | | | | enalbed viewports... fix is to not disable conditional viewports during these updates which are *only* touching the pm token anyway git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24090 a1c6a512-1295-4272-9138-f99709370657
* Make read-only struct constBertrik Sikken2009-12-20
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24085 a1c6a512-1295-4272-9138-f99709370657
* Code police: add missing header file, make some local functions staticBertrik Sikken2009-12-20
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24083 a1c6a512-1295-4272-9138-f99709370657
* FS#10824 - viewport/statusbar API rework.Jonathan Gordon2009-12-09
| | | | | | | | | | | | | | | | Hopefully the only user visible changes are: - fm and recording screens go by the statusbar setting (sbs or inbuilt) - plugins go back to using the theme as they should for menus and lists - splash screens might get cut a bit... entirely theme and splash dependant.. if there is a problematic one we can look at it later. - hopefully nothing more than very minor screen flickerings... let me know exactly where they are so they can be fixed New GUI screen rules: * Screens assume that the theme (sbs+ui viewport+ maybe background image) are always enabled. They may be disabled on a per display basis, but MUST be re-enabled on exit * Screens must not be coded in a way that requires a statusbar of any type.. the inbuilt bar will be removed shortly. ALWAYS RESPECT THE USERS SETTINGS unless the screen requires the full display to fit. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23904 a1c6a512-1295-4272-9138-f99709370657
* Skin parser: Use parse_list() when possibleTomer Shalev2009-12-04
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23846 a1c6a512-1295-4272-9138-f99709370657
* fix FS#10674 - make skin debugger count the lines correctly so the line ↵Jonathan Gordon2009-12-03
| | | | | | number in the output is actually useful! git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23825 a1c6a512-1295-4272-9138-f99709370657
* fix segfault on %Rb tokenJonathan Gordon2009-11-30
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23798 a1c6a512-1295-4272-9138-f99709370657
* fix mono recording token,Jonathan Gordon2009-11-22
| | | | | | | Add %bu - usb powered token git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23713 a1c6a512-1295-4272-9138-f99709370657
* hopefully fix the sameplrate tokenJonathan Gordon2009-11-22
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23690 a1c6a512-1295-4272-9138-f99709370657
* Fix some drawing problems when displaying the WPS initially with sbs ↵Thomas Martitz2009-11-16
| | | | | | | | enabled. Move initial display of the wps to wps.c too. Should fix bug 3 of FS#10771. Also change GUI_EVENT_REFRESH event handling so that the passed drawing function is always called, not only when sbs or custom ui vp are used. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23644 a1c6a512-1295-4272-9138-f99709370657
* FS#10783 - WPS translationTomer Shalev2009-11-15
| | | | | | | | | - Use the %Sx skin tag in WPS to translate 'Next Track', 'Next', and 'of' (X of Y tracks) - New conditional skin token 'Sr' which checks whether the currently loaded language is an RTL language (Hebrew/Arabic). It uses lang_is_rtl(). - Added Hebrew translation git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23638 a1c6a512-1295-4272-9138-f99709370657
* Add crossfade feature tag, update manual, fix crossfade WPS tag behaviorJeffrey Goode2009-11-11
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23610 a1c6a512-1295-4272-9138-f99709370657
* HAVE_CROSSFADE defs: fix yellow and redJeffrey Goode2009-11-10
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23598 a1c6a512-1295-4272-9138-f99709370657
* Implement %Ss for playback speedFrank Gevaerts2009-11-09
| | | | | | | | | | | | | | | | | This is similar to %Sp for pitch. The conditional form %?Ss<...> is also supported in the same way as FS#10680; you can use %?Ss<%xdAa|%xdAb|> to show an icon of a tortoise (subpicture 1 of image A) or a hare (subpicture 2 of image A) when not playing at the normal speed. Flyspray: FS#10681 Author: Junio C Hamano git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23591 a1c6a512-1295-4272-9138-f99709370657
* Don't define pitch_speed_enum() on MAS3507D. Fixes yellowFrank Gevaerts2009-11-09
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23590 a1c6a512-1295-4272-9138-f99709370657
* Allow %?Sp<...> to be used as a conditionalFrank Gevaerts2009-11-09
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When there are two choices (i.e. boolean), choose the first one if the pitch is different from the normal value, and choose the second one if the pitch is the same as the normal value. When there are more than two choices (i.e. enum), the left half of the choices are used to show 0..normal range, and the right half of the choices are used to show values over that range. The last entry is used when it is set to the normal setting, following the rockbox convention to use the last entry for special values. 2 items: %?Sp<0..99 or 101..infinity|100> 3 items: %?Sp<0..99|101..infinity|100> 4 items: %?Sp<0..49|50..99|101..infinity|100> 5 items: %?Sp<0..49|50..99|101..149|150..infinity|100> 6 items: %?Sp<0..33|34..66|67..99|101..133|134..infinity|100> 7 items: %?Sp<0..33|34..66|67..99|101..133|134..167|167..infinity|100> This will allow two expected use cases: (1) %?Sp<%Sp> to show the pitch only when playing at a modified pitch. (2) %?Sp<%xdAa|%xdAb|> to show an icon of Darth Vader (subpicture 1 of image A) when playing at a lower pitch than the original, and to show an icon of a chipmunk (subpicture 2 of image A) when playing at a higher pitch than the original. When playing at a normal pitch, nothing is shown. Flyspray: FS#10680 Author: Junio C Hamano git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23589 a1c6a512-1295-4272-9138-f99709370657
* fix red.. markers need to be outside #ifdefsJonathan Gordon2009-11-09
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23574 a1c6a512-1295-4272-9138-f99709370657
* Add a bunch of markers into the tokens enum to make figuring out which token ↵Jonathan Gordon2009-11-09
| | | | | | | | | isnt in the bugout output easier. ("FIXME code(80)" is alot worse than "FIXME: TOKEN_MARKER_SOUND+5") Also, slightly reorder the enum to group misc items together git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23573 a1c6a512-1295-4272-9138-f99709370657
* Remove wps_data.remote_wps. It's redundant with the new global curr_screen.Thomas Martitz2009-11-04
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23512 a1c6a512-1295-4272-9138-f99709370657
* Fix the WPS to work properly with the statusbar for the previous change.. ↵Jonathan Gordon2009-11-04
| | | | | | Side effect is it fixes FS#10721 where %pb didnt work git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23508 a1c6a512-1295-4272-9138-f99709370657
* Fix viewport "UI area" to work based on what was agreed on last week in the ↵Jonathan Gordon2009-11-04
| | | | | | | | | | | | mailing lists and IRC: * viewport_set_defaults() will always set the viewport to the intersection of the user setting and any sbs set user viewport * viewport_set_fullscreen() will always set the viewport to the full display, take care to disable the statusbars if you use this! This patch is from FS#10709 and contains code which will be removed once the current inbuilt statusbar is finally removed. This *may* break themes which dont use the %we or %wd token.. follow up commit to fix this coming... git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23507 a1c6a512-1295-4272-9138-f99709370657
* Initial recording screen skin support (usable in .sbs skins only for now)Jonathan Gordon2009-11-03
| | | | | | | | | | | | | | | new skin tokens: %Rp - does the target have recording? %Rf - samplerate %Re - encoder %Rb - bitrate %Rm - mono/stereo Please put all bugs from these (which very probably dont work 100%) into FS#10755. And someone who knows how the recoding capabilities work please look this over... ideally the same value should be returned for the middle three tags no matter what the capabilities of the target are. CustomWPS on the wiki for more details git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23491 a1c6a512-1295-4272-9138-f99709370657
* Add touchscreen WPS actions for volume up/down (using a button rather than ↵Rob Purchase2009-11-02
| | | | | | the slider). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23488 a1c6a512-1295-4272-9138-f99709370657
* Rework how feature skin tags work (%cc currently) when used conditionally ↵Thomas Martitz2009-11-01
| | | | | | | | | | (i.e. to detect a feature). If the feature is known to be unavailable at compile time or runtime detected, then let parsing skip over the true case. That enables parsing skins that properly put tags not available on a target within these tags. In the past the true case was parsed even if never could be true, which led to unexpected parsing failures. Parsing %cc<%St|time format|[..]|> is now possible on target where that setting doesn't exist (the %St parser wold fail). More of these tags are to be added, for example to indicate fm radio or recording capabilities. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23479 a1c6a512-1295-4272-9138-f99709370657
* Revert r23474 "new skin token: %cx - 24 hour time format enabled in the ↵Rafaël Carré2009-11-01
| | | | | | | | setting.. e.g %?cx<24 hour|12 hour>" Committed accidentally with a svn/git desynch git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23475 a1c6a512-1295-4272-9138-f99709370657
* new skin token: %cx - 24 hour time format enabled in the setting.. e.g ↵Rafaël Carré2009-11-01
| | | | | | %?cx<24 hour|12 hour> git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23474 a1c6a512-1295-4272-9138-f99709370657
* revert that last checkin... something better is coming Jonathan Gordon2009-11-01
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23473 a1c6a512-1295-4272-9138-f99709370657
* new skin token: %cx - 24 hour time format enabled in the setting.. e.g ↵Jonathan Gordon2009-11-01
| | | | | | %?cx<24 hour|12 hour> git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23472 a1c6a512-1295-4272-9138-f99709370657
* Move find_viewport() and find_image() to skin_parser.c where the reset of ↵Thomas Martitz2009-11-01
| | | | | | the linked-list handling sits. That enables removing duplicated code from checkwps. Also remove a few stubs in favor having the restart playback mechanism on albumart change #ifdef __PCTOOL__ git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23465 a1c6a512-1295-4272-9138-f99709370657
* Fix red - statusbar_position() is a macro.Thomas Martitz2009-11-01
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23462 a1c6a512-1295-4272-9138-f99709370657