Xfce Forum

Sub domains
 

You are not logged in.

#1 2024-10-31 10:12:20

peter.48
Member
From: France, sud-ouest
Registered: 2017-01-31
Posts: 157
LinuxFirefox 107.0

icon size in .css [Solved]

This is a continuation of "icons in launcher with several items" https://forum.xfce.org/viewtopic.php?id=17404

I would like to know if there is a way to specify in .css that these are launcher popups only, because after applying

.popup>menu>menuitem>box>image {-gtk-icon-transform: scale(0.5);margin: -10px}

the icons in the right click menu on desktop also become smaller.
I used 0.4 as scale, launchers icons are ok for me, but the desktop right click menu icons are like a few dots (4x4 or 5x5 aprox.).

Small curiosity: in the "applications" submenu of the right-click desktop menu the icons do not change size but in "templates" submenu they do...

Last edited by peter.48 (2024-11-01 04:29:39)

Offline

#2 2024-10-31 23:56:28

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,679
LinuxFirefox 131.0

Re: icon size in .css [Solved]

Looks like you will need to target each individual launcher ID with something like:

#launcher-XX .popup>menu>menuitem>box>image {-gtk-icon-transform: scale(0.5);margin: -10px}

...where XX is the individual ID of each launcher - meaning you'll need multiple entries here. You can get the ID by hovering over the launcher plugin entry on the item list in Panel Preferences.


Mark solved threads as [SOLVED] to make it easier for others to find solutions.
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#3 2024-11-01 04:20:01

peter.48
Member
From: France, sud-ouest
Registered: 2017-01-31
Posts: 157
LinuxFirefox 107.0

Re: icon size in .css [Solved]

Thank you, I will try.
With # at the beginning of the line?

Added later 06 min 38 s:
Super, this work.
Thank you very much.

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: 521.92 KiB (Peak: 522.77 KiB) ]