43 lines
1.6 KiB
Diff
43 lines
1.6 KiB
Diff
|
From: Marco Martin <notmart@gmail.com>
|
||
|
Date: Thu, 14 Jul 2016 11:02:25 +0000
|
||
|
Subject: Configuration option for System Tray's icon size
|
||
|
X-Git-Url: http://quickgit.kde.org/?p=plasma-workspace.git&a=commitdiff&h=7f060403a2d44fc76b2b14fc9ebf43ee272d1c54
|
||
|
---
|
||
|
Configuration option for System Tray's icon size
|
||
|
|
||
|
the option is not user exposed, so can only either be set manually
|
||
|
or by the default configuration script in the look and feel kcm
|
||
|
|
||
|
patch by John Salatas jsalatas@gmail.com
|
||
|
REVIEW:128400
|
||
|
---
|
||
|
|
||
|
|
||
|
--- a/applets/systemtray/package/contents/config/main.xml
|
||
|
+++ b/applets/systemtray/package/contents/config/main.xml
|
||
|
@@ -45,6 +45,9 @@
|
||
|
<entry name="knownItems" type="StringList">
|
||
|
<default></default>
|
||
|
</entry>
|
||
|
+ <entry name="iconSize" type="Int">
|
||
|
+ <default>2</default>
|
||
|
+ </entry>
|
||
|
</group>
|
||
|
|
||
|
</kcfg>
|
||
|
|
||
|
--- a/applets/systemtray/package/contents/ui/main.qml
|
||
|
+++ b/applets/systemtray/package/contents/ui/main.qml
|
||
|
@@ -30,8 +30,10 @@
|
||
|
|
||
|
Layout.minimumHeight: vertical ? tasksRow.implicitHeight+ expander.implicitHeight + units.smallSpacing : units.smallSpacing
|
||
|
|
||
|
+ property var iconSizes: ["small", "smallMedium", "medium", "large", "huge", "enormous"];
|
||
|
+
|
||
|
property bool vertical: plasmoid.formFactor == PlasmaCore.Types.Vertical
|
||
|
- property int itemSize: Math.min(Math.min(width, height), units.iconSizes.medium)
|
||
|
+ property int itemSize: Math.min(Math.min(width, height), units.iconSizes[iconSizes[plasmoid.configuration.iconSize]])
|
||
|
property int hiddenItemSize: units.iconSizes.smallMedium
|
||
|
property alias expanded: dialog.visible
|
||
|
property Item activeApplet
|