Xfce Forum

Sub domains
 

You are not logged in.

#1 2020-03-29 10:32:44

woistmeinauto
Member
Registered: 2020-03-29
Posts: 54

Window buttons plugin loses it's tab appearance with themes

I want my tabs to be separated significantly by some line or something.
I also want active tabs to have different background color.
I like my theme and i don't want to change it, so i need to know which files i need to edit.
Have gimp and inkscape installed.

Offline

#2 2020-03-29 12:50:08

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

Re: Window buttons plugin loses it's tab appearance with themes

A screenshot might help. Also, which theme are you using? It would be the theme that defines the colour scheme.


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 2020-03-29 14:54:29

woistmeinauto
Member
Registered: 2020-03-29
Posts: 54

Re: Window buttons plugin loses it's tab appearance with themes

https://imgur.com/IFg4T87.png
As you can see there is almost no distinction between active and inactive tabs.
Using matcha-dark-sea theme that came with my manjaro installation.
I have an old laptop with xfce 4.12, on that the active tab is of different color.
I want active tabs to be very distinct.

This looks much better: https://imgur.com/Ev2Jalu.png

So i just need to mix these 2 themes.

Offline

#4 2020-03-29 15:38:54

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

Re: Window buttons plugin loses it's tab appearance with themes

Matcha-dark-sea uses a green underline to indicate the active button/window.

You can change the background colour of the selected button via something like the following in your ~/.config/gtk-3.0/gtk.css file:

#tasklist-2 button:checked { background-color: rgba(255,155,155,1); }

...where:
   - "tasklist-2" is the name of your tasklist widget (hover over the item in Panel>Properties>Items tab).
   - "rgba(x,x,x,x)" is the red, green, blue, transparency value of the colour that you want to use.


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 2020-03-29 15:53:28

woistmeinauto
Member
Registered: 2020-03-29
Posts: 54

Re: Window buttons plugin loses it's tab appearance with themes

I don't have that css file for some reason. Have the folder but it's empty. What if I create myself?

Offline

#6 2020-03-29 15:54:53

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

Re: Window buttons plugin loses it's tab appearance with themes

woistemeinauto wrote:

I don't have that css file for some reason. Have the folder but it's empty. What if I create myself?

Yes, create the file if it doesn't exist.


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 2020-03-29 17:33:06

woistmeinauto
Member
Registered: 2020-03-29
Posts: 54

Re: Window buttons plugin loses it's tab appearance with themes

this is from matcha-dark-sea

button:active, button:checked {
  color: #ffffff;
  border-color: rgba(0, 0, 0, 0.25);
  background-color: #2eb398;
  background-clip: padding-box;
  transition-duration: 50ms;
}

and this is from matcha-aliz

button:active, button:checked {
  color: #ffffff;
  border-color: #F0544C;
  background-color: #F0544C;
  background-clip: border-box;
  transition-duration: 50ms;
}

Matcha-aliz is using similar box style of adwaita i posted.
z3kktJy.png

When I change color code of aliz it changes immediately. When I use exact code on dark-sea nothing changes.

If you would like to take a look: https://filebin.net/7e0at5udovnf9enk

Offline

#8 2020-03-29 17:36:58

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

Re: Window buttons plugin loses it's tab appearance with themes

Are you making these changes directly in the theme's gtk.css file or are you creating an ~/.config/gtk-3.0/gtk.css file? When I use my code from post #4 in ~/.config/gtk-3.0/gtk.css, and restart xfce4-panel, it does work.


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 2020-03-29 17:46:50

woistmeinauto
Member
Registered: 2020-03-29
Posts: 54

Re: Window buttons plugin loses it's tab appearance with themes

I got this error when i added it to gtk.css of root

(xfce4-panel:42355): Gtk-WARNING **: 20:45:17.866: Theme parsing error: gtk.css:409:22: '2EB398' is not a valid color name

Edit: Nah ignore it, it was from my edited version of the theme. As usual, nothing happens. I don't think gtk.css from root is used.

Last edited by woistmeinauto (2020-03-29 17:54:24)

Offline

#10 2020-03-29 18:20:25

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

Re: Window buttons plugin loses it's tab appearance with themes

woistemeinauto wrote:

I got this error when i added it to gtk.css of root

(xfce4-panel:42355): Gtk-WARNING **: 20:45:17.866: Theme parsing error: gtk.css:409:22: '2EB398' is not a valid color name

Edit: Nah ignore it, it was from my edited version of the theme. As usual, nothing happens. I don't think gtk.css from root is used.

No, don't add it to root's gtk.css. You want it in your profile - your ~/.config/gtk-3.0/gtk.css file.


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

#11 2020-03-29 18:25:32

woistmeinauto
Member
Registered: 2020-03-29
Posts: 54

Re: Window buttons plugin loses it's tab appearance with themes

Thank you so much! It works now. Show desktop plugin is also slim now.

Offline

Board footer

Powered by FluxBB