Setting the bar color in a progress bar

Something you want to see in a LiveCode product? Want a new forum set up for a specific topic? Talk about it here.

Moderator: Klaus

Post Reply
paul@researchware.com
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 153
Joined: Wed Aug 26, 2009 7:42 pm
Contact:

Setting the bar color in a progress bar

Post by paul@researchware.com » Thu Feb 20, 2014 10:34 pm

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?
Paul Dupuis
Researchware, Inc.

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10043
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Setting the bar color in a progress bar

Post by FourthWorld » Thu Feb 20, 2014 11:05 pm

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.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

paul@researchware.com
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 153
Joined: Wed Aug 26, 2009 7:42 pm
Contact:

Re: Setting the bar color in a progress bar

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

Paul Dupuis
Researchware, Inc.

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10043
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Setting the bar color in a progress bar

Post by FourthWorld » Fri Feb 21, 2014 12:10 am

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.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Post Reply