1) For a SWT application you can specify the theme by exporting the GTK_THEME 
env. variable before launching this app. For IDE we could do this in the 
launcher code.
2) For both cases we would need to have a new bundle containing this theme 
files (deployed as directory).
3) *SOMEHOW* we would need to automate the GTK3 configuration to make GTK3 
aware that we provide a new theme in that bundle.
4) And of course product owners (like me) must have a possibility to replace 
the default theme by contributing another bundle containing the custom one.

The point 3) is the one I have no idea how to do this so far, because it was 
always a mistery for me how to *properly* configure GTK3 system wide to 
"install" some theme. Most likely this will also require root rights, so a user 
specific config could be used (which is not nice).

Kind regards,
Andrey Loskutov

Спасение утопающих - дело рук самих утопающих

http://google.com/+AndreyLoskutov


> Gesendet: Freitag, 22. Februar 2019 um 15:32 Uhr
> Von: "Thomas Singer" <[email protected]>
> An: [email protected]
> Betreff: Re: [platform-dev] SWT-GTK theme support
>
> The question remains how to get that running just for the SWT 
> application without having to change a system theme, or without 
> installing anything to the system or the user.
> 
> -- 
> Best regards,
> Thomas Singer
> =============
> syntevo GmbH
> https://www.syntevo.com
> https://www.syntevo.com/blog
> 
> 
> On 22/02/2019 14:59, Eric Williams wrote:
> > On 2/22/19 8:50 AM, Mike Wilson wrote:
> >> I'm not averse to there being an "Eclipse" theme, but experience has 
> >> shown that it takes significant investment to create/maintain GTK 
> >> themes. Even if we were just repackaging an existing one, there would 
> >> be significant testing overhead, since including a theme that wasn't 
> >> known to work on the "variants that aren't shipping GTK3 default 
> >> themes" would effectively defeat the purpose.
> >> At this point, I don't see it happening, but if someone in the 
> >> community wants to try, more power to them. Personally, I think we'd 
> >> be better off convincing the distros themselves to move forward.
> >> McQ.
> > 
> > +1. Andrey Loskutov and Simeon Andreev are already doing something 
> > similar, they don't like the aesthetics of the default GTK theme so they 
> > basically maintain their own theme. Well they didn't write a theme from 
> > scratch, but they have adopted the Clearlooks-Phenix theme and patch it 
> > to work with SWT. It is for this reason that we have the environment 
> > variable which allows clients to inject their own GTK theme CSS into SWT 
> > at run-time.
> > 
> > 
> > Eric
> > _______________________________________________
> > platform-dev mailing list
> > [email protected]
> > To change your delivery options, retrieve your password, or unsubscribe 
> > from this list, visit
> > https://www.eclipse.org/mailman/listinfo/platform-dev
> _______________________________________________
> platform-dev mailing list
> [email protected]
> To change your delivery options, retrieve your password, or unsubscribe from 
> this list, visit
> https://www.eclipse.org/mailman/listinfo/platform-dev
_______________________________________________
platform-dev mailing list
[email protected]
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://www.eclipse.org/mailman/listinfo/platform-dev

Reply via email to