2016-07-16 00:37:45 +00:00
|
|
|
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
|
2016-07-20 09:12:21 +00:00
|
|
|
- property int itemSize: units.roundToIconSize(Math.min(Math.min(width, height), units.iconSizes.medium))
|
|
|
|
+ property int itemSize: units.roundToIconSize(Math.min(Math.min(width, height), units.iconSizes[iconSizes[plasmoid.configuration.iconSize]]))
|
2016-07-16 00:37:45 +00:00
|
|
|
property int hiddenItemSize: units.iconSizes.smallMedium
|
|
|
|
property alias expanded: dialog.visible
|
|
|
|
property Item activeApplet
|