Re: ui colors again

Jorge Arellano Cid <[email protected]>
Newsgroups gmane.comp.web.dillo.devel
Message-ID <[email protected]>
On Thu, Jan 03, 2013 at 06:42:19AM +0000, corvid wrote:
> 
> I added some more to the color choosing stuff:
> 
> http://www.dillo.org/test/choose_colors2.diff

  Good. Just this minor fix to compile.

diff -r cc706f9310db src/menu.cc
--- a/src/menu.cc       Fri Jan 04 12:13:39 2013 -0300
+++ b/src/menu.cc       Fri Jan 04 16:53:20 2013 -0300
@@ -675,7 +675,7 @@ static Fl_Color get_label_color(int32_t

 static void Menu_base_color_change_cb(Fl_Widget*, void *user_data)
 {
-   Fl_Color colornum = (Fl_Color)user_data;
+   Fl_Color colornum = VOIDP2INT(user_data);
    int old_rgb = Fl::get_color(colornum);
    uchar r = old_rgb >> 24,
          g = (old_rgb >> 16) & 0xff,


> 
> It's not terribly nice, careful code at this point.
> It knows about the more recent prefs, and I spent some time making
> the menu fancy for some reason.

  It helps a lot with making themes.
  BTW, a greenish one:

    ui_fg_color=#100404
    ui_main_bg_color=#c8d394
    ui_text_bg_color=#bdd8b6
    ui_selection_color=#7c5f42
    ui_button_highlight_color=#bdbd80
    ui_tab_active_bg_color=#b5b679
    ui_tab_active_fg_color=#b60907
    ui_tab_bg_color=#cac682



-- 
  Cheers
  Jorge.-
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.