Xfce Forum

Sub domains
 

You are not logged in.

#1 2017-02-24 22:53:38

wuwei
Member
From: Italy
Registered: 2017-01-29
Posts: 58

[SOLVED] Keyboard layouts plugin, icon too big!

Hi, is it possible to set smaller icon size for Keyboard layouts plugin?
As we can see from screenshot the layout icon is bigger than other various icons showed in main panel.
Thanks.

screenshot

Last edited by wuwei (2017-02-25 21:27:01)

Offline

#2 2017-02-25 00:43:56

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

Re: [SOLVED] Keyboard layouts plugin, icon too big!

Right-click the icon and select properties. There should be a slider there to set icon size.


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 2017-02-25 04:50:11

wuwei
Member
From: Italy
Registered: 2017-01-29
Posts: 58

Re: [SOLVED] Keyboard layouts plugin, icon too big!

Hi ToZ, as you can see in the attached image no slider for my plugin :-(
Maybe a different version in Linux Mint 18 Sarah?!?

screenshot

This is the plugin icon aspect in another distro that I'm trying:

screenshot

Thanks.

Last edited by wuwei (2017-02-25 04:59:50)

Offline

#4 2017-02-25 05:33:34

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

Re: [SOLVED] Keyboard layouts plugin, icon too big!

Yes. This functionality was added in 2015, but it hasn't yet been officially released.

The only other option is to use a program like inkscape to edit the flag's svg file (probably in /usr/share/xfce4/xkb/flags/us.svg) and resize the image.


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 2017-02-25 21:29:03

wuwei
Member
From: Italy
Registered: 2017-01-29
Posts: 58

Re: [SOLVED] Keyboard layouts plugin, icon too big!

ToZ, many thanks, resolved..I didn't knew the flags path, copied the entire folder from Voyager distro in Mint and..vooilà!! :-)

Offline

#6 2018-04-21 14:34:39

akerka
Member
Registered: 2018-04-21
Posts: 1

Re: [SOLVED] Keyboard layouts plugin, icon too big!

Maybe, it's also possible to add some entry to ~/.config/gtk-3.0/gtk.css like in this topic?

Offline

#7 2018-04-21 16:08:27

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

Re: [SOLVED] Keyboard layouts plugin, icon too big!

Hello and welcome to the forums.

akerka wrote:

Maybe, it's also possible to add some entry to ~/.config/gtk-3.0/gtk.css like in this topic?

Kind of, yes. But first, are you running the gtk3 version of the plugin? This command will let you know:

ldd $(locate libxkb.so) | grep gtk

If it is gtk3, then you need to get the widget name. Open the panel properties, go to the Items tab and hover your mouse over the plugin name. You should see something like "xkb-7".

Then add this snippet to ~/.config/gtk-3.0/gtk.css and replace "xkb-7" with the actual name of your plugin:

#xkb-7>button { padding: 3px; }

...and adjust the padding size to suit,


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.012 seconds, 7 queries executed - Memory usage: 545.23 KiB (Peak: 546.08 KiB) ]