FLTK logo

Re: [fltk.general] FLTK 1.4 Menu Bar Style

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.general  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: FLTK 1.4 Menu Bar Style Daniel Harding 08:37 May 07  
  On Tuesday, May 7, 2024 at 9:44:51 AM UTC-5 Albrecht-S wrote:
Seeting up your different themes for testing would be a big help. Is your program open source, can you share a link so we can test, or can you share the theme setup and we can create our own "themes" for testing?

My repo is here: https://github.com/dannye/crystal-tracker
With an fltk1.4 branch here: https://github.com/dannye/crystal-tracker/tree/fltk1.4
Although with the libopenmpt and PortAudio dependencies, it's a little tedious to build. At least, tedious on Windows. Building on Linux isn't that bad.

But the themes come straight from this other open source (LGPL) repo here:
https://github.com/Rangi42/polished-map

which is easier to build (fewer dependencies). Although this repo is so far only compatible with FLTK 1.3.

All the themes come from src/themes.cpp (in either repo).

I limited the menu arrow size in commit 866a4a4fcb6c564b067cce38a90696645fab7c0e. Please test and report if this is "better". However, note that there may be different opinions ("arrows are now too small") and we may set the limit higher in the future.

I can't find commit 866a4a4fcb6c564b067cce38a90696645fab7c0e in the fltk repo or your fork of it.

There's another, much simpler, option to fine-tune the new fl_contrast() method to make it "less aggressive": fl_contrast_level().
https://www.fltk.org/doc-1.4/group__fl__attributes.html#ga5cb53fa508f3e45a0ccab46151461a2c

See the docs for how to set this, and maybe setting the level lower than the default (55 for the new mode) can help to achieve what you want. However, I do not recommend changing the contrast level, at least not lower than 50.

I'm optimistic that once the planned improvement is made to menu item drawing, neither fl_contrast_mode() nor fl_contrast_level() will be necessary for me.

Thanks.

--
You received this message because you are subscribed to the Google Groups "fltk.general" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkgeneral+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkgeneral/acca0f93-58da-4db2-b502-60d789f0f990n%40googlegroups.com.
Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.