my colors

LiveCode Builder is a language for extending LiveCode's capabilities, creating new object types as Widgets, and libraries that access lower-level APIs in OSes, applications, and DLLs.

Moderators: LCMark, LCfraser

Post Reply
monte
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1564
Joined: Fri Jan 13, 2012 1:47 am
Contact:

my colors

Post by monte » Sun Nov 22, 2015 8:38 pm

Hi

It would be nice if we could access an array of the effective colors of the widget with my colors.

Cheers

Monte
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/

LCMark
Livecode Staff Member
Livecode Staff Member
Posts: 1232
Joined: Thu Apr 11, 2013 11:27 am

Re: my colors

Post by LCMark » Tue Dec 01, 2015 9:57 am

@monte: This is quite a neat idea for now, until we sort out 'themeing' properly. I wonder if we need to be a little cleverer here, remembering that you can set a pattern or a color... The Canvas API unifies patterns, colors and gradients in a paint concept. A 'my colors' array is one option - however, I wonder if individual accessors would make more sense:

Code: Select all

my text paint
my foreground paint
etc.
This would be quite a simple addition I think - and would be consistent with the idea of 'my font'.

monte
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1564
Joined: Fri Jan 13, 2012 1:47 am
Contact:

Re: my colors

Post by monte » Tue Dec 01, 2015 11:48 am

Great! I think it would be a quite helpful addition and save having a diverse range of property names for things like text color and maintaining inheritance is always nice.
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/

LCMark
Livecode Staff Member
Livecode Staff Member
Posts: 1232
Joined: Thu Apr 11, 2013 11:27 am

Re: my colors

Post by LCMark » Fri Mar 04, 2016 10:55 am

@monte: This is implemented in PR: https://github.com/livecode/livecode/pull/3686

monte
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1564
Joined: Fri Jan 13, 2012 1:47 am
Contact:

Re: my colors

Post by monte » Fri Mar 04, 2016 12:16 pm

Yay!

Your message contains 4 characters. The minimum number of characters you need to enter is 10.
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/

Post Reply