Xfce Forum

Sub domains
 

You are not logged in.

#1 2023-08-03 22:51:28

Tio
Member
Registered: 2021-09-26
Posts: 92

Theme Docklike's opened window count

I tried for a year now to stylize the window count buttons for Doocklike and I cannot figure how. This tutorial does not work https://docs.xfce.org/panel-plugins/xfc … rt#theming . I tried multiple selectors, nothing seems to work. The default indicators are white and on light icons they are invisible. It would be good to have them on some background.

Any help is greatly appreciated! smile

Offline

#2 2023-08-04 00:04:54

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

Re: Theme Docklike's opened window count

Those settings work for me. Which version of the docklike plugin are you running? I'm on 0.4.1git

To change the colour of the window count label, the following works for me:

#docklike-plugin .window_count {color: red;}

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 2023-08-04 00:07:13

Tio
Member
Registered: 2021-09-26
Posts: 92

Re: Theme Docklike's opened window count

Yes I was trying now.

#docklike-plugin .group .window_count  {font-size:20px;   
  color: white; 
text-shadow: 2px 0 #000, -2px 0 #000, 0 2px #000, 0 -2px #000,
2px 0 #000, -2px 0 #000, 0 2px #000, 0 -2px #000,
1px 1px #000, -1px -1px #000, 1px -1px #000, -1px 1px #000,
1px 1px #000, -1px -1px #000, 1px -1px #000, -1px 1px #000;
}

That looks decent however the issue was always that I cannot add say a background behind the text to make it more visible since #docklike-plugin .group .window_count is the selector for the text holder so it will be applied to all icons...

I am struggling to find a way to only select the label and not the label holder.

Last edited by Tio (2023-08-04 00:07:38)

Offline

#4 2023-08-04 01:27:45

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

Re: Theme Docklike's opened window count

Tio wrote:

That looks decent however the issue was always that I cannot add say a background behind the text to make it more visible since #docklike-plugin .group .window_count is the selector for the text holder so it will be applied to all icons...

I see what you're saying. The icons that don't have the label still have a sliver of the background showing. I can get rid of that by forcing a margin:

#docklike-plugin .group .window_count  {font-size:20px;   
  color: white; 
text-shadow: 2px 0 #000, -2px 0 #000, 0 2px #000, 0 -2px #000,
2px 0 #000, -2px 0 #000, 0 2px #000, 0 -2px #000,
1px 1px #000, -1px -1px #000, 1px -1px #000, -1px 1px #000,
1px 1px #000, -1px -1px #000, 1px -1px #000, -1px 1px #000; 
background: blue; margin-right: 1px;
}

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 2023-08-04 11:40:20

Tio
Member
Registered: 2021-09-26
Posts: 92

Re: Theme Docklike's opened window count

Thanks. Indeed. However if you leave at that is not very helpful it needs some padding and perhaps round edges or something to make it stand out. If you do that the the background will immediately become obvious for all icons. See https://files.trom.tf/s/CETYXEwtrmEy8Hx

I think it the elements may not be very well defined for docklike. I would expect to be able to only theme the number of opened windows text...

Offline

#6 2023-08-04 12:49:07

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

Re: Theme Docklike's opened window count

Yeah. The fact that the .window_count style element exists for single windows is the issue here. It would need to be fixed in the code.


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 2023-08-04 12:57:54

Tio
Member
Registered: 2021-09-26
Posts: 92

Re: Theme Docklike's opened window count

Yup. For now adding a shadow to the text seems to improve it a lot. https://gitlab.xfce.org/panel-plugins/x … note_77585

Thanks for your input as always!

Offline

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

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.009 seconds, 7 queries executed - Memory usage: 546.79 KiB (Peak: 547.63 KiB) ]