[Gambas-user] Color
B Bruen
bbruen at ...2308...
Fri Jul 18 02:50:35 CEST 2014
On Tue, 15 Jul 2014 15:07:40 +0200
Benoît Minisini <gambas at ...1...> wrote:
> Le 15/07/2014 00:52, B Bruen a écrit :
...
> > 1) I'd like to define some new color names (e.g. DarkBackground) as
> > there is just not enough standard color names to do all I need. This
> > is not a problem with the Color override as I can define as many
> > different names as I like. My problem is the IDE. It wont let me
> > type a color name in the Background field on the properties panel,
> > the only way to set a color name is via the button and the "Select a
> > Color" popup which, of course, has never heard of my "DarkBackground"
> > color. So, is the textbox part of the Background property control
> > really read only or have I done something silly to our local version
> > of the IDE?
> >
>
> You should not expect the IDE to be modified by your single own personal
> program.
>
> The pre-defined system colors are a common subset of system colors
> defined by QT4 and GTK+. Some of them, like Color.LightBackground and
> Color.LightForeground are actually a mix of two system colors.
>
>
> ...
>
> Regards,
>
> --
> Benoît Minisini
>
No I didn't expect the IDE to cope with "my single own personal program".
What I was looking at was a way to define "custom color names" that the IDE could cope with somehow. But
having stepped through the IDE code and how it handles property "realValue"s I see the difficulties involved. It seems a bit of a shame actually as I think custom color names could add value to the IDE. I'm thinking color-names like ErrorBackground or ErrorForeground could be used by someone who wants to highlight all controls that failed validation on an update action on a form and things like that. Or whatever other name a developer would want to use to highlight multiple controls on a form.
Nevertheless, I will work on how this could be done using our local version of the IDE in my spare time (haha!). Which means I may have to come back to you on some specific issues with the code. :-)
regards
Bruce
--
B Bruen <bbruen at ...2308...>
More information about the User
mailing list