2 * Copyright (C) 2016 Canonical Ltd.
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; version 3.
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18import QtQuick.Layouts 1.1
19import Lomiri.Components 1.3
23 width: topLayout.childrenRect.width + topLayout.anchors.leftMargin + topLayout.anchors.rightMargin
24 height: topLayout.childrenRect.height + topLayout.anchors.topMargin + topLayout.anchors.bottomMargin
25 color: theme.palette.normal.background
28 readonly property int maxTextSize: (root.parent.width / 4) - padding
29 readonly property int padding: units.gu(4)
31 Item { // dummy container to break binding loops *and* keep the margins in topLayout working
35 anchors.margins: padding
37 columnSpacing: padding
41 text: i18n.tr("Keyboard Shortcuts")
43 font.weight: Font.Light
49 columnSpacing: units.gu(4)
50 Layout.alignment: Qt.AlignTop
55 text: i18n.tr("Lomiri")
56 font.weight: Font.Light
57 color: theme.palette.normal.baseText
62 text: i18n.tr("PrtScr")
64 font.weight: Font.Medium
67 text: i18n.tr("Takes a screenshot.")
69 font.weight: Font.Light
71 Layout.maximumWidth: maxTextSize
75 text: i18n.tr("Alt + PrtScr")
77 font.weight: Font.Medium
80 text: i18n.tr("Takes a screenshot of the current window.")
82 font.weight: Font.Light
84 Layout.maximumWidth: maxTextSize
88 text: i18n.tr("Super + Space")
90 font.weight: Font.Medium
93 text: i18n.tr("Switches to next keyboard layout.")
95 font.weight: Font.Light
97 Layout.maximumWidth: maxTextSize
101 text: i18n.tr("Super + Shift + Space")
103 font.weight: Font.Medium
106 text: i18n.tr("Switches to previous keyboard layout.")
108 font.weight: Font.Light
110 Layout.maximumWidth: maxTextSize
114 text: i18n.tr("Ctrl + Alt + T")
116 font.weight: Font.Medium
119 text: i18n.tr("Starts the Terminal application.")
121 font.weight: Font.Light
123 Layout.maximumWidth: maxTextSize
128 Item { Layout.columnSpan: 2; height: units.gu(2) }
131 text: i18n.tr("Launcher")
132 font.weight: Font.Light
133 color: theme.palette.normal.baseText
138 text: i18n.tr("Super (Hold)")
140 font.weight: Font.Medium
143 text: i18n.tr("Opens the launcher, displays shortcuts.")
145 font.weight: Font.Light
147 Layout.maximumWidth: maxTextSize
151 text: i18n.tr("Alt + F1")
153 font.weight: Font.Medium
156 text: i18n.tr("Opens launcher keyboard navigation mode.")
158 font.weight: Font.Light
160 Layout.maximumWidth: maxTextSize
164 text: i18n.tr("Super + Tab")
166 font.weight: Font.Medium
169 text: i18n.tr("Switches applications via the launcher.")
171 font.weight: Font.Light
173 Layout.maximumWidth: maxTextSize
177 text: i18n.tr("Super + 1 to 0")
179 font.weight: Font.Medium
182 text: i18n.tr("Same as clicking on a launcher icon.")
184 font.weight: Font.Light
186 Layout.maximumWidth: maxTextSize
190 text: i18n.tr("Super + A")
192 font.weight: Font.Medium
195 text: i18n.tr("Opens the Application Drawer.")
197 font.weight: Font.Light
199 Layout.maximumWidth: maxTextSize
205 columnSpacing: padding
206 Layout.alignment: Qt.AlignTop
211 text: i18n.tr("Switching")
212 font.weight: Font.Light
213 color: theme.palette.normal.baseText
218 text: i18n.tr("Alt + Tab")
220 font.weight: Font.Medium
223 text: i18n.tr("Switches between applications.")
225 font.weight: Font.Light
227 Layout.maximumWidth: maxTextSize
231 text: i18n.tr("Super + W")
233 font.weight: Font.Medium
236 text: i18n.tr("Opens the desktop spread.")
238 font.weight: Font.Light
240 Layout.maximumWidth: maxTextSize
244 text: i18n.tr("Cursor Left or Right")
246 font.weight: Font.Medium
249 text: i18n.tr("Moves the focus.")
251 font.weight: Font.Light
253 Layout.maximumWidth: maxTextSize
258 Item { Layout.columnSpan: 2; height: units.gu(2) }
261 text: i18n.tr("Windows")
262 font.weight: Font.Light
263 color: theme.palette.normal.baseText
268 text: i18n.tr("Ctrl + Super + D")
270 font.weight: Font.Medium
273 text: i18n.tr("Minimizes all windows.")
275 font.weight: Font.Light
277 Layout.maximumWidth: maxTextSize
281 text: i18n.tr("Ctrl + Super + Up")
283 font.weight: Font.Medium
286 text: i18n.tr("Maximizes the current window.")
288 font.weight: Font.Light
290 Layout.maximumWidth: maxTextSize
294 text: i18n.tr("Ctrl + Super + Down")
296 font.weight: Font.Medium
299 text: i18n.tr("Minimizes or restores the current window.")
301 font.weight: Font.Light
303 Layout.maximumWidth: maxTextSize
307 text: i18n.tr("Ctrl + Super + Left or Right")
309 font.weight: Font.Medium
312 text: i18n.tr("Semi-maximizes the current window.")
314 font.weight: Font.Light
316 Layout.maximumWidth: maxTextSize
320 text: i18n.tr("Alt + F4")
322 font.weight: Font.Medium
325 text: i18n.tr("Closes the current window.")
327 font.weight: Font.Light
329 Layout.maximumWidth: maxTextSize
333 Item { Layout.fillHeight: true; Layout.columnSpan: 2 } // spacer