Theme parsing error + Junk at end of value for

Hi!

How to fix these errors?

Output of 'mate-terminal' + 'syslog'
mate-screensave[11100]: Source ID 34 was not found when attempting to remove it
mate-screensave[13639]: Theme parsing error: gtk.css:27:49: Junk at end of value for background-color
mate-screensave[13639]: Theme parsing error: gtk.css:40:55: Junk at end of value for background-color
mate-screensave[13639]: Theme parsing error: gtk.css:48:54: Junk at end of value for background-color
mate-screensave[13639]: Theme parsing error: gtk.css:59:58: Junk at end of value for background-color
mate-screensave[13639]: Theme parsing error: gtk.css:66:28: The :prelight pseudo-class is deprecated. Use :hover instead.
mate-screensave[13639]: Theme parsing error: gtk.css:70:46: Junk at end of value for background-color
mate-screensave[13639]: Theme parsing error: gtk.css:77:35: The :prelight pseudo-class is deprecated. Use :hover instead.
mate-screensave[13639]: Theme parsing error: gtk.css:81:58: Junk at end of value for background-color
mate-screensave[13639]: Theme parsing error: gtk.css:123:31: The :insensitive pseudo-class is deprecated. Use :disabled instead.
mate-screensave[13639]: Theme parsing error: gtk.css:124:24: The :insensitive pseudo-class is deprecated. Use :disabled instead.
mate-screensave[13639]: Theme parsing error: gtk.css:156:27: The :insensitive pseudo-class is deprecated. Use :disabled instead.
mate-screensave[13639]: Theme parsing error: gtk.css:157:29: The :insensitive pseudo-class is deprecated. Use :disabled instead.
mate-screensave[13639]: Theme parsing error: gtk.css:177:34: The :insensitive pseudo-class is deprecated. Use :disabled instead.
mate-screensave[13639]: Theme parsing error: gtk.css:199:34: The :inconsistent pseudo-class is deprecated. Use :indeterminate instead.
mate-screensave[13639]: Theme parsing error: mate-applications.css:13:4: Expected semicolon

Hello,
Just find gtk.css file which belongs to the theme in question and have a look at 27-th line at 49 position. Most probably background color is written in wrong format or refers to unknown variable.

It's the dafault Ambiant-MATE theme. :confused:

what happens if you select a different theme?

for me
cat /var/log/syslog | grep Junk
has no hits....but I am on Ambiant-MATE-Dark

@ aus9, also with Ambiant-MATE Dark, too. :confused: theme parsing errors.

hmm I am on 19.04 and I have not made edits to the system wide themes

so for me,
/usr/share/themes/Ambiant-MATE files are unchanged except for the index theme which is changed due I think to me setting up
UTF australian
and some font sizes

Has any files changed under dir gtk-3.0?
these have the css files and for me the widget file and settings.ini have changed.

You could, if you have not found the issue for the line numbers as suggested by ugnvs....reload the theme from the repo

but I have got both mate-themes and ubuntu-mate-themes but
ambiant-mate appears to come from the last package so you could try

sudo apt-get --reinstall ubuntu-mate-themes

reboot and try if you have not found any changes to css files

No files changed in dir 'gtk-3.0'.

.xsession-errors SHOWS me this:

(mate-session:2339): Gtk-WARNING **: 12:32:45.455: Theme parsing error: gtk.css:27:49: Junk at end of value for background-color

(mate-session:2339): Gtk-WARNING **: 12:32:45.455: Theme parsing error: gtk.css:40:55: Junk at end of value for background-color

(mate-session:2339): Gtk-WARNING **: 12:32:45.455: Theme parsing error: gtk.css:48:54: Junk at end of value for background-color

(mate-session:2339): Gtk-WARNING **: 12:32:45.455: Theme parsing error: gtk.css:59:58: Junk at end of value for background-color

(mate-session:2339): Gtk-WARNING **: 12:32:45.455: Theme parsing error: gtk.css:66:28: The :prelight pseudo-class is deprecated. Use :hover instead.

(mate-session:2339): Gtk-WARNING **: 12:32:45.456: Theme parsing error: gtk.css:70:46: Junk at end of value for background-color

(mate-session:2339): Gtk-WARNING **: 12:32:45.456: Theme parsing error: gtk.css:77:35: The :prelight pseudo-class is deprecated. Use :hover instead.

(mate-session:2339): Gtk-WARNING **: 12:32:45.456: Theme parsing error: gtk.css:81:58: Junk at end of value for background-color

(mate-session:2339): Gtk-WARNING **: 12:32:45.456: Theme parsing error: gtk.css:123:31: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(mate-session:2339): Gtk-WARNING **: 12:32:45.456: Theme parsing error: gtk.css:124:24: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(mate-session:2339): Gtk-WARNING **: 12:32:45.456: Theme parsing error: gtk.css:156:27: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(mate-session:2339): Gtk-WARNING **: 12:32:45.456: Theme parsing error: gtk.css:157:29: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(mate-session:2339): Gtk-WARNING **: 12:32:45.456: Theme parsing error: gtk.css:177:34: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(mate-session:2339): Gtk-WARNING **: 12:32:45.456: Theme parsing error: gtk.css:199:34: The :inconsistent pseudo-class is deprecated. Use :indeterminate instead.

(mate-settings-daemon:2712): Gtk-WARNING **: 12:32:46.055: Theme parsing error: gtk.css:27:49: Junk at end of value for background-color

(mate-settings-daemon:2712): Gtk-WARNING **: 12:32:46.055: Theme parsing error: gtk.css:40:55: Junk at end of value for background-color

(mate-settings-daemon:2712): Gtk-WARNING **: 12:32:46.056: Theme parsing error: gtk.css:48:54: Junk at end of value for background-color

(mate-settings-daemon:2712): Gtk-WARNING **: 12:32:46.056: Theme parsing error: gtk.css:59:58: Junk at end of value for background-color

(mate-settings-daemon:2712): Gtk-WARNING **: 12:32:46.056: Theme parsing error: gtk.css:66:28: The :prelight pseudo-class is deprecated. Use :hover instead.

(mate-settings-daemon:2712): Gtk-WARNING **: 12:32:46.056: Theme parsing error: gtk.css:70:46: Junk at end of value for background-color

(mate-settings-daemon:2712): Gtk-WARNING **: 12:32:46.056: Theme parsing error: gtk.css:77:35: The :prelight pseudo-class is deprecated. Use :hover instead.

(mate-settings-daemon:2712): Gtk-WARNING **: 12:32:46.056: Theme parsing error: gtk.css:81:58: Junk at end of value for background-color

(mate-settings-daemon:2712): Gtk-WARNING **: 12:32:46.056: Theme parsing error: gtk.css:123:31: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(mate-settings-daemon:2712): Gtk-WARNING **: 12:32:46.056: Theme parsing error: gtk.css:124:24: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(mate-settings-daemon:2712): Gtk-WARNING **: 12:32:46.056: Theme parsing error: gtk.css:156:27: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(mate-settings-daemon:2712): Gtk-WARNING **: 12:32:46.056: Theme parsing error: gtk.css:157:29: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(mate-settings-daemon:2712): Gtk-WARNING **: 12:32:46.056: Theme parsing error: gtk.css:177:34: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(mate-settings-daemon:2712): Gtk-WARNING **: 12:32:46.056: Theme parsing error: gtk.css:199:34: The :inconsistent pseudo-class is deprecated. Use :indeterminate instead.

(mate-session:2339): Gtk-WARNING **: 12:32:46.452: Theme parsing error: mate-applications.css:13:4: Expected semicolon

(mate-panel:2719): Gtk-WARNING **: 12:32:46.466: Theme parsing error: gtk.css:27:49: Junk at end of value for background-color

(mate-panel:2719): Gtk-WARNING **: 12:32:46.466: Theme parsing error: gtk.css:40:55: Junk at end of value for background-color

(mate-panel:2719): Gtk-WARNING **: 12:32:46.466: Theme parsing error: gtk.css:48:54: Junk at end of value for background-color

(mate-panel:2719): Gtk-WARNING **: 12:32:46.466: Theme parsing error: gtk.css:59:58: Junk at end of value for background-color

(mate-panel:2719): Gtk-WARNING **: 12:32:46.466: Theme parsing error: gtk.css:66:28: The :prelight pseudo-class is deprecated. Use :hover instead.

(mate-panel:2719): Gtk-WARNING **: 12:32:46.466: Theme parsing error: gtk.css:70:46: Junk at end of value for background-color

(mate-panel:2719): Gtk-WARNING **: 12:32:46.466: Theme parsing error: gtk.css:77:35: The :prelight pseudo-class is deprecated. Use :hover instead.

(mate-panel:2719): Gtk-WARNING **: 12:32:46.466: Theme parsing error: gtk.css:81:58: Junk at end of value for background-color

(mate-panel:2719): Gtk-WARNING **: 12:32:46.466: Theme parsing error: gtk.css:123:31: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(mate-panel:2719): Gtk-WARNING **: 12:32:46.466: Theme parsing error: gtk.css:124:24: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(mate-panel:2719): Gtk-WARNING **: 12:32:46.466: Theme parsing error: gtk.css:156:27: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(mate-panel:2719): Gtk-WARNING **: 12:32:46.466: Theme parsing error: gtk.css:157:29: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(mate-panel:2719): Gtk-WARNING **: 12:32:46.466: Theme parsing error: gtk.css:177:34: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(mate-panel:2719): Gtk-WARNING **: 12:32:46.466: Theme parsing error: gtk.css:199:34: The :inconsistent pseudo-class is deprecated. Use :indeterminate instead.

(mate-panel:2719): Gtk-WARNING **: 12:32:46.481: Theme parsing error: mate-applications.css:13:4: Expected semicolon

(mate-settings-daemon:2712): Gtk-WARNING **: 12:32:46.488: Theme parsing error: mate-applications.css:13:4: Expected semicolon

(mate-panel:2719): Gtk-WARNING **: 12:32:46.523: Theme parsing error: mate-applications.css:13:4: Expected semicolon

(caja:2736): Gtk-WARNING **: 12:32:46.664: Theme parsing error: gtk.css:27:49: Junk at end of value for background-color

(caja:2736): Gtk-WARNING **: 12:32:46.664: Theme parsing error: gtk.css:40:55: Junk at end of value for background-color

(caja:2736): Gtk-WARNING **: 12:32:46.664: Theme parsing error: gtk.css:48:54: Junk at end of value for background-color

(caja:2736): Gtk-WARNING **: 12:32:46.664: Theme parsing error: gtk.css:59:58: Junk at end of value for background-color

(caja:2736): Gtk-WARNING **: 12:32:46.664: Theme parsing error: gtk.css:66:28: The :prelight pseudo-class is deprecated. Use :hover instead.

(caja:2736): Gtk-WARNING **: 12:32:46.664: Theme parsing error: gtk.css:70:46: Junk at end of value for background-color

(caja:2736): Gtk-WARNING **: 12:32:46.664: Theme parsing error: gtk.css:77:35: The :prelight pseudo-class is deprecated. Use :hover instead.

(caja:2736): Gtk-WARNING **: 12:32:46.664: Theme parsing error: gtk.css:81:58: Junk at end of value for background-color

(caja:2736): Gtk-WARNING **: 12:32:46.664: Theme parsing error: gtk.css:123:31: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(caja:2736): Gtk-WARNING **: 12:32:46.664: Theme parsing error: gtk.css:124:24: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(caja:2736): Gtk-WARNING **: 12:32:46.664: Theme parsing error: gtk.css:156:27: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(caja:2736): Gtk-WARNING **: 12:32:46.664: Theme parsing error: gtk.css:157:29: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(caja:2736): Gtk-WARNING **: 12:32:46.664: Theme parsing error: gtk.css:177:34: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(caja:2736): Gtk-WARNING **: 12:32:46.664: Theme parsing error: gtk.css:199:34: The :inconsistent pseudo-class is deprecated. Use :indeterminate instead.

(caja:2736): Gtk-WARNING **: 12:32:46.678: Theme parsing error: mate-applications.css:13:4: Expected semicolon

(mate-power-manager:2753): Gtk-WARNING **: 12:32:46.769: Theme parsing error: gtk.css:27:49: Junk at end of value for background-color

(mate-power-manager:2753): Gtk-WARNING **: 12:32:46.769: Theme parsing error: gtk.css:40:55: Junk at end of value for background-color

(mate-power-manager:2753): Gtk-WARNING **: 12:32:46.769: Theme parsing error: gtk.css:48:54: Junk at end of value for background-color

(mate-power-manager:2753): Gtk-WARNING **: 12:32:46.769: Theme parsing error: gtk.css:59:58: Junk at end of value for background-color

(mate-power-manager:2753): Gtk-WARNING **: 12:32:46.769: Theme parsing error: gtk.css:66:28: The :prelight pseudo-class is deprecated. Use :hover instead.

(mate-power-manager:2753): Gtk-WARNING **: 12:32:46.769: Theme parsing error: gtk.css:70:46: Junk at end of value for background-color

(mate-power-manager:2753): Gtk-WARNING **: 12:32:46.769: Theme parsing error: gtk.css:77:35: The :prelight pseudo-class is deprecated. Use :hover instead.

(mate-power-manager:2753): Gtk-WARNING **: 12:32:46.769: Theme parsing error: gtk.css:81:58: Junk at end of value for background-color

(mate-power-manager:2753): Gtk-WARNING **: 12:32:46.769: Theme parsing error: gtk.css:123:31: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(mate-power-manager:2753): Gtk-WARNING **: 12:32:46.769: Theme parsing error: gtk.css:124:24: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(mate-power-manager:2753): Gtk-WARNING **: 12:32:46.769: Theme parsing error: gtk.css:156:27: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(mate-power-manager:2753): Gtk-WARNING **: 12:32:46.769: Theme parsing error: gtk.css:157:29: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(mate-power-manager:2753): Gtk-WARNING **: 12:32:46.770: Theme parsing error: gtk.css:177:34: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(mate-power-manager:2753): Gtk-WARNING **: 12:32:46.770: Theme parsing error: gtk.css:199:34: The :inconsistent pseudo-class is deprecated. Use :indeterminate instead.

(mate-power-manager:2753): Gtk-WARNING **: 12:32:46.785: Theme parsing error: mate-applications.css:13:4: Expected semicolon
mate-session[2339]: WARNING: Could not launch application 'mate-maximus-autostart.desktop': Unable to start application: Failed to execute child process “mate-maximus” (No such file or directory)

(nvidia-settings:2774): Gtk-WARNING **: 12:32:46.805: Theme parsing error: gtk.css:27:49: Junk at end of value for background-color

(nvidia-settings:2774): Gtk-WARNING **: 12:32:46.805: Theme parsing error: gtk.css:40:55: Junk at end of value for background-color

(nvidia-settings:2774): Gtk-WARNING **: 12:32:46.805: Theme parsing error: gtk.css:48:54: Junk at end of value for background-color

(nvidia-settings:2774): Gtk-WARNING **: 12:32:46.805: Theme parsing error: gtk.css:59:58: Junk at end of value for background-color

(nvidia-settings:2774): Gtk-WARNING **: 12:32:46.805: Theme parsing error: gtk.css:66:28: The :prelight pseudo-class is deprecated. Use :hover instead.

(nvidia-settings:2774): Gtk-WARNING **: 12:32:46.805: Theme parsing error: gtk.css:70:46: Junk at end of value for background-color

(nvidia-settings:2774): Gtk-WARNING **: 12:32:46.805: Theme parsing error: gtk.css:77:35: The :prelight pseudo-class is deprecated. Use :hover instead.

(nvidia-settings:2774): Gtk-WARNING **: 12:32:46.805: Theme parsing error: gtk.css:81:58: Junk at end of value for background-color

(nvidia-settings:2774): Gtk-WARNING **: 12:32:46.805: Theme parsing error: gtk.css:123:31: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(nvidia-settings:2774): Gtk-WARNING **: 12:32:46.805: Theme parsing error: gtk.css:124:24: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(nvidia-settings:2774): Gtk-WARNING **: 12:32:46.805: Theme parsing error: gtk.css:156:27: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(nvidia-settings:2774): Gtk-WARNING **: 12:32:46.805: Theme parsing error: gtk.css:157:29: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(nvidia-settings:2774): Gtk-WARNING **: 12:32:46.806: Theme parsing error: gtk.css:177:34: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(nvidia-settings:2774): Gtk-WARNING **: 12:32:46.806: Theme parsing error: gtk.css:199:34: The :inconsistent pseudo-class is deprecated. Use :indeterminate instead.

(nvidia-settings:2774): Gtk-WARNING **: 12:32:46.822: Theme parsing error: mate-applications.css:13:4: Expected semicolon

(plank:2766): Gtk-WARNING **: 12:32:46.835: Theme parsing error: gtk.css:27:49: Junk at end of value for background-color

(plank:2766): Gtk-WARNING **: 12:32:46.835: Theme parsing error: gtk.css:40:55: Junk at end of value for background-color

(plank:2766): Gtk-WARNING **: 12:32:46.835: Theme parsing error: gtk.css:48:54: Junk at end of value for background-color

(plank:2766): Gtk-WARNING **: 12:32:46.836: Theme parsing error: gtk.css:59:58: Junk at end of value for background-color

(plank:2766): Gtk-WARNING **: 12:32:46.836: Theme parsing error: gtk.css:66:28: The :prelight pseudo-class is deprecated. Use :hover instead.

(plank:2766): Gtk-WARNING **: 12:32:46.836: Theme parsing error: gtk.css:70:46: Junk at end of value for background-color

(plank:2766): Gtk-WARNING **: 12:32:46.836: Theme parsing error: gtk.css:77:35: The :prelight pseudo-class is deprecated. Use :hover instead.

(plank:2766): Gtk-WARNING **: 12:32:46.836: Theme parsing error: gtk.css:81:58: Junk at end of value for background-color

(plank:2766): Gtk-WARNING **: 12:32:46.836: Theme parsing error: gtk.css:123:31: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(plank:2766): Gtk-WARNING **: 12:32:46.836: Theme parsing error: gtk.css:124:24: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(plank:2766): Gtk-WARNING **: 12:32:46.836: Theme parsing error: gtk.css:156:27: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(plank:2766): Gtk-WARNING **: 12:32:46.836: Theme parsing error: gtk.css:157:29: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(plank:2766): Gtk-WARNING **: 12:32:46.836: Theme parsing error: gtk.css:177:34: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(plank:2766): Gtk-WARNING **: 12:32:46.836: Theme parsing error: gtk.css:199:34: The :inconsistent pseudo-class is deprecated. Use :indeterminate instead.

(nvidia-settings:2808): Gtk-WARNING **: 12:32:46.840: Theme parsing error: gtk.css:27:49: Junk at end of value for background-color

(nvidia-settings:2808): Gtk-WARNING **: 12:32:46.840: Theme parsing error: gtk.css:40:55: Junk at end of value for background-color

(nvidia-settings:2808): Gtk-WARNING **: 12:32:46.840: Theme parsing error: gtk.css:48:54: Junk at end of value for background-color

(nvidia-settings:2808): Gtk-WARNING **: 12:32:46.840: Theme parsing error: gtk.css:59:58: Junk at end of value for background-color

(nvidia-settings:2808): Gtk-WARNING **: 12:32:46.840: Theme parsing error: gtk.css:66:28: The :prelight pseudo-class is deprecated. Use :hover instead.

(nvidia-settings:2808): Gtk-WARNING **: 12:32:46.840: Theme parsing error: gtk.css:70:46: Junk at end of value for background-color

(nvidia-settings:2808): Gtk-WARNING **: 12:32:46.840: Theme parsing error: gtk.css:77:35: The :prelight pseudo-class is deprecated. Use :hover instead.

(nvidia-settings:2808): Gtk-WARNING **: 12:32:46.840: Theme parsing error: gtk.css:81:58: Junk at end of value for background-color

(nvidia-settings:2808): Gtk-WARNING **: 12:32:46.840: Theme parsing error: gtk.css:123:31: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(nvidia-settings:2808): Gtk-WARNING **: 12:32:46.840: Theme parsing error: gtk.css:124:24: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(nvidia-settings:2808): Gtk-WARNING **: 12:32:46.840: Theme parsing error: gtk.css:156:27: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(nvidia-settings:2808): Gtk-WARNING **: 12:32:46.840: Theme parsing error: gtk.css:157:29: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(nvidia-settings:2808): Gtk-WARNING **: 12:32:46.840: Theme parsing error: gtk.css:177:34: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(nvidia-settings:2808): Gtk-WARNING **: 12:32:46.840: Theme parsing error: gtk.css:199:34: The :inconsistent pseudo-class is deprecated. Use :indeterminate instead.

(plank:2766): Gtk-WARNING **: 12:32:46.850: Theme parsing error: mate-applications.css:13:4: Expected semicolon

(nvidia-settings:2808): Gtk-WARNING **: 12:32:46.853: Theme parsing error: mate-applications.css:13:4: Expected semicolon

What does it mean?

-Expected semicolon
-Junk at end of value for background-color
-Use :disabled instead
-Use :indeterminate instead
-Use :hover instead

Which file must I edit?

As usual, that depends...

  1. Verify the name of your current theme.
  2. Find by the name theme's folder in /usr/share/themes
  3. Check the presence of folder with the theme's name in /home/<your login>/.themes folder. If it is there, then it overrides the theme in /usr/share/themes and there are files to be edited. If it is not there then the theme in /usr/share/themes is in effect.
  4. Common wisdom is that direct theme editing in /usr/share/themes is undesirable. It is always better copy it to /home/<your login>/.themes folder and edit that copy instead.

Next to it:

File is mate-applications.css. Probably, in line 13 at 4th position semicolon is missing. And so on.

"mate-application.css"

/********

  • Caja *
    ********/

/* caja sidebar /
/
places, treeview, history, information, emblems and notes */
.caja-side-pane > notebook treeview.view,
.caja-side-pane > notebook textview.view text,
.caja-side-pane > notebook viewport.frame,
.caja-side-pane > notebook widget .vertical {
background-color: shade (@bg_color, 0.98);
color: #00FF9D;
#color: @theme_fg_color;
}

Line 13 is this:
#color: @theme_fg_color;

What is wrong? I see no error, the semicolon is present.

or here:

(mate-session:2339): Gtk-WARNING **: 12:32:45.455: Theme parsing error: gtk.css:27:49: Junk at end of value for background-color

What must I edit/remove?

background-color: @panel_bg_color background-image: -gtk-gradient(linear,left top,left bottom,from(shade(@panel_bg_color,1.2)),to(shade(@panel_bg_color,0.8)));

What is "Junk at end of value for background-color" ...?

here is the original gtk.css in /home/user/.config/gtk-3.0

/* Custom styles */

/* select-on /
@define-color selected_bg_color #34e2e2;
@define-color selected_fg_color #ffffff;
@define-color theme_selected_bg_color @selected_bg_color;
@define-color theme_selected_fg_color @selected_fg_color;
/
select-on */

/* panel-on */
@define-color panel_bg_color #cccccc;
@define-color panel_fg_color #333333;

PanelWidget,
PanelApplet,
PanelToplevel,
PanelSeparator,
PanelApplet > GtkMenuBar.menubar,
PanelApplet > GtkMenuBar.menubar.menuitem,
PanelMenuBar.menubar,
PanelMenuBar.menubar.menuitem,
PanelAppletFrame,
UnityPanelWidget,
.gnome-panel-menu-bar,
.unity-panel,
.xfce4-panel {
background-color: @panel_bg_color background-image: -gtk-gradient(linear,left top,left bottom,from(shade(@panel_bg_color,1.2)),to(shade(@panel_bg_color,0.8)));
color: @panel_fg_color;
}

.unity-panel.menuitem,
.unity-panel .menuitem {
color: @panel_fg_color;
}

.unity-panel.menubar.menuitem:hover,
.unity-panel.menubar .menuitem *:hover {
border-color: shade(@panel_bg_color,0.7);
border-image: none;
background-color: shade(@panel_bg_color,0.97) background-image: -gtk-gradient(linear,left top,left bottom,from(shade(@panel_bg_color,0.97)),to(shade(@panel_bg_color,0.82)));
color: @panel_fg_color;
}

PanelApplet .button,
.xfce4-panel .button {
border-color: transparent;
border-image: none;
background-color: shade(@panel_bg_color,1.2) background-image: -gtk-gradient(linear,left top,left bottom,from(shade(@panel_bg_color,1.2)),to(shade(@panel_bg_color,0.8)));
color: @panel_fg_color;
box-shadow: none;
text-shadow: none;
-unico-inner-stroke-width: 0;
}

PanelApplet .button:active,
.xfce4-panel .button:active {
border-color: shade(@panel_bg_color,0.8);
border-image: none;
background-color: shade(shade(@panel_bg_color,1.02),0.9) background-image: -gtk-gradient(linear,left top,left bottom,from(shade(shade(@panel_bg_color,1.02),0.9)),to(shade(shade(@panel_bg_color,1.02),0.95)));
color: @panel_fg_color;
box-shadow: none;
text-shadow: none;
-unico-inner-stroke-width: 0;
}

PanelApplet .button:prelight,
.xfce4-panel .button:hover {
border-color: transparent;
border-image: none;
background-color: shade(@panel_bg_color,1.2) background-image: -gtk-gradient(linear,left top,left bottom,from(shade(@panel_bg_color,1.2)),to(shade(@panel_bg_color,1.0)));
color: @panel_fg_color;
box-shadow: none;
text-shadow: none;
-unico-inner-stroke-width: 0;
}

PanelApplet .button:active:prelight,
.xfce4-panel .button:active:hover {
border-color: shade(@panel_bg_color,0.8);
border-image: none;
background-color: shade(shade(@panel_bg_color,1.02),1.0) background-image: -gtk-gradient(linear,left top,left bottom,from(shade(shade(@panel_bg_color,1.02),1.0)),to(shade(shade(@panel_bg_color,1.02),1.05)));
color: @panel_fg_color;
box-shadow: none;
text-shadow: none;
-unico-inner-stroke-width: 0;
}

WnckPager,
WnckTasklist {
background-color: @panel_bg_color;
}

/* panel-on */

/* menu-on */
@define-color menu_bg_color #34e2e2;
@define-color menu_fg_color #2e3436;

GtkTreeMenu.menu,
GtkMenuToolButton.menu,
GtkComboBox .menu {
background-color: @menu_bg_color;
background-image: none;
}

.primary-toolbar .button .menu,
.toolbar .menu,
.toolbar .primary-toolbar .menu,
.menu,
#toolbar-popup {
border-style: none;
background-image: none;
background-color: @menu_bg_color;
background-image: none;
color: @menu_fg_color;
box-shadow: none;
text-shadow: none;
-unico-inner-stroke-width: 0;
}

.menu.button:hover,
.menu.button:active,
.menu.button:active:insensitive,
.menu.button:insensitive,
.menu.button {
background-color: @menu_bg_color;
background-image: none;
}

GtkTreeMenu .menuitem * {
color: @menu_fg_color;
}

.menuitem,
.menu .menuitem {
background-color: transparent;
background-image: none;
}

.menu .menuitem:active,
.menu .menuitem:hover {
background-color: @theme_selected_bg_color;
background-image: none;
}

.menuitem.check,
.menuitem.radio,
.menuitem.check:hover,
.menuitem.radio:hover,
.menuitem.check:active,
.menuitem.radio:active {
background-color: transparent;
background-image: none;
}

.menu .menuitem:insensitive,
.menu .menuitem *:insensitive {
color: mix(@menu_fg_color,@menu_bg_color,0.5);
}

.menuitem.arrow {
color: alpha(@menu_fg_color, 0.6);
}

.menuitem .entry {
border-color: shade(@menu_bg_color,0.7);
border-image: none;
background-color: @menu_bg_color;
background-image: none;
color: @menu_fg_color;
}

.menuitem .accelerator {
color: alpha(@menu_fg_color,0.6);
}

.menuitem .accelerator:insensitive {
color: alpha(mix(@menu_fg_color,@menu_bg_color,0.5),0.6);
text-shadow: none;
}

.menuitem.separator {
background-color: transparent;
background-image: none;
color: shade(@menu_bg_color, 0.9);
}

.menuitem GtkCalendar,
.menuitem GtkCalendar.button,
.menuitem GtkCalendar.header,
.menuitem GtkCalendar.view {
border-color: shade(@menu_bg_color,0.8);
border-image: none;
background-color: @menu_bg_color;
background-image: none;
color: @menu_fg_color;
}

.menuitem GtkCalendar:inconsistent {
color: mix(@menu_fg_color,@menu_bg_color,0.5);
}

/* menu-on */

/* End custom styles */

I edited the "Junk at the end of value for background color lines"

is this right?

.xfce4-panel {
background-color: @panel_bg_color
background-image: -gtk-gradient(linear,left top,left bottom,from(shade(@panel_bg_color,1.2)),to(shade(@panel_bg_color,0.8)));
color: @panel_fg_color;
}

.unity-panel.menuitem,
.unity-panel .menuitem {
color: @panel_fg_color;
}

.unity-panel.menubar.menuitem:hover,
.unity-panel.menubar .menuitem *:hover {
border-color: shade(@panel_bg_color,0.7);
border-image: none;
background-color: shade(@panel_bg_color,0.97)
background-image: -gtk-gradient(linear,left top,left bottom,from(shade(@panel_bg_color,0.97)),to(shade(@panel_bg_color,0.82)));
color: @panel_fg_color;
}

PanelApplet .button,
.xfce4-panel .button {
border-color: transparent;
border-image: none;
background-color: shade(@panel_bg_color,1.2)
background-image: -gtk-gradient(linear,left top,left bottom,from(shade(@panel_bg_color,1.2)),to(shade(@panel_bg_color,0.8)));
color: @panel_fg_color;
box-shadow: none;
text-shadow: none;
-unico-inner-stroke-width: 0;
}

PanelApplet .button:active,
.xfce4-panel .button:active {
border-color: shade(@panel_bg_color,0.8);
border-image: none;
background-color: shade(shade(@panel_bg_color,1.02),0.9)
background-image: -gtk-gradient(linear,left top,left bottom,from(shade(shade(@panel_bg_color,1.02),0.9)),to(shade(shade(@panel_bg_color,1.02),0.95)));
color: @panel_fg_color;
box-shadow: none;
text-shadow: none;
-unico-inner-stroke-width: 0;
}

PanelApplet .button:prelight,
.xfce4-panel .button:hover {
border-color: transparent;
border-image: none;
background-color: shade(@panel_bg_color,1.2)
background-image: -gtk-gradient(linear,left top,left bottom,from(shade(@panel_bg_color,1.2)),to(shade(@panel_bg_color,1.0)));
color: @panel_fg_color;
box-shadow: none;
text-shadow: none;
-unico-inner-stroke-width: 0;
}

PanelApplet .button:active:prelight,
.xfce4-panel .button:active:hover {
border-color: shade(@panel_bg_color,0.8);
border-image: none;
background-color: shade(shade(@panel_bg_color,1.02),1.0)
background-image: -gtk-gradient(linear,left top,left bottom,from(shade(shade(@panel_bg_color,1.02),1.0)),to(shade(shade(@panel_bg_color,1.02),1.05)));
color: @panel_fg_color;
box-shadow: none;
text-shadow: none;
-unico-inner-stroke-width: 0;
}

:frowning:

(nvidia-settings:2726): Gtk-WARNING **: 16:07:24.952: Theme parsing error: gtk.css:28:1: Junk at end of value for background-color

I don't know what is here the junk:

background-image: -gtk-gradient(linear,left top,left bottom,from(shade(@panel_bg_color,1.2)),to(shade(@panel_bg_color,0.8)));

Can you help @ ugnvs?

It looks like commenting out line with sharp # does not work in .css files.

I am afraid this is not an original gtk.css file, but its override. Have you tried to remove it and, possibly, other overrides of the original UM theme?

By the way, there was # comment in it.

It looks like that semicolons are missed in each line with background-color: @panel_bg_color text

Ok, fixed.

Can you please post here your gtk.css from "/home/user/.config/gtk-3.0"?

Well... I do not have any for I do not use (partial) gtk overrides and keep all of my custom theme at its entirety in ~/.themes

[code]
$ ls ~/.config/gtk-3.0
bookmarks
$ ls ~/.themes
TraditionalHumanized TraditionalHumanizedCL.tar.gz
$
[\code]