Support and General Use > Theming and Appearance Customization
Sansa e260 - Woody theme
AsusFreak:
Hi Saint,
sorry, did the wrong word here: load means charging, means plugged to power.
You're right it's defined for uncertain status which is working wonderful on my D2 for showing the charging status in all of my themes.
But I'm quite sure that you will be right with the Sansa devices. As I don't own one of them I'm not able to prove this...
JoChn:
--- Quote from: [Saint] on November 07, 2011, 09:38:27 AM ---
The "right" way to represent charging can be simplified to:
%?bp<%?bc<%xd(we're_charging)|%xd(we've_charged)>|%?bl(0,0,-,-,battery_state.bmp)>
[Saint]
--- End quote ---
Ok but, what if I want to get (charging/charged) on the same part of bitmap?
#Battery
%?bp<%?bc<%xd(Da)>|%?bl<|%xd(Db)|%xd(Dc)|%xd(Dd)|%xd(De)|%xd(Df)|%xd(Dg)|%xd(Dh)|%xd(Di)|%xd(Dj)>>
Which means:
Battery power
if charging [don't matter if the battery is charging or charged (%?bc)] show first part,
if not, show other parts equal to the battery power.
So at all what should be look like the right code (with my solution)?
Because with your way need to declare 2 times the battery bitmap:
%xl(D,battery.bmp,7,3,10)
%?bp<%?bc<%xd(Da)|%xd(Db)>|%?bl(0,0,-,-,Battery.bmp)>
[Saint]:
--- Quote from: JoChn on November 08, 2011, 02:16:37 PM ---
--- Quote from: [Saint] on November 07, 2011, 09:38:27 AM ---
The "right" way to represent charging can be simplified to:
%?bp<%?bc<%xd(we're_charging)|%xd(we've_charged)>|%?bl(0,0,-,-,battery_state.bmp)>
[Saint]
--- End quote ---
Ok but, what if I want to get (charging/charged) on the same part of bitmap?
#Battery
%?bp<%?bc<%xd(Da)>|%?bl<|%xd(Db)|%xd(Dc)|%xd(Dd)|%xd(De)|%xd(Df)|%xd(Dg)|%xd(Dh)|%xd(Di)|%xd(Dj)>>
Which means:
Battery power
if charging [don't matter if the battery is charging or charged (%?bc)] show first part,
if not, show other parts equal to the battery power.
So at all what should be look like the right code (with my solution)?
Because with your way need to declare 2 times the battery bitmap:
%xl(D,battery.bmp,7,3,10)
%?bp<%?bc<%xd(Da)|%xd(Db)>|%?bl(0,0,-,-,Battery.bmp)>
--- End quote ---
I have no idea what you're asking here...
I can't provide a specific code solution because I don't a: have your bitmaps to see and b: don't quite understand what you're wanting to do anymore...I thought I did.
I was merely trying to point out that with the code you posted, once the battery is fully charged the batery display will disappear as you haven't provided a condition to catch this case.
The code solution I posted does, but it assumes you're using a different image to represent charging/charged and that you're using a "progress bar" style battery image, which you're not.
I thought you'd be able to edit these things yourself, and I was just trying to provide the syntax to show you how to cover the condition you missed in the charge code.
[Saint]
JoChn:
Picture of my bitmap.
Want to:
Show first upper part (battery with lightning), when device is plug in (doesn't matter if it's charged or charging). Because this image doesn't display anymore (other parts works fine).
Sorry for incomprehension/understatement :)
sockbox:
--- Quote from: JoChn on November 10, 2011, 09:55:03 PM ---Want to:
Show first upper part (battery with lightning), when device is plug in (doesn't matter if it's charged or charging).
--- End quote ---
--- Code: ---%?bp<%xd(Da)|%?bl<%xd(Db)|%xd(Db)|%xd(Dc)|%xd(Dd)|%xd(De)|%xd(Df)|%xd(Dg)|%xd(Dh)|%xd(Di)|%xd(Dj)|%xd(Dj)>>
--- End code ---
You'll also want to display %xd(Dj) twice. The last %xd(Dj) only displays for levels exactly at 100%. You'll want to display the fully charged image for ~90-100%.
For a low battery, charge soon, indicator I flashed the empty batt icon when the batt level gets under a certain percentage. You can do something like this...
--- Code: ---%?bp<%xd(Da)|%?if(%bl,<,6)<%t(.5)%xd(Db);%t(.3)%xd(Da)|%?bl<|%xd(Db)|%xd(Dc)|%xd(Dd)|%xd(De)|%xd(Df)|%xd(Dg)|%xd(Dh)|%xd(Di)|%xd(Dj)|%xd(Dj)>>>
--- End code ---
I have no way of checking the code other than on the sim, which doesn't help with USB related issues.
Navigation
[0] Message Index
[*] Previous page
Go to full version