Changeset View
Changeset View
Standalone View
Standalone View
applets/showdesktop/package/contents/ui/main.qml
Show First 20 Lines • Show All 50 Lines • ▼ Show 20 Line(s) | 50 | Plasmoid.fullRepresentation: PlasmaCore.ToolTipArea { | |||
---|---|---|---|---|---|
51 | readonly property bool inPanel: (plasmoid.location === PlasmaCore.Types.TopEdge | 51 | readonly property bool inPanel: (plasmoid.location === PlasmaCore.Types.TopEdge | ||
52 | || plasmoid.location === PlasmaCore.Types.RightEdge | 52 | || plasmoid.location === PlasmaCore.Types.RightEdge | ||
53 | || plasmoid.location === PlasmaCore.Types.BottomEdge | 53 | || plasmoid.location === PlasmaCore.Types.BottomEdge | ||
54 | || plasmoid.location === PlasmaCore.Types.LeftEdge) | 54 | || plasmoid.location === PlasmaCore.Types.LeftEdge) | ||
55 | 55 | | |||
56 | Layout.minimumWidth: units.iconSizes.small | 56 | Layout.minimumWidth: units.iconSizes.small | ||
57 | Layout.minimumHeight: Layout.minimumWidth | 57 | Layout.minimumHeight: Layout.minimumWidth | ||
58 | 58 | | |||
59 | Layout.maximumWidth: inPanel ? units.iconSizeHints.panel : -1 | 59 | Layout.maximumWidth: inPanel ? units.iconSizes.smallMedium : -1 | ||
60 | Layout.maximumHeight: inPanel ? units.iconSizeHints.panel : -1 | 60 | Layout.maximumHeight: Layout.maximumWidth | ||
61 | 61 | | |||
62 | icon: plasmoid.icon | 62 | icon: plasmoid.icon | ||
63 | mainText: plasmoid.title | 63 | mainText: plasmoid.title | ||
64 | subText: plasmoid.toolTipSubText | 64 | subText: plasmoid.toolTipSubText | ||
65 | 65 | | |||
66 | MouseArea { | 66 | MouseArea { | ||
67 | anchors.fill: parent | 67 | anchors.fill: parent | ||
68 | onClicked: showdesktop.showingDesktop = !showdesktop.showingDesktop | 68 | onClicked: showdesktop.showingDesktop = !showdesktop.showingDesktop | ||
Show All 23 Lines |