Page 1 of 1

Set background to a RGB color

Posted: Thu Jun 12, 2014 12:06 am
by marko
Good afternoon

About background colors..

I know this Background attribute described here:
http://www.hollywood-mal.com/docs/html/ ... round.html

And the settings works fine ..

However, a BackgroundRGB attribute or similar would be most helpful (as I'm in great need for setting my own color(s) in some cases) :)

Re: Set background to a RGB color

Posted: Sat Jun 14, 2014 12:12 pm
by airsoftsoftwair
It's currently not possible to specify a direct color here, but I can add that if you need it, although hard-coding colors is mostly against the MUI style guide because it could easily clash with user-defined colours and textures. Normally, all those things should be left to the user...

Re: Set background to a RGB color

Posted: Thu Aug 10, 2017 8:42 pm
by r-tea
airsoftsoftwair wrote:It's currently not possible to specify a direct color here, but I can add that if you need it, although hard-coding colors is mostly against the MUI style guide because it could easily clash with user-defined colours and textures. Normally, all those things should be left to the user...
The MUI itself allows it. Recently I have created a small MUI app (using AmigaE) with coloured slider's labels. Sliders were intended to adjust RGB values and had "R", "G" and "B" labels with appropriate backgrounds.
I did it like this:

Code: Select all

Child, TextObject, MUIA_Text_Contents, '\ec\ebG', MUIA_Background, '2:00000000,ffffffff,00000000', End,
It's the "G" label with green background.
I assume an user won't need to change this background.