Page 1 of 1

Setting the bar color in a progress bar

Posted: Thu Feb 20, 2014 10:34 pm
by paul@researchware.com
In all the many improvements to LC, how about something as simple as setting the progress color of a progress bar? Why must it be that one shade of green?

Yes, we can all role our own with 2 graphics in a group and a simple script for the group, but why should I need to make a custom object for something that (seems) as simple as just changing the progress color?

Re: Setting the bar color in a progress bar

Posted: Thu Feb 20, 2014 11:05 pm
by FourthWorld
LiveCode currently uses the accent color of the theme the user has chosen in Windows; the default theme uses the green color.

Seem to do a pretty good job as far as defaults go: whenever you change the current them LC updates the appearance of the progress bar to match.

That said, this is settable in the OS APIs: I think it's PBM_SETBARCOLOR for Win, on Linux it would require changing the widget's gtk.STATE_PRELIGHT, and on OS X setControlTint - might make a nice feature request for the LCQCC.

Re: Setting the bar color in a progress bar

Posted: Thu Feb 20, 2014 11:41 pm
by paul@researchware.com

Re: Setting the bar color in a progress bar

Posted: Fri Feb 21, 2014 12:10 am
by FourthWorld
I suspect this would be much easier once the theming subsystem is refactored (one of the top three work "strands" on the Road Map, http://livecode.com/community/roadmap/ ), and given its place on the Map hopefully that won't be too long from now.

If anyone from RunRev sees this it would be helpful to have an update on where the Theme task is on the current time line. A few Ubuntu friends are curious to see the API so we can explore options for integrating Qt with it for Ubuntu Mobile.