Changeset View
Changeset View
Standalone View
Standalone View
applets/minimizeall/package/contents/ui/main.qml
Show All 28 Lines | |||||
29 | Item { | 29 | Item { | ||
30 | id: root | 30 | id: root | ||
31 | 31 | | |||
32 | readonly property bool inPanel: (plasmoid.location === PlasmaCore.Types.TopEdge | 32 | readonly property bool inPanel: (plasmoid.location === PlasmaCore.Types.TopEdge | ||
33 | || plasmoid.location === PlasmaCore.Types.RightEdge | 33 | || plasmoid.location === PlasmaCore.Types.RightEdge | ||
34 | || plasmoid.location === PlasmaCore.Types.BottomEdge | 34 | || plasmoid.location === PlasmaCore.Types.BottomEdge | ||
35 | || plasmoid.location === PlasmaCore.Types.LeftEdge) | 35 | || plasmoid.location === PlasmaCore.Types.LeftEdge) | ||
36 | 36 | | |||
37 | Layout.minimumWidth: units.gridUnit | 37 | Layout.minimumWidth: units.iconSizes.small | ||
38 | Layout.minimumHeight: units.gridUnit | 38 | Layout.minimumHeight: Layout.minimumWidth | ||
39 | 39 | | |||
40 | Layout.maximumWidth: inPanel ? units.iconSizeHints.panel : -1 | 40 | Layout.maximumWidth: inPanel ? units.iconSizeHints.panel : -1 | ||
41 | Layout.maximumHeight: inPanel ? units.iconSizeHints.panel : -1 | 41 | Layout.maximumHeight: Layout.maximumWidth | ||
42 | 42 | | |||
43 | Plasmoid.preferredRepresentation: Plasmoid.fullRepresentation | 43 | Plasmoid.preferredRepresentation: Plasmoid.fullRepresentation | ||
44 | 44 | | |||
45 | Plasmoid.onActivated: toggleActive() | 45 | Plasmoid.onActivated: toggleActive() | ||
46 | 46 | | |||
47 | property bool active: false | 47 | property bool active: false | ||
48 | property var minimizedClients: [] //list of persistentmodelindexes from task manager model of clients minimised by us | 48 | property var minimizedClients: [] //list of persistentmodelindexes from task manager model of clients minimised by us | ||
49 | 49 | | |||
▲ Show 20 Lines • Show All 123 Lines • Show Last 20 Lines |