Active Topics

 



Notices


Reply
Thread Tools
Posts: 13 | Thanked: 5 times | Joined on Jan 2010
#1
I'm making a status menu widget on the N900 using python (as described in the wiki), and I had some questions. I used a hildon.Button object, but I noticed the "value" text on it was gray and on most of the other widgets the color varied with the theme, like the orange text here:

I'd like to know:
  1. Is there a different Button class that renders the value (secondary text) in the default theme color?
  2. Is there a straightforward way to change the color on an existing Button object's text?
  3. How do you get the theme color (or whatever it's called) from in python?
 
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#2
The grey and the orange used here are both the default theme colours for the HildonButton's value label.

http://maemo.org/api_refs/5.0/5.0-fi...tton-set-style will probably explain it better, but, in short, if you want the orange: <HildonButton>.set_style(hildon.BUTTON_STYLE_PICKE R)

Note: The button should only be made orange if pressing the button allows its value to be changed in some way...
 
Reply


 
Forum Jump


All times are GMT. The time now is 09:03.