Set background to a RGB color

Discuss GUI programming with the MUI Royale plugin here
Post Reply
marko
Posts: 56
Joined: Wed Dec 15, 2010 5:19 pm
Contact:

Set background to a RGB color

Post 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) :)
AmigaOS 4.1 on Sam440ep-flex@800MHz
http://www.m4rko.com/amiga
User avatar
airsoftsoftwair
Posts: 5433
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Set background to a RGB color

Post 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...
User avatar
r-tea
Posts: 133
Joined: Tue Feb 16, 2016 11:48 pm
Location: Zdzieszowice, Poland
Contact:

Re: Set background to a RGB color

Post 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.
Post Reply