Page 1 of 1

my colors

Posted: Sun Nov 22, 2015 8:38 pm
by monte
Hi

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

Cheers

Monte

Re: my colors

Posted: Tue Dec 01, 2015 9:57 am
by LCMark
@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'.

Re: my colors

Posted: Tue Dec 01, 2015 11:48 am
by monte
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.

Re: my colors

Posted: Fri Mar 04, 2016 10:55 am
by LCMark
@monte: This is implemented in PR: https://github.com/livecode/livecode/pull/3686

Re: my colors

Posted: Fri Mar 04, 2016 12:16 pm
by monte
Yay!

Your message contains 4 characters. The minimum number of characters you need to enter is 10.