Quantcast

Menubar and scrollbar theming

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Menubar and scrollbar theming

Thomas Singer
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
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Menubar and scrollbar theming

Conrad Groth
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: [hidden email]
[mailto:[hidden email]] Im Auftrag von Thomas Singer
Gesendet: Donnerstag, 22. Dezember 2016 16:23
An: [hidden email]
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
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from
this list, visit https://dev.eclipse.org/mailman/listinfo/platform-swt-dev

_______________________________________________
platform-swt-dev mailing list
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Menubar and scrollbar theming

Thomas Singer
Hi Conrad,

Thanks for your feedback.

> 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).

Do the menubars (or menus) need to be painted completely by the application?

I'm beginning to wonder why we switched from Swing to SWT in the past if
we now begin to render everything ourselves.

--
Best regards,
Thomas Singer
=============
syntevo GmbH
http://www.syntevo.com
http://www.syntevo.com/blog


On 2016-12-22 17:46, Conrad Groth wrote:

> 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: [hidden email]
> [mailto:[hidden email]] Im Auftrag von Thomas Singer
> Gesendet: Donnerstag, 22. Dezember 2016 16:23
> An: [hidden email]
> 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
> [hidden email]
> To change your delivery options, retrieve your password, or unsubscribe from
> this list, visit https://dev.eclipse.org/mailman/listinfo/platform-swt-dev
>
> _______________________________________________
> platform-swt-dev mailing list
> [hidden email]
> To change your delivery options, retrieve your password, or unsubscribe from this list, visit
> https://dev.eclipse.org/mailman/listinfo/platform-swt-dev
>
_______________________________________________
platform-swt-dev mailing list
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Menubar and scrollbar theming

Mikael Barbero
In reply to this post by Thomas Singer
Hi Thomas,

Cocoa has a mean to customize every bit of UI. See https://developer.apple.com/reference/appkit/nsappearance and https://github.com/insidegui/AppearanceMaker

I would like to try this out on SWT but I require some newer Cocoa classes to be binded in SWT. This is blocked by https://bugs.eclipse.org/bugs/show_bug.cgi?id=502090 (see also my post scriptum in https://dev.eclipse.org/mhonarc/lists/platform-swt-dev/msg08025.html for some more links about NSAppearance).

Cheers,
Mikael

Le 22 déc. 2016 à 16:23, Thomas Singer <[hidden email]> a écrit :

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
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev


_______________________________________________
platform-swt-dev mailing list
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Menubar and scrollbar theming

Gunnar Wagenknecht
In reply to this post by Thomas Singer
On 23 Dec 2016, at 08:36, Thomas Singer <[hidden email]> wrote:

I'm beginning to wonder why we switched from Swing to SWT in the past if we now begin to render everything ourselves.

Would the SWT WPF port be of any help here? Does WPF allow more customizations/better styling then the Win32 API?

-Gunnar

-- 
Gunnar Wagenknecht
[hidden email], http://guw.io/







_______________________________________________
platform-swt-dev mailing list
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev
Loading...