RFC: Fluid widget properties, enable entering color manually

17 Aufrufe
Direkt zur ersten ungelesenen Nachricht

Mo_Al_

ungelesen,
14.04.2023, 11:34:0214.04.23
an fltk.coredev
Hello

Currently with Fluid, if you add a a widget and want to change the Color (or Select Color), under properties->style, you're met with FLTK palette of 256 colors. I suggest adding inputs, in addition to the palette, which allows entering the RGB values of a color.
This would be helpful in previewing how the colors would look during the design phase.

Mo_Al_

ungelesen,
14.04.2023, 11:35:3414.04.23
an fltk.coredev
fluid-colors.jpg

Albrecht Schlosser

ungelesen,
14.04.2023, 11:51:0914.04.23
an fltkc...@googlegroups.com
On 4/14/23 17:34 Mo_Al_ wrote:
Currently with Fluid, if you add a a widget and want to change the Color (or Select Color), under properties->style, you're met with FLTK palette of 256 colors. I suggest adding inputs, in addition to the palette, which allows entering the RGB values of a color.

test/color_chooser.cxx is an example that allows both the 256-color palette and fl_color_chooser() which has color input fields. IMHO calling fl_color_chooser() would be a good choice:

Mo_Al_

ungelesen,
14.04.2023, 12:07:5914.04.23
an fltk.coredev
I agree with popping fl_color_chooser() would be a better choice, it allows both choosing the color and entering the values.

melcher....@googlemail.com

ungelesen,
14.04.2023, 12:14:2414.04.23
an fltk.coredev
The first 58 or so colors in the palette have a special meaning and appear different in the final app after calling `show(argc, argv)` depending on the platform and desktop colors. I'll be happy to add an RGB chooser, too, but the palette must remain accessible as well.
Allen antworten
Antwort an Autor
Weiterleiten
0 neue Nachrichten