Xfce Forum

Sub domains
 

You are not logged in.

#1 2018-01-03 09:30:44

wuwei
Member
From: Italy
Registered: 2017-01-29
Posts: 58

[SOLVED] Howto change font style for Window Buttons plugin (Manjaro)

Hi, I'm working with Manjaro XFCE version 17.1.0 with theme Adapta-Nokto-Eta..it works very well, except I would like to change font style for Windows Buttons plugin giving it a bold style and uniform the look with other plugins in my main panel bar (date/time, action buttons, weather update, etc).

I've tried to put in ~/.gtkrc-2.0 (that works in my other Linux Mint 18.3 system):

style "gtklabelbold"{
font_name="bold"}
widget "*Xfce*Panel*"    style "gtklabelbold"

but it doesn't works. How to make it possible?

Desktop image with some system details (see terminal window):

screenshot2018-01-0310-36-26.png

Thanks!

Last edited by wuwei (2018-01-06 15:23:03)

Offline

#2 2018-01-04 02:09:40

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

Re: [SOLVED] Howto change font style for Window Buttons plugin (Manjaro)

What version of xfce4-panel are you using?

If it is the gtk3 version, then you need the following in ~/.config/gtk-3.0/gtk.css:

#tasklist-18 {
   font-weight: Bold;
{

...where "tasklist-18" is the actual name of the widget (which you can get by hovering over the item at Panel Preferences > Items tab).

Or:

.xfce4-panel {
   font-weight: Bold;
}

...if you want all GTK3 panel elements text bolded.

If it's the gtk2 version, then your code should work. Maybe post back the full content of your ~/.gtkrc-2.0 file so that we can review.


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 2018-01-04 08:34:48

wuwei
Member
From: Italy
Registered: 2017-01-29
Posts: 58

Re: [SOLVED] Howto change font style for Window Buttons plugin (Manjaro)

I'm actually using xfce4-panel version 4.12.2.
As you suggested I've tried to create a new file gtk.css in ~/.config/gtk-3.0 with inside:

#tasklist-3 {
   font-weight: Bold;
{

but seems that it doesn't work..

AKA7oO9.png

in the rest of panel other plugins look so:

Pnbqn0il.png

the content of ~/.gtkrc-2.0 is only that in the initial post:

style "gtklabelbold"{
font_name="bold"}
widget "*Xfce*Panel*"    style "gtklabelbold"

Furthermore, system default font used is Cantarell Bold.

what's wrong?

Last edited by wuwei (2018-01-04 17:35:19)

Offline

#4 2018-01-04 11:28:50

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

Re: [SOLVED] Howto change font style for Window Buttons plugin (Manjaro)

Adapta-Nokto-Eta is forcing a normal font weight there. Change the priority in your code:

style "gtklabelbold"{
font_name="bold"}
widget "*Xfce*Panel*"    style:highest "gtklabelbold"

...note the ":highest" keyword.


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 2018-01-04 14:02:39

wuwei
Member
From: Italy
Registered: 2017-01-29
Posts: 58

Re: [SOLVED] Howto change font style for Window Buttons plugin (Manjaro)

Solved!
Thank you so much!

Now works like a charm!

:-)

xm9si9Ll.png

Last edited by wuwei (2018-01-04 17:24:01)

Offline

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

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.007 seconds, 7 queries executed - Memory usage: 534.45 KiB (Peak: 535.29 KiB) ]