[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [XForms] Color problem with LightButton
From: |
Clive Stubbings |
Subject: |
Re: [XForms] Color problem with LightButton |
Date: |
Tue, 7 Jan 2020 15:41:39 +0000 (GMT) |
Hi Lo??c
As Jens said, there will be knock-on effects but that might be what you want..
In older version of xforms I use the following. I've not tried this in the
latest versions because I've not had time to work out how to apply some other
'behavioural fixes' I have...
FD_FSELECTOR *fs;
fl_set_border_width(-2);
fl_mapcolor(FL_COL1, 210, 215, 210);
fl_mapcolor(FL_DARKER_COL1, 180, 180, 180);
fl_mapcolor(FL_MCOL, 230, 230, 230);
fl_mapcolor(FL_TOP_BCOL, 255,255,255);
fl_mapcolor(FL_BOTTOM_BCOL, 110, 110, 110);
fl_mapcolor(FL_RIGHT_BCOL, 110, 110, 110);
fl_mapcolor(FL_LEFT_BCOL, 255, 255, 255);
fl_mapcolor(FL_INACTIVE, 128,128,128);
fl_set_default_tabfolder_corner(0);
fs = fl_get_fselector_fdstruct();
fl_set_object_boxtype(fs->input, FL_DOWN_BOX);
fl_set_object_color(fs->input, FL_WHITE, FL_WHITE);
fl_set_input_color(fs->input, FL_BLACK, FL_BLACK);
Thats not quite the whole picture though. I also have wrappers around a few
other functions to modify colours (fl_add_button(), fl_add_checkbutton(),
fl_add_input()). I post process the 'C' output of fdesign to call wrappers.
This gets me something that looks rather more like a gtk colour scheme.. YMMV
with the newer versions...
Cheers
Clive
On Mon, 30 Dec 2019, [UTF-8] Lo??c Plassart wrote:
Hi,
I'm new with Xforms toolkit but I use it to develop a GUI for a home
automation system (touchscreen). Things go well! But, I would like to allow a
few themes and it seams that main color of LightButton control can't be
customized. Indeed, only colors for light can be changed. So, is it possible
to change the button main color? Following functions can't do this:
?? - fl_set_object_color();
?? - fl_set_object_lcolor();
Many thanks for your help.
Regards,
Lo??c PLASSART, PhD