Xfce Forum

Sub domains
 

You are not logged in.

#1 2019-07-13 04:53:08

njkevlani
Member
From: India
Registered: 2018-11-27
Posts: 13
Website

[Solved] Avoid margin in xfce4-genmon when added <click> attribute

When <click> attribute added to a genmon module, it adds some margin to the icon. Can we avoid this margin?

Screenshots to understand my problem better:

genmon module showing weather without <click> attribute:

genmon module showing weather without <click> attribute:



genmon module showing weather with <click> attribute:

genmon module showing weather with <click> attribute:


Notice the weather icon (cloud icon) is taking more space in second image in which <click> attribute is added.

Last edited by njkevlani (2019-07-13 11:42:23)

Offline

#2 2019-07-13 11:27:07

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

Re: [Solved] Avoid margin in xfce4-genmon when added <click> attribute

Great plugin this one....

I'll assume you are using the GTK3 version of the plugin. You can use a negative margin value like this:

.genmon_value {margin-left: -7px;}

If you want it to affect only one instance of the plugin, prepend the config entry with the name of the plugin:

#genmon-10 .genmon_value {margin-left: -7px;}

Note: the '#' is not a comment but a GTK3 widget ID indicator.


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 2019-07-13 11:41:05

njkevlani
Member
From: India
Registered: 2018-11-27
Posts: 13
Website

Re: [Solved] Avoid margin in xfce4-genmon when added <click> attribute

Worked like a charm as always!

Thanks @Toz smile

For those, who are facing this kind of situation and wondering where to put this CSS, you need to put this CSS in gtk.css which is located at

~/.config/gtk-3.0/gtk.css

Offline

Board footer

Powered by FluxBB