From 261c56ba59235c2da2aa644fbea0b1fa492bd1c6 Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Thu, 13 Jan 2011 06:48:39 +0000 Subject: FS#11867 - Add 2 new tags to allow skins to display themed peakmeters %pL for the left channel, %pR for the right channel... usable as a value, conditional or bar (exactly the same as %pv/%bl/etc) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29043 a1c6a512-1295-4272-9138-f99709370657 --- apps/gui/skin_engine/skin_parser.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'apps/gui/skin_engine/skin_parser.c') diff --git a/apps/gui/skin_engine/skin_parser.c b/apps/gui/skin_engine/skin_parser.c index f292ff3946..5a90873d86 100644 --- a/apps/gui/skin_engine/skin_parser.c +++ b/apps/gui/skin_engine/skin_parser.c @@ -744,6 +744,10 @@ static int parse_progressbar_tag(struct skin_element* element, token->type = SKIN_TOKEN_BATTERY_PERCENTBAR; else if (token->type == SKIN_TOKEN_TUNER_RSSI) token->type = SKIN_TOKEN_TUNER_RSSI_BAR; + else if (token->type == SKIN_TOKEN_PEAKMETER_LEFT) + token->type = SKIN_TOKEN_PEAKMETER_LEFTBAR; + else if (token->type == SKIN_TOKEN_PEAKMETER_RIGHT) + token->type = SKIN_TOKEN_PEAKMETER_RIGHTBAR; pb->type = token->type; return 0; @@ -1410,6 +1414,8 @@ static int skin_element_callback(struct skin_element* element, void* data) case SKIN_TOKEN_VOLUME: case SKIN_TOKEN_BATTERY_PERCENT: case SKIN_TOKEN_PLAYER_PROGRESSBAR: + case SKIN_TOKEN_PEAKMETER_LEFT: + case SKIN_TOKEN_PEAKMETER_RIGHT: #ifdef HAVE_RADIO_RSSI case SKIN_TOKEN_TUNER_RSSI: #endif -- cgit v1.2.3