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
203 Item { Layout.columnSpan: 2; height: units.gu(2) }
206 text: i18n.tr("Switching")
207 font.weight: Font.Light
208 color: theme.palette.normal.baseText
213 text: i18n.tr("Alt + Tab")
215 font.weight: Font.Medium
218 text: i18n.tr("Switches between applications.")
220 font.weight: Font.Light
222 Layout.maximumWidth: maxTextSize
226 text: i18n.tr("Super + W")
228 font.weight: Font.Medium
231 text: i18n.tr("Opens the desktop spread.")
233 font.weight: Font.Light
235 Layout.maximumWidth: maxTextSize
239 text: i18n.tr("Cursor Left or Right")
241 font.weight: Font.Medium
244 text: i18n.tr("Moves the focus.")
246 font.weight: Font.Light
248 Layout.maximumWidth: maxTextSize
254 columnSpacing: padding
255 Layout.alignment: Qt.AlignTop
260 text: i18n.tr("Windows")
261 font.weight: Font.Light
262 color: theme.palette.normal.baseText
267 text: i18n.tr("Ctrl + Super + D")
269 font.weight: Font.Medium
272 text: i18n.tr("Minimizes all windows.")
274 font.weight: Font.Light
276 Layout.maximumWidth: maxTextSize
280 text: i18n.tr("Ctrl + Super + Up")
282 font.weight: Font.Medium
285 text: i18n.tr("Maximizes the current window.")
287 font.weight: Font.Light
289 Layout.maximumWidth: maxTextSize
293 text: i18n.tr("Ctrl + Super + Down")
295 font.weight: Font.Medium
298 text: i18n.tr("Minimizes or restores the current window.")
300 font.weight: Font.Light
302 Layout.maximumWidth: maxTextSize
306 text: i18n.tr("Ctrl + Super + Left or Right")
308 font.weight: Font.Medium
311 text: i18n.tr("Semi-maximizes the current window.")
313 font.weight: Font.Light
315 Layout.maximumWidth: maxTextSize
319 text: i18n.tr("Alt + F4")
321 font.weight: Font.Medium
324 text: i18n.tr("Closes the current window.")
326 font.weight: Font.Light
328 Layout.maximumWidth: maxTextSize
332 Item { Layout.columnSpan: 2; height: units.gu(2) }
335 text: i18n.tr("Screens and Workspaces")
336 font.weight: Font.Light
337 color: theme.palette.normal.baseText
342 text: i18n.tr("Ctrl + Alt + Left or Right")
344 font.weight: Font.Medium
347 text: i18n.tr("Switches between workspaces.")
349 font.weight: Font.Light
351 Layout.maximumWidth: maxTextSize
355 text: i18n.tr("Ctrl + Alt + Up or Down")
357 font.weight: Font.Medium
360 text: i18n.tr("Switches between screens.")
362 font.weight: Font.Light
364 Layout.maximumWidth: maxTextSize
368 text: i18n.tr("Ctrl + Alt + Shift + Left or Right")
370 font.weight: Font.Medium
373 text: i18n.tr("Moves current app between workspaces.")
375 font.weight: Font.Light
377 Layout.maximumWidth: maxTextSize
381 text: i18n.tr("Ctrl + Alt + Shift + Up or Down")
383 font.weight: Font.Medium
386 text: i18n.tr("Moves current app between screens.")
388 font.weight: Font.Light
390 Layout.maximumWidth: maxTextSize
394 Item { Layout.columnSpan: 2; height: units.gu(2) }
397 text: i18n.tr("Stages")
398 font.weight: Font.Light
399 color: theme.palette.normal.baseText
404 text: i18n.tr("Super + S")
406 font.weight: Font.Medium
409 text: i18n.tr("Shows or hides the side stage.")
411 font.weight: Font.Light
413 Layout.maximumWidth: maxTextSize
417 text: i18n.tr("Ctrl + Super + Left or Right")
419 font.weight: Font.Medium
423 text: i18n.tr("Moves app between main stage and side stage.")
425 font.weight: Font.Light
427 Layout.maximumWidth: maxTextSize
431 Item { Layout.fillHeight: true; Layout.columnSpan: 2 } // spacer