Xfce Forum

Sub domains
 

You are not logged in.

#1 2020-06-04 23:25:45

kindperson1
Member
Registered: 2020-06-04
Posts: 8

How to change Drop-down menu text size?

Hello,

I'm creating a drop-down launcher with 3 container items in it and I'm having trouble trying to set the text size, it look very small, how to setting text size to increase size for menu section? Example: "To Do 1" "To Do 2" "To Do 3" how can I set them increase text size?

sshot

Thank you!

Last edited by kindperson1 (2020-06-04 23:29:43)

Offline

#2 2020-06-05 00:27:33

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

Re: How to change Drop-down menu text size?

Hello and welcome.

Assuming the GTK3 version of xfce4-panel (version 4.14 or greater), the following tweak in ~/.config/gtk-3.0/gtk.css will affect the popup menu font size of multiple launcher widgets:

#launcher-14 window box label { font-size: 12pt; }

...change "-14" to be the actual number of your launcher ID which you can get by hovering over the widget in the Panel Properties > Items tab, as well as the font size that you want.


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-06-05 12:28:46

kindperson1
Member
Registered: 2020-06-04
Posts: 8

Re: How to change Drop-down menu text size?

It's working now that's so cool but what about the icon beside the text?

#launcher-14 window box label { font-size: 12pt; icon-size: 12px; }

adding icon-size: 12px; not working.

Offline

#4 2020-06-05 16:50:56

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

Re: How to change Drop-down menu text size?

"icon-size" is not a valid parameter.

Icon sizing, in Xfce/GTK3, is a complicated matter. There is no easy way that I am aware of to properly size icons. Perhaps the size is limited in xfce4-panel. You could try something like this:

#launcher-14 window box image { -gtk-icon-transform: scale(1.5); }

this will upscale the icon, but unfortunately, it will also blur it.


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-06-23 08:42:19

kindperson1
Member
Registered: 2020-06-04
Posts: 8

Re: How to change Drop-down menu text size?

Thanks ToZ,

but what about the small "arrow"  " v " thing, what the exact ID for the arrow? I want to edit the arrow.

sshot1


#launcher-arrow

this changes effect the other arrows on panel too, can you tell what's the ID for this arrow please,

#launcher-arrow #launcher1

did not work, need to find the number ID for this arrow.

Last edited by kindperson1 (2020-06-23 08:49:35)

Offline

#6 2020-06-23 10:56:56

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

Re: How to change Drop-down menu text size?

kindperson1 wrote:

I want to edit the arrow.

https://i.imgur.com/yLlV1hb.png


#launcher-arrow

this changes effect the other arrows on panel too, can you tell what's the ID for this arrow please,

#launcher-arrow #launcher1

did not work, need to find the number ID for this arrow.

You can reach the arrow via:

#launcher-1 .toggle

...however, there isn't much you can do with it - it is drawn onto aa button widget. You can change the colour:

#launcher-1 .toggle { color: red; }

...naturally, change the "#launcher-1" to match the ID of the widget.


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.023 seconds, 7 queries executed - Memory usage: 540.09 KiB (Peak: 541.38 KiB) ]