Changeset View
Changeset View
Standalone View
Standalone View
applets/systemtray/package/contents/ui/main.qml
Show First 20 Lines • Show All 42 Lines • ▼ Show 20 Line(s) | 30 | MouseArea { | |||
---|---|---|---|---|---|
43 | 43 | | |||
44 | property bool vertical: plasmoid.formFactor === PlasmaCore.Types.Vertical | 44 | property bool vertical: plasmoid.formFactor === PlasmaCore.Types.Vertical | ||
45 | readonly property int itemSize: { | 45 | readonly property int itemSize: { | ||
46 | var baseSize = units.roundToIconSize(Math.min(Math.min(width, height), units.iconSizes[iconSizes[Math.min(iconSizes.length-1, iconSize)]])); | 46 | var baseSize = units.roundToIconSize(Math.min(Math.min(width, height), units.iconSizes[iconSizes[Math.min(iconSizes.length-1, iconSize)]])); | ||
47 | if (Kirigami.Settings.tabletMode) { | 47 | if (Kirigami.Settings.tabletMode) { | ||
48 | // Set the tray items' clickable areas on the panel to be bigger than normal to allow for easier touchability | 48 | // Set the tray items' clickable areas on the panel to be bigger than normal to allow for easier touchability | ||
49 | return baseSize + units.smallSpacing; | 49 | return baseSize + units.smallSpacing; | ||
50 | } else { | 50 | } else { | ||
51 | return baseSize; | 51 | return baseSize + Math.round(units.smallSpacing/2); | ||
52 | } | 52 | } | ||
53 | } | 53 | } | ||
54 | property int hiddenItemSize: units.iconSizes.smallMedium | 54 | property int hiddenItemSize: units.iconSizes.smallMedium | ||
55 | property alias expanded: dialog.visible | 55 | property alias expanded: dialog.visible | ||
56 | property Item activeApplet | 56 | property Item activeApplet | ||
57 | property int status: dialog.visible ? PlasmaCore.Types.RequiresAttentionStatus : PlasmaCore.Types.PassiveStatus | 57 | property int status: dialog.visible ? PlasmaCore.Types.RequiresAttentionStatus : PlasmaCore.Types.PassiveStatus | ||
58 | 58 | | |||
59 | property alias visibleLayout: tasksGrid | 59 | property alias visibleLayout: tasksGrid | ||
▲ Show 20 Lines • Show All 190 Lines • Show Last 20 Lines |