Changeset View
Changeset View
Standalone View
Standalone View
applets/systemtray/package/contents/ui/main.qml
Show All 33 Lines | 28 | MouseArea { | |||
---|---|---|---|---|---|
34 | 34 | | |||
35 | Layout.preferredHeight: Layout.minimumHeight | 35 | Layout.preferredHeight: Layout.minimumHeight | ||
36 | LayoutMirroring.enabled: !vertical && Qt.application.layoutDirection === Qt.RightToLeft | 36 | LayoutMirroring.enabled: !vertical && Qt.application.layoutDirection === Qt.RightToLeft | ||
37 | LayoutMirroring.childrenInherit: true | 37 | LayoutMirroring.childrenInherit: true | ||
38 | 38 | | |||
39 | property var iconSizes: ["small", "smallMedium", "medium", "large", "huge", "enormous"]; | 39 | property var iconSizes: ["small", "smallMedium", "medium", "large", "huge", "enormous"]; | ||
40 | 40 | | |||
41 | property bool vertical: plasmoid.formFactor == PlasmaCore.Types.Vertical | 41 | property bool vertical: plasmoid.formFactor == PlasmaCore.Types.Vertical | ||
42 | property int itemSize: units.roundToIconSize(Math.min(Math.min(width, height), units.iconSizes[iconSizes[plasmoid.configuration.iconSize]])) | 42 | property int itemSize: Math.min(0.8 * width, 0.8 * height, units.iconSizeHints.panel) | ||
anthonyfieroni: I see it has configuration for icon size ? What about to use it? | |||||
The goal of this patch is to make the size of the application icons on the left side of the panel match the size of the tray icons. pgkos: The goal of this patch is to make the size of the application icons on the left side of the… | |||||
43 | property int hiddenItemSize: units.iconSizes.smallMedium | 43 | property int hiddenItemSize: units.iconSizes.smallMedium | ||
44 | property alias expanded: dialog.visible | 44 | property alias expanded: dialog.visible | ||
45 | property Item activeApplet | 45 | property Item activeApplet | ||
46 | property int status: dialog.visible ? PlasmaCore.Types.RequiresAttentionStatus : PlasmaCore.Types.PassiveStatus | 46 | property int status: dialog.visible ? PlasmaCore.Types.RequiresAttentionStatus : PlasmaCore.Types.PassiveStatus | ||
47 | 47 | | |||
48 | property alias visibleLayout: tasksRow | 48 | property alias visibleLayout: tasksRow | ||
49 | property alias hiddenLayout: expandedRepresentation.hiddenLayout | 49 | property alias hiddenLayout: expandedRepresentation.hiddenLayout | ||
50 | 50 | | |||
▲ Show 20 Lines • Show All 318 Lines • Show Last 20 Lines |
I see it has configuration for icon size ? What about to use it?