Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] Menubar and scrollbar theming

Menubars can be customized (see
https://msdn.microsoft.com/en-us/library/windows/desktop/ms647558(v=vs.85).a
spx#_win32_Creating_Owner_Drawn_Menu_Items). This sounds not very
complicated.

Scrollbars are horrible when it comes to customizing, because some controls
have different scrollbars than others. See
https://bugs.eclipse.org/bugs/show_bug.cgi?id=491032 for some more
information.
 
Regards
Conrad

-----Ursprüngliche Nachricht-----
Von: platform-swt-dev-bounces@xxxxxxxxxxx
[mailto:platform-swt-dev-bounces@xxxxxxxxxxx] Im Auftrag von Thomas Singer
Gesendet: Donnerstag, 22. Dezember 2016 16:23
An: platform-swt-dev@xxxxxxxxxxx
Betreff: [platform-swt-dev] Menubar and scrollbar theming

Hi all,

(Most likely) Because of the limitations of the commercial operating systems
people increasingly demand applications that support dark themes (neither OS
X nor the latest Windows versions provide means to customize the GUI control
colors).

I've tried to implement it as good as possible with the current SWT API: 
<http://www.syntevo.com/smartgit/version-17/dark-theme.png>

Unfortunately, some parts are not yet customizable:
- the toolbar does not use the set foreground color (bug 508033)
- table headers don't use the table's background and foreground colors (bug
449475)
- menubars (and menus) don't allow to set any color (and don't inherit it
from the shell)
- scrollbars don't inherit the colors from their belonging control

Is there someone who has enough Win32-API-knowledge to confirm whether
setting colors for menubars or scrollbars is supported by the Win32-API?

--
Best regards,
Thomas Singer
=============
syntevo GmbH
http://www.syntevo.com
http://www.syntevo.com/blog
_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from
this list, visit https://dev.eclipse.org/mailman/listinfo/platform-swt-dev



Back to the top