Set background to a RGB color

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

Set background to a RGB color

Post by marko » Thu Jun 12, 2014 12:06 am

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: 2477
Joined: Fri Feb 12, 2010 3:33 pm
Location: Germany
Contact:

Re: Set background to a RGB color

Post by airsoftsoftwair » Sat Jun 14, 2014 12:12 pm

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: 62
Joined: Wed Feb 17, 2016 12:48 am
Location: Zdzieszowice, Poland
Contact:

Re: Set background to a RGB color

Post by r-tea » Thu Aug 10, 2017 8:42 pm

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