You are not logged in.

#1 2012-10-31 13:45:52

ernetas
Member
Registered: 2011-03-13
Posts: 79

After last upgrade, GTK3 apps look abnormal

Here's how:
http://img41.imageshack.us/img41/3305/75975390.png

What has changed and how do I modify my theme for the changes?

Offline

#2 2012-10-31 16:57:13

fabertawe
Member
From: Lloegr
Registered: 2009-11-24
Posts: 279

Re: After last upgrade, GTK3 apps look abnormal

Same here. Still using a badly hacked Adwaita to look almost like my lovely (cobbled together) GTK2 theme. I just can't find a GTK3 theme I like. I'm dreading when everything moves to GTK3, guess I'll have to bite the bullet and settle for another theme sooner or later.


Ryzen 9 5950X, X570S Aorus Pro AX, RX 6600, Arch x86_64

Offline

#3 2012-10-31 17:23:43

MatejLach
Member
From: United Kingdom
Registered: 2011-06-22
Posts: 314
Website

Re: After last upgrade, GTK3 apps look abnormal

ernetas wrote:

Here's how:
http://img41.imageshack.us/img41/3305/75975390.png

What has changed and how do I modify my theme for the changes?

I have exactly the same problem.

Offline

#4 2012-10-31 18:15:35

triplesquarednine
Member
Registered: 2011-04-12
Posts: 630

Re: After last upgrade, GTK3 apps look abnormal

I found a solution smile  (that works for me, anyway!)

find /usr/share/YOURTHEME/gtk-widgets.css ... open and edit it;

you are looking for the theme's background color, which should be somewhere in the 1st hundred lines. Something like this;

GtkWindow {
    color: @fg_color;
}

* {
    /* inherit the color from parent by default */
    color: inherit;
    background-color: @transparent;  <-------- here it is :)
}

Your theme will list a specific color code like #cdcdcd, #eee or something like that. Change it to match mine; @transparent

Apparently, for some reason or another the Gnome-devs decided to break themes, yet again :\  For some reason all text now uses your background colour (regardless of widget) which was hugely annoying ~ that is, right up until i realized i could just change the background to be transparent smile  After saving the file, you can simply bring up a gtk3 app (make sure there are no other instances of that application) to view changes.

EDIT: ... you may also want to launch gtk3 apps from the terminal, as you may find some errors with your theme that could easily be fixed at the same time. Most of the errors i have seen are related to gtk 3.6 expecting 'px' behind certain values/numbers (not unlike the gtk 3.4 upgrade).

cheerz

Last edited by triplesquarednine (2012-10-31 18:19:44)

Offline

#5 2012-10-31 18:24:17

ernetas
Member
Registered: 2011-03-13
Posts: 79

Re: After last upgrade, GTK3 apps look abnormal

triplesquarednine wrote:

I found a solution smile  (that works for me, anyway!)

find /usr/share/YOURTHEME/gtk-widgets.css ... open and edit it;

you are looking for the theme's background color, which should be somewhere in the 1st hundred lines. Something like this;

GtkWindow {
    color: @fg_color;
}

* {
    /* inherit the color from parent by default */
    color: inherit;
    background-color: @transparent;  <-------- here it is :)
}

Your theme will list a specific color code like #cdcdcd, #eee or something like that. Change it to match mine; @transparent

Apparently, for some reason or another the Gnome-devs decided to break themes, yet again :\  For some reason all text now uses your background colour (regardless of widget) which was hugely annoying ~ that is, right up until i realized i could just change the background to be transparent smile  After saving the file, you can simply bring up a gtk3 app (make sure there are no other instances of that application) to view changes.

EDIT: ... you may also want to launch gtk3 apps from the terminal, as you may find some errors with your theme that could easily be fixed at the same time. Most of the errors i have seen are related to gtk 3.6 expecting 'px' behind certain values/numbers (not unlike the gtk 3.4 upgrade).

cheerz

Weird, as for me this didn't fix the problem.

Offline

#6 2012-10-31 18:44:06

triplesquarednine
Member
Registered: 2011-04-12
Posts: 630

Re: After last upgrade, GTK3 apps look abnormal

ernetas wrote:

Weird, as for me this didn't fix the problem.

hmmm... if i were you i would have a poke through gtk-widgets.css, specifically the Menus / menubar section ... In my theme, i have background-color: and background-image: defined for things like menubar, menuitem, etc + their states ( :prelight, :active, :insensitive, etc). Which could be making a difference.

What theme are you using anyway, out of curiosity?

I had noticed some newer themes on Deviant art and at gnome-look.org that advertise Gnome 3.6 support, it might be worth a look, if you can't fix it yourself (?)...  I was going to do that but didn't want to give up my customized theme and have to start from scratch.

cheerz

Offline

#7 2012-10-31 18:48:50

fabertawe
Member
From: Lloegr
Registered: 2009-11-24
Posts: 279

Re: After last upgrade, GTK3 apps look abnormal

I'm afraid it didn't work for me either. I got a strange mix of some menus back to normal and some still "corrupted", plus I did have some transparent parts which look really odd! Thanks for posting though, worth a try.

Last edited by fabertawe (2012-10-31 18:49:47)


Ryzen 9 5950X, X570S Aorus Pro AX, RX 6600, Arch x86_64

Offline

#8 2012-10-31 19:06:24

MatejLach
Member
From: United Kingdom
Registered: 2011-06-22
Posts: 314
Website

Re: After last upgrade, GTK3 apps look abnormal

Does not work for me as well.

Last edited by MatejLach (2012-10-31 19:06:40)

Offline

#9 2012-10-31 19:08:27

ernetas
Member
Registered: 2011-03-13
Posts: 79

Re: After last upgrade, GTK3 apps look abnormal

I have updated my used theme Ambiance-Precise with the one from https://code.launchpad.net/~ubuntu-art- … emes/trunk and everything seems to be fine there.

Offline

#10 2012-10-31 20:31:14

VirtualTam
Member
From: Oslo
Registered: 2012-09-27
Posts: 9

Re: After last upgrade, GTK3 apps look abnormal

Here's a quick & dirty fix, as mentioned in this article:
when the themes are put in /usr/share/themes instead of ~/.themes, they are handled correctly by Gnome 3.6, and there are no background/window decoration/nautilus glitches...
This is obviously not a good way to proceed, so let's hope that the Gnome dev team fixes this issue soon!

Offline

#11 2012-10-31 21:07:50

triplesquarednine
Member
Registered: 2011-04-12
Posts: 630

Re: After last upgrade, GTK3 apps look abnormal

fabertawe wrote:

I'm afraid it didn't work for me either. I got a strange mix of some menus back to normal and some still "corrupted", plus I did have some transparent parts which look really odd! Thanks for posting though, worth a try.

Ya, that is probably because some of your menu-items have/don't have background-colors defined. my fix probably exposed which ones were using bg_color ~ with @transparency had no colors defined, it would be obvious (it looked transparent / discolored around text right? like boxes stacked inside the menu for each entry?). If for each one (menu-item + prelight, active, insensitive, etc) you had a color defined (namely the menu's bg color) or hooked into another color code entry in settings.ini (that is the same color code as your menu), then they would not appear transparent. 

anyway, unfortunately you'll probably need to hack on your theme a bit (experiment), wait for an update or look for a gtk 3.6 theme.

I might upload mine, at some point (still changing it around a little),

cheerz

Last edited by triplesquarednine (2012-10-31 21:35:25)

Offline

#12 2012-11-01 09:18:12

amadar
Banned
Registered: 2011-04-15
Posts: 147

Re: After last upgrade, GTK3 apps look abnormal

VirtualTam wrote:

Here's a quick & dirty fix, as mentioned in this article:
when the themes are put in /usr/share/themes instead of ~/.themes, they are handled correctly by Gnome 3.6, and there are no background/window decoration/nautilus glitches...
This is obviously not a good way to proceed, so let's hope that the Gnome dev team fixes this issue soon!

Thats not the case for me. I have all my themes in /usr/share/themes/ and they are broken.

Offline

#13 2012-11-01 10:53:24

Rasi
Member
From: Germany
Registered: 2007-08-14
Posts: 1,914
Website

Re: After last upgrade, GTK3 apps look abnormal

in 3.6 theming somewhat changed, first themes need to be in /usr/share/themes, having them in ~/.themes wont work.
Then they seem to have changed some options inside of the themes, which makes 3rd party themes not behave well or not work at all.

Install unico engine (bzr) from AUR, this fixes at least a handful of themes. (I know this works for the recently released faience theme)
Dont expect all themes to work tho smile


He hoped and prayed that there wasn't an afterlife. Then he realized there was a contradiction involved here and merely hoped that there wasn't an afterlife.

Douglas Adams

Offline

#14 2012-11-01 10:54:55

ernetas
Member
Registered: 2011-03-13
Posts: 79

Re: After last upgrade, GTK3 apps look abnormal

Rasi wrote:

in 3.6 theming somewhat changed, first themes need to be in /usr/share/themes, having them in ~/.themes wont work.

...or you can still manually copy the theme's gtk-3.0 folder's content to ~/.config/gtk-3.0/ and gtk-2.0 content to ~/.config/gtk-2.0/ - this still works.

Offline

#15 2012-11-01 15:27:43

fabertawe
Member
From: Lloegr
Registered: 2009-11-24
Posts: 279

Re: After last upgrade, GTK3 apps look abnormal

triplesquarednine wrote:

anyway, unfortunately you'll probably need to hack on your theme a bit (experiment), wait for an update or look for a gtk 3.6 theme.

It's all "experiment" with me unfortunately wink If I get the time and inclination I'll have another crack at it. Prompted by the latest breakage I've had another look for a new theme but still can't find one I like.


Ryzen 9 5950X, X570S Aorus Pro AX, RX 6600, Arch x86_64

Offline

#16 2012-11-01 22:58:10

MatejLach
Member
From: United Kingdom
Registered: 2011-06-22
Posts: 314
Website

Re: After last upgrade, GTK3 apps look abnormal

Rasi wrote:

in 3.6 theming somewhat changed, first themes need to be in /usr/share/themes, having them in ~/.themes wont work.
Then they seem to have changed some options inside of the themes, which makes 3rd party themes not behave well or not work at all.

Install unico engine (bzr) from AUR, this fixes at least a handful of themes. (I know this works for the recently released faience theme)
Dont expect all themes to work tho smile

I have merged the 'gtk-3.0' folder of my current theme, with the faience theme and at least I can now see the text properly, however my GTK3 apps do look a bit strange now.
I really hope that the GNOME devs will fix this before breaking it (yet) again :-(

Offline

#17 2012-11-03 18:18:38

clkmsc
Member
Registered: 2007-06-24
Posts: 15

Re: After last upgrade, GTK3 apps look abnormal

I have had this same issue. To fix it, I simply created ~/.config/gtk-3.0/gtk.css and added:

GtkLabel {
background-color: @transparent;
}

This affects/overrides all gtk3 themes.

Last edited by clkmsc (2012-11-03 18:29:04)

Offline

#18 2012-11-03 20:31:57

MatejLach
Member
From: United Kingdom
Registered: 2011-06-22
Posts: 314
Website

Re: After last upgrade, GTK3 apps look abnormal

clkmsc wrote:

I have had this same issue. To fix it, I simply created ~/.config/gtk-3.0/gtk.css and added:

GtkLabel {
background-color: @transparent;
}

This affects/overrides all gtk3 themes.

Works for me.
Thanks!

Offline

#19 2012-11-04 14:05:45

fabertawe
Member
From: Lloegr
Registered: 2009-11-24
Posts: 279

Re: After last upgrade, GTK3 apps look abnormal

Worked for me too big_smile Thanks clkmsc

Edit: I also cleaned up all the theme parsing errors from gtk-widgets.css. Happy bunny again.

Last edited by fabertawe (2012-11-04 15:30:43)


Ryzen 9 5950X, X570S Aorus Pro AX, RX 6600, Arch x86_64

Offline

#20 2012-11-12 12:44:15

supersnail
Member
Registered: 2012-11-12
Posts: 6

Re: After last upgrade, GTK3 apps look abnormal

Hello,

I also found (another) fix when I investigated on the problem (the fixes listed here didn't work for my Zukitwo-Colors themes). The version of gtk-engine-unico in the repositories is built from the revision 139, which did a lot of "removing unused code", which is not really unused (ie code used to draw checkboxes was removed with other useful stuff...).

So I found a patch which kills unico's rounded borders management which caused the segfault of gtk3 apps, and I made a pkgbuild to make an "alternative" unico engine. This patch can be found here: https://code.launchpad.net/~robert-ance … rge/110231, and here is the PKGBUILD : http://pastebin.com/uPnqfuYW smile (some rounded borders won't be rendered with this patched unico engine, so you may have to fix themes to have proper rounded borders).

Offline

#21 2012-11-13 08:10:57

ehabreda
Member
From: Qatar
Registered: 2011-07-22
Posts: 52
Website

Re: After last upgrade, GTK3 apps look abnormal

Hello,

Maybe you can add all of your themes to

~/.locale/share/themes

Offline

#22 2012-11-13 10:33:02

supersnail
Member
Registered: 2012-11-12
Posts: 6

Re: After last upgrade, GTK3 apps look abnormal

The glitches of my theme were caused by removed code in the revision used by the official package, so putting my themes in ~/.local/share/themes won't change anything (I'm talking about glitches with checkboxes which are not rendered correctly, or ugly borders around menus, buttons, etc) wink

It's a unico issue, not really a gtk3 one. Hope unico team will fix that for the next release.

Last edited by supersnail (2012-11-13 10:33:55)

Offline

#23 2012-11-13 17:27:24

drcouzelis
Member
From: Connecticut, USA
Registered: 2009-11-09
Posts: 4,092
Website

Re: After last upgrade, GTK3 apps look abnormal

I spent the weekend trying out themes. I noticed something funny: Audacious (GTK3) would not display my new theme correctly until I deleted its "dot config" files.

So, my suggestion would be, when trying a new or modified theme, to try it on a fresh start, for example, by adding a new temporary user on your computer to try it out.

As for me, I'm considering uninstalling all GTK3 applications... hmm

Offline

#24 2012-11-14 10:01:24

supersnail
Member
Registered: 2012-11-12
Posts: 6

Re: After last upgrade, GTK3 apps look abnormal

@drcouzelis: did you try my modified PKGBUILD to check if it partially solves the problem ? (this fix just disables rounded corners who caused segfault in gtk 3.6, instead of using the revision 139 of unico engine, which deleted a lot of useful things used by themes).

This pkgbuild solved the problem for me wink

Offline

#25 2012-11-14 14:19:47

drcouzelis
Member
From: Connecticut, USA
Registered: 2009-11-09
Posts: 4,092
Website

Re: After last upgrade, GTK3 apps look abnormal

supersnail wrote:

@drcouzelis: did you try my modified PKGBUILD to check if it partially solves the problem ?

Good find! I'm sorry, no, I didn't try the modified PKGBUILD file. Instead, I decided last night to uninstall every GTK3 application I was using. It was a lot easier to do than I thought it would be. tongue

Offline

Board footer

Powered by FluxBB