[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [e4-dev] Themes for Eclipse 4
|
FYI, I've released my current version of the theme on Github. I think we'll go from there now. Contributions welcome. There are still many open issues. But people might use it as a kickstart for their own themes.
Cheers
Roger
On Wednesday, 11. July 2012 at 19:40, Eric Moffatt wrote:
Silenio, this may be an either / or
question...if the menu / header is stylable (i.e. supports font, color...attributes)
on a given platform then we wouldn't need to go the 'owner draw' route.
I was under the impression that it was only windows that didn't allow these
attributes for menus for example.
There's also a bit of a difference between
using owner draw *ourselves* to support styling vs exposing the API generally.
IMO a Table with a stylable header would just expose the various attributes
(setFont, setForegroundColor, ...) as if they'd been implemented
that way from the start, making them match the other controls that support
styling. The fact that 'under the covers' we may be using owner draw to
implement those attributes would not necessarily be exposed to the users
of the widget.
Of course if a given control on a given
platform supports neither the attributes nor owner draw we're pretty well
beat.
Eric
I believe the table header has 'owner
draw' support on the platforms we support (win32, cocoa and GTK). SWT would
have to expose API for this. I suppose the API would be similar to the
custom draw API for TableItem/TreeItem (i.e. SWT.PaintItem/SWT.EraseItem/SWT.MesuareItem
events). SWT would also have to expose the table header as a control
with items: probably Header and HeaderItem.
Here are links to the related documentation:
http://msdn.microsoft.com/en-us/library/windows/desktop/bb775300(v=vs.85).aspx
https://developer.apple.com/library/mac/#documentation/Cocoa/Reference/ApplicationKit/Classes/NSTableHeaderView_Class/Reference/Reference.html
http://developer.gnome.org/gtk/stable/GtkTreeViewColumn.html
Menus can probably be 'owner drawn' on Windows and GTK (need to confirm).
I am sure not about mac given it is an application menu.
Silenio
From: Eric
Moffatt/Ottawa/IBM@IBMCA
To: E4
Project developer mailing list <e4-dev@xxxxxxxxxxx>,
Date: 07/11/2012
10:55 AM
Subject: Re:
[e4-dev] Themes for Eclipse 4
Sent by: e4-dev-bounces@xxxxxxxxxxx
Mike, the other area that seems problematic is the menu rendering which
has limited styling abilities at least on some platforms (Windows ?). Perhaps
we should be producing platform-specific themes that use the menu (and
header?) styling where it's supported in the true CSS 'best attempt' manner
?
Question for SWT: Do either the table header or menu support 'owner draw'
? If so then using this would likely be far less effort that re-implementing
them...
Onwards,
Eric
Well, one possibility would be (for SWT) to hide the standard headers and
"custom draw" an equivalent (if you've styled them). Obviously,
this is a lot of work, but if that's what's standing in the way of the
theming flexibility we want, then we should consider it. I'm not going
to assume, a priori, any restrictions on what is possible. If you need
the capability enter a bug requesting it.
McQ.
Brian
de Alwis ---07/10/2012 02:29:22 PM---On 10-Jul-2012, at 1:32 PM, Roger
Dudler wrote: > For example, how would you achieve to style those
From: Brian de Alwis <briandealwis@xxxxxxxxx>
To: E4 Project developer mailing
list <e4-dev@xxxxxxxxxxx>,
Date: 07/10/2012 02:29 PM
Subject: Re: [e4-dev] Themes for
Eclipse 4
Sent by: e4-dev-bounces@xxxxxxxxxxx
On 10-Jul-2012, at 1:32 PM, Roger Dudler wrote:
> For example, how would you achieve to style those headers and grid
lines in the attached Table?
Those are Aqua widgets and can't be changed, just like SWT Button(SWT.PUSH).
The only solution is to change to a different platform, I think!
Brian.
[attachment "smime.p7s" deleted by Mike Wilson/Ottawa/IBM] _______________________________________________
e4-dev mailing list
e4-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/e4-dev
_______________________________________________
e4-dev mailing list
e4-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/e4-dev
_______________________________________________
e4-dev mailing list
e4-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/e4-dev
_______________________________________________
e4-dev mailing list
e4-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/e4-dev
_______________________________________________
e4-dev mailing list