This forum has been archived. All content is frozen. Please use KDE Discuss instead.

KDE's gtk theme

Tags: None
(comma "," separated)
User avatar
bk322
Registered Member
Posts
7
Karma
0
OS

KDE's gtk theme

Tue Mar 06, 2012 7:29 am
I'm on Kubuntu 11.10, Oneiric, KDE 4.8.00: none other theme but oxygen-gtk respect the KDE's font customization (I want DejaVu Sans Mono 14).

As to the oxygen-gtk - it does respect the font customization - but all gtk menus are broken - one can only access the default tab of the menu. Here are some screenshots: http://askubuntu.com/questions/71433/some-gnome-lib-is-missing

When I replace this:
Code: Select all
    engine "oxygen-gtk"

by that:
Code: Select all
    engine "oxygen-gtk"
    {
      colorize_scrollbar = TRUE
      reliefstyle = 1
      menubarstyle = 2
      toolbarstyle = 0
      animation = FALSE
      radius = 3.0
      style = GUMMY

      # Set a hint to disable backward compatibility fallbacks.
      hint = "use-hints"
    }

in gtkrc:
Code: Select all
/usr/share/themes/oxygen-gtk/gtk-2.0/gtkrc

Menus start to work, font customization is still fulfilled. But the theme becomes kind of raw - it is certainly not oxygen theme any more.

Also I can't make gtk3 respect KDE's font settings (at least using the oxygen-gtk theme).

Any comments to all this?
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: KDE's gtk theme

Tue Mar 06, 2012 8:08 am
As far as I am aware, Gtk2 and Gtk3 require differently written themes to work due to differences in them. They also have seperate configuration files.

I have never seen this behaviour before with the Oxygen-Gtk theme (and I use it here with Firefox, and it works fine with both Menus and Tabs)


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
bk322
Registered Member
Posts
7
Karma
0
OS

Re: KDE's gtk theme

Tue Mar 06, 2012 8:43 am
Firefox is not a valid test here. Try installing Shutter - and try browes tabs of it's preferences.

Quote:
gtk2 and gtk3 need separate configurations

Well, yes - but if I've said to KDE use my KDE font preferences in gtk apps - both KDE should have made gtk2 and gtk3 configurational files - while currently it is only making gtk2 one.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: KDE's gtk theme

Wed Mar 07, 2012 6:28 am
It is possible that your system does not have the Gtk3 Oxygen theme installed.

I just tested using both Wireshark and Transmission (Gtk version) and the tabs in Transmission worked fine.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
bk322
Registered Member
Posts
7
Karma
0
OS

Re: KDE's gtk theme

Wed Mar 07, 2012 8:25 am
Thanks for the reply. Transmission is a valid test.

I just checked - I do have gtk3-engines-oxygen installed. Though - no gtk3 dot files in my home dir. Do You have anything like ~/.gtk3rc or ~/.gtkrc-3.0-kde4?
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: KDE's gtk theme

Wed Mar 07, 2012 7:16 pm
I only have a ~/.gtkrc-2.0 file - which I manually created. I do not believe I have any Gtk3 applications on my system at the moment.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
google01103
Manager
Posts
6668
Karma
25

Re: KDE's gtk theme

Wed Mar 07, 2012 7:26 pm
I saved this from somewhere

gtk3-engines-oxygen for gtk3 apps

After installing it (gtk3-engines-oxygen), make gtk-3.0 folder in ~/.config folder. Then in gtk-3.0 folder create text file settings.ini with following contents:

Code:
[Settings]
gtk-theme-name = oxygen-gtk


After doing these simple steps, gtk3-engines-oxygen should be up and running Gtk3 apps should be oxygen themed like all other apps.


OpenSuse Leap 42.1 x64, Plasma 5.x

User avatar
daihard
Registered Member
Posts
72
Karma
0
OS

Re: KDE's gtk theme

Thu Mar 08, 2012 5:44 am
bcooksley wrote:It is possible that your system does not have the Gtk3 Oxygen theme installed.

I just tested using both Wireshark and Transmission (Gtk version) and the tabs in Transmission worked fine.


Is gtk3-oxygen part of the KDE distribution? If so, since which version?

I just installed Kubuntu 11.10 (KDE 4.7.4) and it does not have gtk3-oxygen. Trying to install as follows says the package cannot be located.

sudo apt-get install gtk3-engines-oxygen


Kubuntu 12.04 (Precise Pangolin) 64-bit / KDE 4.8.1
Work: Dell Precision T5500 (Xeon E5506 @ 2.13 GHz x 2 / 12GB RAM)
Home: Panasonic Toughbook W8 (Core 2 Duo @ 1.20 GHz / 4GB RAM)
User avatar
toad
Global Moderator
Posts
1258
Karma
7
OS

Re: KDE's gtk theme

Thu Mar 08, 2012 8:13 am
Found it:
Code: Select all
toad@archtop 513\13 /etc > packer -Ss gtk3|grep oxygen
extra/oxygen-gtk3 1.0.1-1
aur/oxygen-gtk3-git 20110621-1 (84)


For Debian based distros:
Code: Select all
apt-cache search gtk3 | grep oxygen


You might have to put a -B1 at the end depending on your output.


Debian testing
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: KDE's gtk theme

Thu Mar 08, 2012 9:31 pm
Oxygen-Gtk3 is a very new addition, although it is not part of the main KDE software distribution.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
daihard
Registered Member
Posts
72
Karma
0
OS

Re: KDE's gtk theme

Sat Mar 10, 2012 5:35 am
bcooksley wrote:Oxygen-Gtk3 is a very new addition, although it is not part of the main KDE software distribution.


Thanks, looks like KDE 4.8.1 that comes with Kubuntu 12.04 includes it. Fortunately, it's turned out that I don't need to rely on it. :)


Kubuntu 12.04 (Precise Pangolin) 64-bit / KDE 4.8.1
Work: Dell Precision T5500 (Xeon E5506 @ 2.13 GHz x 2 / 12GB RAM)
Home: Panasonic Toughbook W8 (Core 2 Duo @ 1.20 GHz / 4GB RAM)
lineinthesand
Registered Member
Posts
1
Karma
0

Re: KDE's gtk theme

Sat Jun 09, 2012 4:39 pm
google01103 wrote:I saved this from somewhere

gtk3-engines-oxygen for gtk3 apps

After installing it (gtk3-engines-oxygen), make gtk-3.0 folder in ~/.config folder. Then in gtk-3.0 folder create text file settings.ini with following contents:

Code:
[Settings]
gtk-theme-name = oxygen-gtk


After doing these simple steps, gtk3-engines-oxygen should be up and running Gtk3 apps should be oxygen themed like all other apps.


Confirmed for opensuse 12.1, kde4.8. Thanks a lot!


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]