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?
Setting the bar color in a progress bar
Moderator: Klaus
-
- VIP Livecode Opensource Backer
- Posts: 153
- Joined: Wed Aug 26, 2009 7:42 pm
- Contact:
Setting the bar color in a progress bar
Paul Dupuis
Researchware, Inc.
Researchware, Inc.
-
- VIP Livecode Opensource Backer
- Posts: 10043
- Joined: Sat Apr 08, 2006 7:05 am
- Contact:
Re: Setting the bar color in a progress bar
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.
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.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
-
- VIP Livecode Opensource Backer
- Posts: 153
- Joined: Wed Aug 26, 2009 7:42 pm
- Contact:
Re: Setting the bar color in a progress bar
Thank you Richard. Entered as http://quality.runrev.com/show_bug.cgi?id=11835
Paul Dupuis
Researchware, Inc.
Researchware, Inc.
-
- VIP Livecode Opensource Backer
- Posts: 10043
- Joined: Sat Apr 08, 2006 7:05 am
- Contact:
Re: Setting the bar color in a progress bar
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.
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.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn