summaryrefslogtreecommitdiffstats
path: root/kicker/applets/systemtray/systemtrayapplet.h
diff options
context:
space:
mode:
authorAlexander Golubev <fatzer2@gmail.com>2025-10-13 02:10:36 +0300
committerAlexander Golubev <fatzer2@gmail.com>2025-10-13 03:09:44 +0300
commit2d94ad5f3efc1d21e3823fd5eea1886ce11eaa18 (patch)
tree7c38eceb5bf61f12cb8549934665a1b94c2ec3c9 /kicker/applets/systemtray/systemtrayapplet.h
parent0116807fc0ae8fe936b70871dbdd99b8eedd15a0 (diff)
downloadtdebase-feat/tray-margin.tar.gz
tdebase-feat/tray-margin.zip
kicker: add an option to set external margin for tray iconsfeat/tray-margin
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 'kicker/applets/systemtray/systemtrayapplet.h')
-rw-r--r--kicker/applets/systemtray/systemtrayapplet.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/kicker/applets/systemtray/systemtrayapplet.h b/kicker/applets/systemtray/systemtrayapplet.h
index d06d42b72..581cd10b0 100644
--- a/kicker/applets/systemtray/systemtrayapplet.h
+++ b/kicker/applets/systemtray/systemtrayapplet.h
@@ -120,8 +120,10 @@ private:
int m_iconSize;
bool m_showClockInTray;
TQCheckBox *m_showClockSettingCB;
- uint m_iconMargin;
+ int m_iconMargin;
TQSpinBox *m_iconMarginSB;
+ int m_iconSpacing;
+ TQSpinBox *m_iconSpacingSB;
TQGridLayout* m_layout;
};