diff options
| author | Alexander Golubev <fatzer2@gmail.com> | 2025-10-13 02:10:36 +0300 |
|---|---|---|
| committer | Fat-Zer <fatzer2@gmail.com> | 2025-10-23 22:15:07 +0000 |
| commit | 8068c6bdb210c0a252ac7804cb056456501b5c90 (patch) | |
| tree | dd5bc352dd4bad9fb65045e3246364308cc5432a /kcontrol/hwmanager/hwdevicetray.cpp | |
| parent | 1ef239328633e480a794a863b16f4f9cbbce5fea (diff) | |
| download | tdebase-8068c6bdb210c0a252ac7804cb056456501b5c90.tar.gz tdebase-8068c6bdb210c0a252ac7804cb056456501b5c90.zip | |
kicker: add an option to set external margin for tray icons
This commit adds an option to set both: margin (space from an icon to
the border) and spacing (space between two neighbouring icons). The
option to tweak spacing was previously introduced in fa284a4598 and was
called "margin" the actual margin was reduced to 0. Unfortunately that
had its own unwanted side-effects listed in #647. Before fa284a4598 the
margin and spacing were fixed to be 1.
This commit restores old defaults for margin & spacing i.e. 1 to better
conform to config of older systems. Effectively this resolved most
issues raised in #647 and eliminates any regressions, though there are
some caveat cases when the behaviour is not ideal e.g. next settings:
panel_width=47
spacing=1
margin=0
result in next layout:
[0px][icon][2px][icon][1px]
when ideal would be:
[1px][icon][1px][icon][1px]
On the other hand in such a case a user should probably just use
margin=spacing=1.
Besides that commit contains some minor refactoring.
Bug: https://mirror.git.trinitydesktop.org/gitea/TDE/tdebase/issues/647
Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
Diffstat (limited to 'kcontrol/hwmanager/hwdevicetray.cpp')
0 files changed, 0 insertions, 0 deletions
