Differential D28710 Diff 80033 desktoppackage/contents/configuration/panelconfiguration/MoreSettingsMenu.qml
Changeset View
Changeset View
Standalone View
Standalone View
desktoppackage/contents/configuration/panelconfiguration/MoreSettingsMenu.qml
Show All 32 Lines | 32 | mainItem: ColumnLayout { | |||
---|---|---|---|---|---|
33 | id: menuColumn | 33 | id: menuColumn | ||
34 | Layout.minimumWidth: menuColumn.implicitWidth | 34 | Layout.minimumWidth: menuColumn.implicitWidth | ||
35 | Layout.minimumHeight: menuColumn.implicitHeight | 35 | Layout.minimumHeight: menuColumn.implicitHeight | ||
36 | spacing: units.smallSpacing | 36 | spacing: units.smallSpacing | ||
37 | 37 | | |||
38 | LayoutMirroring.enabled: Qt.application.layoutDirection === Qt.RightToLeft | 38 | LayoutMirroring.enabled: Qt.application.layoutDirection === Qt.RightToLeft | ||
39 | LayoutMirroring.childrenInherit: true | 39 | LayoutMirroring.childrenInherit: true | ||
40 | 40 | | |||
41 | PlasmaComponents.ToolButton { | ||||
42 | Layout.fillWidth: true | ||||
43 | // we want destructive actions to be far from the initial cursor | ||||
44 | // position, so show this on the top unless it's on a top panel | ||||
45 | visible: location !== PlasmaCore.Types.TopEdge | ||||
46 | text: i18nd("plasma_shell_org.kde.plasma.desktop", "Remove Panel") | ||||
47 | iconSource: "delete" | ||||
48 | onClicked: plasmoid.action("remove").trigger(); | ||||
49 | } | ||||
50 | | ||||
41 | PlasmaExtras.Heading { | 51 | PlasmaExtras.Heading { | ||
42 | level: 3 | 52 | level: 3 | ||
43 | text: i18nd("plasma_shell_org.kde.plasma.desktop", "Panel Alignment") | 53 | text: i18nd("plasma_shell_org.kde.plasma.desktop", "Panel Alignment") | ||
44 | } | 54 | } | ||
45 | PlasmaComponents.ButtonColumn { | 55 | PlasmaComponents.ButtonColumn { | ||
46 | spacing: 0 | 56 | spacing: 0 | ||
47 | Layout.fillWidth: true | 57 | Layout.fillWidth: true | ||
48 | PlasmaComponents.ToolButton { | 58 | PlasmaComponents.ToolButton { | ||
▲ Show 20 Lines • Show All 73 Lines • ▼ Show 20 Line(s) | 97 | PlasmaComponents.ButtonColumn { | |||
122 | } | 132 | } | ||
123 | } | 133 | } | ||
124 | PlasmaComponents.ToolButton { | 134 | PlasmaComponents.ToolButton { | ||
125 | Layout.fillWidth: true | 135 | Layout.fillWidth: true | ||
126 | text: i18nd("plasma_shell_org.kde.plasma.desktop", "Maximize Panel") | 136 | text: i18nd("plasma_shell_org.kde.plasma.desktop", "Maximize Panel") | ||
127 | iconSource: panel.formFactor === PlasmaCore.Types.Vertical ? "zoom-fit-height" : "zoom-fit-width" | 137 | iconSource: panel.formFactor === PlasmaCore.Types.Vertical ? "zoom-fit-height" : "zoom-fit-width" | ||
128 | onClicked: panel.maximize(); | 138 | onClicked: panel.maximize(); | ||
129 | } | 139 | } | ||
140 | PlasmaComponents.ToolButton { | ||||
141 | Layout.fillWidth: true | ||||
142 | // we want destructive actions to be far from the initial cursor | ||||
143 | // position, so show this on the bottom for top panels | ||||
144 | visible: location === PlasmaCore.Types.TopEdge | ||||
145 | text: i18nd("plasma_shell_org.kde.plasma.desktop", "Remove Panel") | ||||
146 | iconSource: "delete" | ||||
147 | onClicked: plasmoid.action("remove").trigger(); | ||||
148 | } | ||||
130 | } | 149 | } | ||
131 | 150 | | |||
132 | function hide() { | 151 | function hide() { | ||
133 | visible = false; | 152 | visible = false; | ||
134 | } | 153 | } | ||
135 | 154 | | |||
136 | Component.onCompleted: { | 155 | Component.onCompleted: { | ||
137 | dialogRoot.closeContextMenu.connect(hide); | 156 | dialogRoot.closeContextMenu.connect(hide); | ||
138 | } | 157 | } | ||
139 | } | 158 | } |