Support and General Use > Theming and Appearance Customization

Battery: Numeric or Graphic

(1/2) > >>

DrewVosburg:
Is there a tag to get access to this setting?  I am not finding it in the Wiki, and I would like to use it.

If it doesn't yet exist, I think that would be something that is really nice to have.

pixelma:
There is a tag to find out about all possible settings which can also be used conditionally and which should work here. Look out for %St on the CustomWPS wiki or the manual.

gbl08ma:
I think it only depends of the theme used. There're themes with a graphic indicator, others with a numeric one, others with both and it's possible to code one without any :)

You can edit a theme to show a numeric indicator instead of a graphic one, or vice-versa (although the vice-versa is harder, but obviously everything takes its time and work). Just look at the theme tags in the wiki and you should get an idea.

(It seems pixelma came first... I leave here my two cents for anyone who wants them)

Progweed:
I guess %St(battery display) could work.

Querying this setting is a great idea. Didn't think of that until now!

[Saint]:

--- Quote from: DrewVosburg on January 17, 2011, 01:59:52 PM ---Is there a tag to get access to this setting?  I am not finding it in the Wiki, and I would like to use it.

--- End quote ---

Are you wanting to use this to display the battery icon/text/whatever conditionally based on the users settings, as opposed to simple forcing either a graphical or numerical display on the user?

I have done this in a couple of themes myself:


%?St(battery display)<*graphical|*numerical>


This code sample will do what you want it to (assuming I made an accurate guess as to what you're wanting to do).

*Replacing graphical/numerical with appropriate code you're wanting to display of course.



[St.]

Navigation

[0] Message Index

[#] Next page

Go to full version