Reply
 
Thread Tools Display Modes
  #1  
Old 03-24-2011, 11:13 PM
drm drm is offline
Junior Member
 
Join Date: Mar 2011
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default GTK-Theme in PBIs
Hi,

I installed Pidgin via PBI and wanted to get a nicer look for it, so I installed x11-themes/gtk-oxygen-engine via ports. Unfortunately, it wasn't recognized. Changes to ~/.gtkrc-2.0 did not affect the theme, only the fonts in gtk-applications. After that, I reinstalled Pidgin from the ports and the theme is now recognized.

Is this the normal behavior that one should expect from PBIs? Or is there a way to apply the theme-settings to PBI applications? If so, please use a nicer theme as default

Regards,
drm

Edit: the same goes for qt-applications. They don't use the default oxygen theme, even if told so in qtconfig-qt4.
Reply With Quote
  #2  
Old 07-27-2012, 06:00 AM
purgatori purgatori is offline
Senior Member
 
Join Date: May 2010
Posts: 234
Thanks: 6
Thanked 15 Times in 14 Posts
Default
Having exactly the same issue here. Any solutions?

By the way, the themes apply in quirky ways: Nimbus (from packages) doesn't apply itself to any PBI apps, whereas gtk-oxygen-engine applies to Conkeror, and Rhythmbox, but not Emacs.
__________________
My Blog About Emacs and (PC)BSD
Promethean Machines
Reply With Quote
  #3  
Old 07-31-2012, 12:14 PM
Peter2121 Peter2121 is offline
Member
 
Join Date: Sep 2011
Posts: 86
Thanks: 3
Thanked 1 Time in 1 Post
Default
It seems that all GTK applications installed from PBIs do not have GTK themes applied.
Me too, I would like to see any solution for this.
Reply With Quote
  #4  
Old 08-01-2012, 12:46 PM
drulavigne drulavigne is offline
Administrator
 
Join Date: Nov 2009
Posts: 767
Thanks: 13
Thanked 31 Times in 30 Posts
Default
According to Kris:

The PBI's will read the local ~/.gtk2 stuff to determine the theme being used, however they will need that theme compiled in as part of the PBI / port build. This is due to the GTK themes being compiled library modules, instead of just colorscheme meta-data. This makes it impossible to have a "universal" theme directory to share between all apps, since each app may need a different library version, etc. What we do with many of our GTK apps is include this port in the PBI_MKPORTAFTER variable.

http://www.freshports.org/x11-themes/qtcurve-gtk2/

That provides a nice looking QT similar theme to GTK apps, like firefox, so they look good in KDE.
Reply With Quote
  #5  
Old 08-02-2012, 03:22 PM
Peter2121 Peter2121 is offline
Member
 
Join Date: Sep 2011
Posts: 86
Thanks: 3
Thanked 1 Time in 1 Post
Default
drulavigne,
Thanks for your answer, but I don't see any solution of the problem.
If we need to re-construct a PBI any time we change the GTK theme - it means that the PBI format applications do NOT support GTK themes.
Can we hope to see any improvements of it in the future?
Reply With Quote
  #6  
Old 08-02-2012, 03:28 PM
kmoore134's Avatar
kmoore134 kmoore134 is offline
Administrator
 
Join Date: May 2005
Location: Knoxville, TN
Posts: 2,428
Thanks: 0
Thanked 103 Times in 85 Posts
Default GTK-Theme in PBIs
I'll take a look into the issue here. It depends completely on how
portable the GTK theme libraries are. If they can be shared among PBIs,
I'll add some functionality into the format to do that. Right now we
share fonts and libGL across PBIs, so this may work as well.
__________________
----
Kris Moore
PC-BSD Founder
Reply With Quote
  #7  
Old 08-27-2012, 05:14 AM
purgatori purgatori is offline
Senior Member
 
Join Date: May 2010
Posts: 234
Thanks: 6
Thanked 15 Times in 14 Posts
Default
Oddly enough, this crops up with PBIs using QT as well. For instance, smplayer:



... and arora:



This happens regardless of whether one selects the "oxygen" or "qtcurve" themes from "system preferences."
__________________
My Blog About Emacs and (PC)BSD
Promethean Machines
Reply With Quote
  #8  
Old 08-30-2012, 04:40 AM
claudius claudius is offline
Junior Member
 
Join Date: Aug 2012
Posts: 13
Thanks: 4
Thanked 0 Times in 0 Posts
Default
I having the same problem
I can apply the lxappearance default them clearlooks on the pbi gtk app but not the newly added themes.
I added themes to the system wide folder /usr/local/share/themes
Reply With Quote
  #9  
Old 08-30-2012, 01:46 PM
purgatori purgatori is offline
Senior Member
 
Join Date: May 2010
Posts: 234
Thanks: 6
Thanked 15 Times in 14 Posts
Default
Originally Posted by claudius View Post
I having the same problem
I can apply the lxappearance default them clearlooks on the pbi gtk app but not the newly added themes.
I added themes to the system wide folder /usr/local/share/themes
Yeah, PBIs don't look there for theme information, they only look in /usr/pbi/pbi-appname/share/themes/

If you have a look at that subdirectory for a given PBI, you'll find Clearlooks, and a few other themes there, but not the ones you have installed elsewhere.

Why this happens with QT apps though, I have not the faintest idea. You would assume that they would, just like the GTK apps, include at least the basic/default themes, such as Oxygen, Qtcurve, etc. but that does not appear to be the case: as a result, you get un-styled apps regardless of which QT4 theme you have selected.
__________________
My Blog About Emacs and (PC)BSD
Promethean Machines
Reply With Quote
  #10  
Old 09-03-2012, 01:56 AM
claudius claudius is offline
Junior Member
 
Join Date: Aug 2012
Posts: 13
Thanks: 4
Thanked 0 Times in 0 Posts
Unhappy
Originally Posted by purgatori View Post
Yeah, PBIs don't look there for theme information, they only look in /usr/pbi/pbi-appname/share/themes/

If you have a look at that subdirectory for a given PBI, you'll find Clearlooks, and a few other themes there, but not the ones you have installed elsewhere.

Why this happens with QT apps though, I have not the faintest idea. You would assume that they would, just like the GTK apps, include at least the basic/default themes, such as Oxygen, Qtcurve, etc. but that does not appear to be the case: as a result, you get un-styled apps regardless of which QT4 theme you have selected.
That implies we have to put the custom themes to all the apps folder
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:26 AM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

Copyright 2005-2010, The PC-BSD Project. PC-BSD and the PC-BSD logo are registered trademarks of iXsystems.
All other content is freely available for sharing under the terms of the Creative Commons Attribution License.