You are not logged in.
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
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
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
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
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
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
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
[ Generated in 0.009 seconds, 7 queries executed - Memory usage: 547.2 KiB (Peak: 548.05 KiB) ]