Xfce Forum

Sub domains
 

You are not logged in.

#1 2020-02-20 01:27:15

GabrielCoutinho
Member
From: Portugal
Registered: 2019-12-15
Posts: 18

[SOLVED] panel launcher – how to hide arrow for multi-launchers gtk3

When I was using Xubuntu 14.04, some how I had a GTK theme that, when the ‘Arrow Button Position’ was set Inside Button, it was completely hidden but now, with XFCE 4.14 and Xubuntu 19.10, a small part of the arrow keeps visible and with <show label instead of icon>, gets really ugly.
As I’m working on a theme, I would like to know a css code so that the arrow gets completely hidden when set to Inside Button (‘arrow-position 5’ in xfconf).
xfce docs says that special widget names in the panel-launcher plugin are ‘launcher-button’ and ‘launcher-arrow’.

So, how to hide the arrow with something like this?

.xfce4-panel.panel button.launcher-arrow {width: 0px; height: 0px; }

Thanks.

Last edited by GabrielCoutinho (2020-02-24 03:31:13)

Offline

#2 2020-02-20 23:20:46

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

Re: [SOLVED] panel launcher – how to hide arrow for multi-launchers gtk3

The arrow is now painted on (as opposed to being a css element). However, you are able to change the colour of the arrow by changing the widget's foreground color. Assuming that the background color of the button is "#F8F8F7" (as is the case in Adwaita). you can use the following snippet:

#arrow-launcher { color: #F8F8F7; }

...to hide the arrow by painting it the same colour as the background.


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-02-21 06:07:51

GabrielCoutinho
Member
From: Portugal
Registered: 2019-12-15
Posts: 18

Re: [SOLVED] panel launcher – how to hide arrow for multi-launchers gtk3

At least with Xubuntu and Xfce 4.14, the arrow is over the icon so, making it the same color as the background it doesn’t solve the problem. However, this  does the trick

#launcher-arrow { color: transparent; }

...but opens another issue: it also affects the label color and with ‘show label instead of icon’ the label becomes also transparent or of any other color assigned in the snippet.
Thanks.

Last edited by GabrielCoutinho (2020-02-21 06:08:42)

Offline

#4 2020-02-21 12:01:01

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

Re: [SOLVED] panel launcher – how to hide arrow for multi-launchers gtk3

Transparent works better that trying to colour match - it didn't occur to me to use transparent.

You can also re-color the label after you make the arrow transparent:

#launcher-arrow { color: transparent; }
#launcher-arrow label { color: black; }

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-02-23 08:48:35

GabrielCoutinho
Member
From: Portugal
Registered: 2019-12-15
Posts: 18

Re: [SOLVED] panel launcher – how to hide arrow for multi-launchers gtk3

Thanks, that worked just fine. [SOLVED]
By the away, I was also wondering how to make the launchers icons in the launcher’s button menu bigger and I’ve tried your suggestions in this thread
https://forum.xfce.org/viewtopic.php?id=12534
without success, but I think gtk-icon-sizes is deprecated isn’t it? Is there any alternative?
Also, how to mark this as Solved?

Last edited by GabrielCoutinho (2020-02-23 08:50:55)

Offline

#6 2020-02-23 12:05:55

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

Re: [SOLVED] panel launcher – how to hide arrow for multi-launchers gtk3

GabrielCoutinho wrote:

By the away, I was also wondering how to make the launchers icons in the launcher’s button menu bigger and I’ve tried your suggestions in this thread
https://forum.xfce.org/viewtopic.php?id=12534
without success, but I think gtk-icon-sizes is deprecated isn’t it? Is there any alternative?

This one has gotten a little odd ever since the icon sizing option was added to the panel. Have a read through this thread for a discussion and some options.


Also, how to mark this as Solved?

Edit your first post in this thread and pre-pend "[SOLVED]" to the title.


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 2021-12-20 22:36:20

Mellowbob
Member
Registered: 2011-10-16
Posts: 286

Re: [SOLVED] panel launcher – how to hide arrow for multi-launchers gtk3

ToZ wrote:

Transparent works better that trying to colour match - it didn't occur to me to use transparent.

You can also re-color the label after you make the arrow transparent:

#launcher-arrow { color: transparent; }
#launcher-arrow label { color: black; }

I just applied this to my xfce4-panel  version 4.16.3 by adding to the file .config/gtk-3.0/gtk.css and it works perfectly. Thanks!

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: 547.2 KiB (Peak: 548.05 KiB) ]