Xfce Forum

Sub domains
 

You are not logged in.

#1 2017-08-06 19:23:35

Morsus
Member
Registered: 2017-08-06
Posts: 3

.gtkrc changes

Hello folks, I am relatively new to xfce and I found out that I can change themes colors,fonts etc via .gtkrc.
I managed to make some everything except: Whisker menu icon - bg[PRELIGHT], clock - bg[PRELIGHT], clock text color (probably fg[NORMAL]), Show desktop button - bg[PRELIGHT] and on second panel Launchers - bg[PRELIGHT]. The problem is I have no idea how to target those in my .gtkrc file.

Can anyone give me a hand?

Whole panels are dark-themed and when I hover above mentioned components they have white background and its anoying.
Thank you! (:

Offline

#2 2017-08-07 01:05:35

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,493

Re: .gtkrc changes

Hello and welcome.

The first thing is to figure out if you are using the GTK2 or GTK3 version of those plugins. If it's the GTK3 versions (Xfce is currently undergoing a GTK3 migration), then the proper way to change it would be using css and editing the ~/.config/gtk-3.0/gtk.css file.

You can get the widget name by hovering your mouse over the plugin name on the Items tab in the panel preferences. That would be the ID to target.

If you post back the version of xfce4-panel and the panel plugins you are using and the .gtkrc file you are using, we can take a look and offer some suggestions.


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-08-07 04:15:04

Morsus
Member
Registered: 2017-08-06
Posts: 3

Re: .gtkrc changes

Thank you for your reply.

I use "xfce4-panel 4.12.1". And I would really love to migrate (if its possible) to GTK3 since I understand css pretty well.
Sadly its probably GTK2 and here is my /home/.gtkrc-2.0:
http://codepad.org/TzYIyczv

So if internal name is 'clock-5' I would select it as
widget "*clock-5" style "style"
?

Edit:
Just tried this and does not change a thing.
http://codepad.org/nErhbC9k

Those are real IDs of plugins from Items menu.

Also just the "whiskermenu-window" script works, not the other one:
http://i.imgur.com/VNw5BDo.png

Last edited by Morsus (2017-08-07 04:26:20)

Offline

#4 2017-08-07 16:18:54

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,493

Re: .gtkrc changes

Which distro and which appearance theme are you using?

So if internal name is 'clock-5' I would select it as
widget "*clock-5" style "style"
?

Edit:
Just tried this and does not change a thing.
http://codepad.org/nErhbC9k

A couple of things. First. the widget declaration should be something like:

widget "*clock-5*" style "clockbg"

...or (to affect all clock widgets):

widget "*clock*" style "clockbg"

...(note there are other ways, but these will suffice).

Secondly, to change the background of the clock, you need to use the pixmap engine. See this thread. Just create a png file with the colour you want and use it instead.


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

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.008 seconds, 8 queries executed - Memory usage: 533.56 KiB (Peak: 534.41 KiB) ]