Fausto-Korpsvart / Kanagawa-GKT-Theme

A GTK theme with the Kanagawa colour palette.
https://www.pling.com/s/Gnome/p/1810560
GNU General Public License v3.0
191 stars 4 forks source link

Fix "Theme parsing error" GTK warnings #7

Closed kyechou closed 1 year ago

kyechou commented 1 year ago

Problem

When I set the theme to Kanagawa-Borderless (Kanagawa-B/gtk-3.0/gtk.css), launching applications will generate the warning message:

(<app>:__): Gtk-WARNING **: 10:54:10.905: Theme parsing error: gtk.css:6691:68: Invalid name of pseudo-class

Root cause

Breaking lines at :dir() doesn't seem to be allowed and leads to "Invalid name of pseudo-class" parsing errors.

.path-bar-box
  .linked.nautilus-path-bar
  button:not(.suggested-action):not(.destructive-action):last-child:dir(
    ltr
  ):disabled

Fix

I changed all occurrences of this kind of line break to the following and no warning message is generated.

.path-bar-box
  .linked.nautilus-path-bar
  button:not(.suggested-action):not(
    .destructive-action
  ):last-child:dir(ltr):disabled
Fausto-Korpsvart commented 1 year ago

Problem

When I set the theme to Kanagawa-Borderless (Kanagawa-B/gtk-3.0/gtk.css), launching applications will generate the warning message:

(<app>:__): Gtk-WARNING **: 10:54:10.905: Theme parsing error: gtk.css:6691:68: Invalid name of pseudo-class

Root cause

Breaking lines at :dir() doesn't seem to be allowed and leads to "Invalid name of pseudo-class" parsing errors.

.path-bar-box
  .linked.nautilus-path-bar
  button:not(.suggested-action):not(.destructive-action):last-child:dir(
    ltr
  ):disabled

Fix

I changed all occurrences of this kind of line break to the following and no warning message is generated.

.path-bar-box
  .linked.nautilus-path-bar
  button:not(.suggested-action):not(
    .destructive-action
  ):last-child:dir(ltr):disabled

Thank you very much, I will check and add that to the other themes in these days.

Thanks for your support and input.