gtk4 compatiblity #2

Open
opened 2021-09-10 10:56:02 +02:00 by devyl · 3 comments

GTK4 apps doesn't work with this theme; they fall back to default theme.

GTK4 apps doesn't work with this theme; they fall back to default theme.
eudaimon added the
bug
label 2021-09-11 16:03:50 +02:00
Owner

I need to create gtk-4.0 folder, copy css there, fix some deprecations from gtk3 and add some new styles. Thanks for opening the issue.

I need to create gtk-4.0 folder, copy css there, fix some deprecations from gtk3 and add some new styles. Thanks for opening the issue.
Author

it doesn't seem to work; tried

  • link gtk-4.0 to gtk-3.0 => doesnt work at all
  • copied gtk-3.0 to gtk-4.0 => see screenshot
  • created gtk-4.0/gtk.css with @import url("../gtk-3.0/gtk-contained-dark.css"); => same result as copy the whole gtk-3.0 folder
it doesn't seem to work; tried * link gtk-4.0 to gtk-3.0 => doesnt work at all * copied gtk-3.0 to gtk-4.0 => see screenshot * created gtk-4.0/gtk.css with `@import url("../gtk-3.0/gtk-contained-dark.css");` => same result as copy the whole gtk-3.0 folder
Owner

Yes, there are some other things to be done. Here is official GTK4 documentation for updating a theme.

I think that the main issue you see here is some outline being applied to all objects. It's easy to solve: the first style definitions are for all elements (line 112):

* {
...
}

There is an outline definition there (which for some weird reason, it does not appear in GTK3 widgets, and it does on GTK4!). If you remove it (maybe altogether, maybe setting color to "transparent", maybe style to "none"), it should work (though then you'd need to verify other places where outline is intended to appear). This was something I didn't change from the theme this one is based on. Time to update this too!

So when I find time I will update this (I have a few themes of my own I want to update them all for GTK4!)

Yes, there are some other things to be done. [Here is official GTK4 documentation](https://docs.gtk.org/gtk4/migrating-3to4.html) for updating a theme. I think that the main issue you see here is some outline being applied to all objects. It's easy to solve: the first style definitions are for all elements (line 112): * { ... } There is an outline definition there (which for some weird reason, it does not appear in GTK3 widgets, and it does on GTK4!). If you remove it (maybe altogether, maybe setting color to "transparent", maybe style to "none"), it should work (though then you'd need to verify other places where outline is intended to appear). This was something I didn't change from the theme this one is based on. Time to update this too! So when I find time I will update this (I have a few themes of my own I want to update them all for GTK4!)
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: eudaimon/pho-earth-by-night#2
No description provided.