Xfce Forum

Sub domains
 

You are not logged in.

#1 2017-03-09 05:43:35

javum
Member
Registered: 2017-03-09
Posts: 5

xfce4-genmon-plugin and panel background issue

Hi!
I'm using Arch and
xfce4-genmon-plugin 4.0.0
xfce4-panel 4.12.1
And my custom genmon plugins not using system panel color as bg color.
2017_03_09_12_32_26.png
How to fix this?

Offline

#2 2017-03-09 11:20:57

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,948

Re: xfce4-genmon-plugin and panel background issue

Hello and welcome. I've moved your post to its own thread.

Can you identify which of those plugins are genmon plugins? Is it all 3 of them with the dark backgrounds?
Which Appearance theme are you using?


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#3 2017-03-09 14:22:18

javum
Member
Registered: 2017-03-09
Posts: 5

Re: xfce4-genmon-plugin and panel background issue

ToZ wrote:

Can you identify which of those plugins are genmon plugins? Is it all 3 of them with the dark backgrounds?

Yes, they are with dark background.

Which Appearance theme are you using?

I'm using Arc theme, and it really has dark panel, but I have recolored it to white by small mod of gtk-2.0/panel.rc file: http://pastebin.com/gdgZR9v8
But what color is using by genmon?

Offline

#4 2017-03-09 15:12:10

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,948

Re: xfce4-genmon-plugin and panel background issue

The genmon plugin uses a transparent background by default.

Can you post a screenshot of the Panel Properties > Items tab for that panel? Those don't look like genmon plugins to me.

Also, can you share one of the scripts that you are using to generate that output?

I just tested your patch here on the Arc theme and I don't get the dark background.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#5 2017-03-09 15:39:25

javum
Member
Registered: 2017-03-09
Posts: 5

Re: xfce4-genmon-plugin and panel background issue

It's genmon 100%
Here is screenshot in Russian
kRg2oEIl.png
My genmon scripts generate svg pictures and show them without label.
For example:

#!/bin/bash

iconfile=/tmp/arch-light2.svg

pkgs="Empty"


### XFCE GENMON XML ###

echo "<img>$iconfile</img>"

cat <<-EOF
<tool>$pkgs</tool>
EOF

cat <<-EOF
<click>/tmp/update2</click>
EOF
;;

exit 0

Last edited by javum (2017-03-09 15:40:43)

Offline

#6 2017-03-09 17:15:41

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,948

Re: xfce4-genmon-plugin and panel background issue

javum wrote:

My genmon scripts generate svg pictures and show them without label.

Then where is the text in the image coming from? I can definitely see temperatures in the first two and numbers next to the Arch logo. Are they coming from behind the image from your desktop? Or are the images generated with the numbers?

The genmon-plugin version 4 has been migrated to GTK3. Do you have any GTK3 overrides in either ~/.config/gtk-3.0/gtk.css or /etc/gtk-3.0/gtk.css that might be affecting their display?


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#7 2017-03-10 03:50:25

javum
Member
Registered: 2017-03-09
Posts: 5

Re: xfce4-genmon-plugin and panel background issue

Yes, the numbers are the part of svg.
Also I tried the latest Arc with my patch - the bg is stiil dark.
And I haven't any GTK3 styles overrides.
Can you try this SVG: http://svgshare.com/i/xb.svg on your system with Arc theme with my patch and my genmon script?

Update: I found interesting thing. The dark bg is only when panel bg has no style in panel settings. If I select solid color, then genmon bg becomes that color too.

Last edited by javum (2017-03-10 04:20:03)

Offline

#8 2017-03-10 15:12:03

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,948

Re: xfce4-genmon-plugin and panel background issue

Okay, I see whats happening.

When dealing with themeing issues, always try Adwaita first to see if the issue exists there. If not, then its a "mis-configuration" with the theme itself (which is understandable as Xfce changes). If you add the following snippet to ~/.config/gtk-3.0/gtk.css:

.xfce4-panel.panel {
  background-color: #F5F6F7;
  text-shadow: none;
  -gtk-icon-shadow: none;
}

.xfce4-panel.panel button.flat, .xfce4-panel.panel button.sidebar-button {
  color: #F5F5F5;
  border-radius: 0;
  border: none;
} 

.xfce4-panel.panel button.flat:hover, .xfce4-panel.panel button.sidebar-button:hover {
    border: none;
    background-color: rgba(0, 0, 0, 0.0);
}

.xfce4-panel.panel button.flat:active, .xfce4-panel.panel button.sidebar-button:active, .xfce4-panel.panel button.flat:checked, .xfce4-panel.panel button.sidebar-button:checked {
    color: #ffffff;
    border: none;
}

...it will override the settings in that theme to work properly.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#9 2017-03-29 03:29:05

javum
Member
Registered: 2017-03-09
Posts: 5

Re: xfce4-genmon-plugin and panel background issue

Big thanks!
I edit my theme mod, and everything is ok now!

Offline

Board footer

Powered by FluxBB