@@ -1,4 +1,3 @@
3 * Copyright (C) 2016 Canonical, Ltd.
2 * Copyright (C) 2016 Canonical, Ltd.
@@ -21,312 +20,316 @@ import Ubuntu.Components 1.3
22Rectangle {
21Rectangle {
24− width: topLayout.childrenRect.width
23+ width: topLayout.childrenRect.width + topLayout.anchors.leftMargin + topLayout.anchors.rightMargin
25− height: topLayout.childrenRect.height
24+ height: topLayout.childrenRect.height + topLayout.anchors.topMargin + topLayout.anchors.bottomMargin
26 color: theme.palette.normal.background
25 color: theme.palette.normal.background
27 radius: units.gu(.5)
26 radius: units.gu(.5)
29 readonly property int maxTextSize: (root.parent.width / 4) - padding
28 readonly property int maxTextSize: (root.parent.width / 4) - padding
30 readonly property int padding: units.gu(4)
29 readonly property int padding: units.gu(4)
32− GridLayout {
31+ Item {
35− columnSpacing: padding
39− text: i18n.tr("Keyboard Shortcuts")
41− font.weight: Font.Light
47− columnSpacing: units.gu(4)
48− Layout.alignment: Qt.AlignTop
53− text: i18n.tr("Unity 8")
54− font.weight: Font.Light
55− color: theme.palette.normal.baseText
60− text: i18n.tr("PrtScr")
62− font.weight: Font.Medium
65− text: i18n.tr("Takes a screenshot.")
67− font.weight: Font.Light
69− Layout.maximumWidth: maxTextSize
73− text: i18n.tr("Alt + PrtScr")
75− font.weight: Font.Medium
78− text: i18n.tr("Takes a screenshot of a window.")
80− font.weight: Font.Light
82− Layout.maximumWidth: maxTextSize
86− text: i18n.tr("Super + Space")
88− font.weight: Font.Medium
91− text: i18n.tr("Switches to next keyboard layout.")
93− font.weight: Font.Light
95− Layout.maximumWidth: maxTextSize
99− text: i18n.tr("Super + Shift + Space")
101− font.weight: Font.Medium
104− text: i18n.tr("Switches to previous keyboard layout.")
106− font.weight: Font.Light
108− Layout.maximumWidth: maxTextSize
113− Item { Layout.columnSpan: 2; height: units.gu(2) }
115− Layout.columnSpan: 2
116− text: i18n.tr("Launcher")
117− font.weight: Font.Light
118− color: theme.palette.normal.baseText
123− text: i18n.tr("Super (Hold)")
125− font.weight: Font.Medium
128− text: i18n.tr("Opens the launcher, displays shortcuts.")
130− font.weight: Font.Light
132− Layout.maximumWidth: maxTextSize
136− text: i18n.tr("Alt + F1")
138− font.weight: Font.Medium
141− text: i18n.tr("Opens launcher keyboard navigation mode.")
143− font.weight: Font.Light
145− Layout.maximumWidth: maxTextSize
149− text: i18n.tr("Super + Tab")
151− font.weight: Font.Medium
154− text: i18n.tr("Switches applications via the launcher.")
156− font.weight: Font.Light
158− Layout.maximumWidth: maxTextSize
162− text: i18n.tr("Super + 0 to 9")
164− font.weight: Font.Medium
167− text: i18n.tr("Same as clicking on a launcher icon.")
169− font.weight: Font.Light
171− Layout.maximumWidth: maxTextSize
176− Item { Layout.columnSpan: 2; height: units.gu(2) }
178− Layout.columnSpan: 2
179− text: i18n.tr("Scopes")
180− font.weight: Font.Light
181− color: theme.palette.normal.baseText
186− text: i18n.tr("Super (Tap)")
188− font.weight: Font.Medium
191− text: i18n.tr("Opens the Scopes home.")
193− font.weight: Font.Light
195− Layout.maximumWidth: maxTextSize
199 GridLayout {
32 GridLayout {
35+ anchors.margins: padding
200 columns: 2
36 columns: 2
201 columnSpacing: padding
37 columnSpacing: padding
202− Layout.alignment: Qt.AlignTop
204− // Switching section
206 Layout.columnSpan: 2
40 Layout.columnSpan: 2
207− text: i18n.tr("Switching")
41+ text: i18n.tr("Keyboard Shortcuts")
208− font.weight: Font.Light
209− color: theme.palette.normal.baseText
214− text: i18n.tr("Alt + Tab")
215− fontSize: "small"
42+ fontSize: "large"
216− font.weight: Font.Medium
219− text: i18n.tr("Switches between applications.")
221 font.weight: Font.Light
43 font.weight: Font.Light
49+ columnSpacing: units.gu(4)
50+ Layout.alignment: Qt.AlignTop
55+ text: i18n.tr("Unity 8")
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
222− wrapMode: Text.Wrap
70+ wrapMode: Text.Wrap
71+ Layout.maximumWidth: maxTextSize
75+ text: i18n.tr("Alt + PrtScr")
77+ font.weight: Font.Medium
80+ text: i18n.tr("Takes a screenshot of a window.")
82+ font.weight: Font.Light
223− Layout.maximumWidth: maxTextSize
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
115+ Item { Layout.columnSpan: 2; height: units.gu(2) }
117+ Layout.columnSpan: 2
118+ text: i18n.tr("Launcher")
119+ font.weight: Font.Light
120+ color: theme.palette.normal.baseText
125+ text: i18n.tr("Super (Hold)")
127+ font.weight: Font.Medium
130+ text: i18n.tr("Opens the launcher, displays shortcuts.")
132+ font.weight: Font.Light
134+ Layout.maximumWidth: maxTextSize
138+ text: i18n.tr("Alt + F1")
140+ font.weight: Font.Medium
143+ text: i18n.tr("Opens launcher keyboard navigation mode.")
145+ font.weight: Font.Light
147+ Layout.maximumWidth: maxTextSize
151+ text: i18n.tr("Super + Tab")
153+ font.weight: Font.Medium
156+ text: i18n.tr("Switches applications via the launcher.")
158+ font.weight: Font.Light
160+ Layout.maximumWidth: maxTextSize
164+ text: i18n.tr("Super + 0 to 9")
166+ font.weight: Font.Medium
169+ text: i18n.tr("Same as clicking on a launcher icon.")
171+ font.weight: Font.Light
173+ Layout.maximumWidth: maxTextSize
178+ Item { Layout.columnSpan: 2; height: units.gu(2) }
180+ Layout.columnSpan: 2
181+ text: i18n.tr("Scopes")
182+ font.weight: Font.Light
183+ color: theme.palette.normal.baseText
188+ text: i18n.tr("Super (Tap)")
190+ font.weight: Font.Medium
193+ text: i18n.tr("Opens the Scopes home.")
195+ font.weight: Font.Light
197+ Layout.maximumWidth: maxTextSize
203+ columnSpacing: padding
204+ Layout.alignment: Qt.AlignTop
206+ // Switching section
208+ Layout.columnSpan: 2
209+ text: i18n.tr("Switching")
210+ font.weight: Font.Light
211+ color: theme.palette.normal.baseText
216+ text: i18n.tr("Alt + Tab")
218+ font.weight: Font.Medium
221+ text: i18n.tr("Switches between applications.")
223+ font.weight: Font.Light
225+ Layout.maximumWidth: maxTextSize
227− text: i18n.tr("Super + W")
229+ text: i18n.tr("Super + W")
228− fontSize: "small"
230+ fontSize: "small"
229− font.weight: Font.Medium
231+ font.weight: Font.Medium
232− text: i18n.tr("Opens the desktop spread.")
234+ text: i18n.tr("Opens the desktop spread.")
233− fontSize: "small"
235+ fontSize: "small"
234− font.weight: Font.Light
236+ font.weight: Font.Light
235− wrapMode: Text.Wrap
237+ wrapMode: Text.Wrap
236− Layout.maximumWidth: maxTextSize
238+ Layout.maximumWidth: maxTextSize
240− text: i18n.tr("Cursor Left or Right")
242+ text: i18n.tr("Cursor Left or Right")
241− fontSize: "small"
243+ fontSize: "small"
242− font.weight: Font.Medium
244+ font.weight: Font.Medium
245− text: i18n.tr("Moves the focus.")
247+ text: i18n.tr("Moves the focus.")
246− fontSize: "small"
248+ fontSize: "small"
247− font.weight: Font.Light
249+ font.weight: Font.Light
248− wrapMode: Text.Wrap
250+ wrapMode: Text.Wrap
249− Layout.maximumWidth: maxTextSize
251+ Layout.maximumWidth: maxTextSize
253− // Windows section
255+ // Windows section
254− Item { Layout.columnSpan: 2; height: units.gu(2) }
256+ Item { Layout.columnSpan: 2; height: units.gu(2) }
256− Layout.columnSpan: 2
258+ Layout.columnSpan: 2
257− text: i18n.tr("Windows")
259+ text: i18n.tr("Windows")
258− font.weight: Font.Light
260+ font.weight: Font.Light
259− color: theme.palette.normal.baseText
261+ color: theme.palette.normal.baseText
260− lineHeight: 1.3
262+ lineHeight: 1.3
264− text: i18n.tr("Ctrl + Super + D")
266+ text: i18n.tr("Ctrl + Super + D")
265− fontSize: "small"
267+ fontSize: "small"
266− font.weight: Font.Medium
268+ font.weight: Font.Medium
269− text: i18n.tr("Minimizes all windows.")
271+ text: i18n.tr("Minimizes all windows.")
270− fontSize: "small"
272+ fontSize: "small"
271− font.weight: Font.Light
273+ font.weight: Font.Light
272− wrapMode: Text.Wrap
274+ wrapMode: Text.Wrap
273− Layout.maximumWidth: maxTextSize
275+ Layout.maximumWidth: maxTextSize
277− text: i18n.tr("Ctrl + Super + Up")
279+ text: i18n.tr("Ctrl + Super + Up")
278− fontSize: "small"
280+ fontSize: "small"
279− font.weight: Font.Medium
281+ font.weight: Font.Medium
282− text: i18n.tr("Maximizes the current window.")
284+ text: i18n.tr("Maximizes the current window.")
283− fontSize: "small"
285+ fontSize: "small"
284− font.weight: Font.Light
286+ font.weight: Font.Light
285− wrapMode: Text.Wrap
287+ wrapMode: Text.Wrap
286− Layout.maximumWidth: maxTextSize
288+ Layout.maximumWidth: maxTextSize
290− text: i18n.tr("Ctrl + Super + Down")
292+ text: i18n.tr("Ctrl + Super + Down")
291− fontSize: "small"
293+ fontSize: "small"
292− font.weight: Font.Medium
294+ font.weight: Font.Medium
295− text: i18n.tr("Minimizes or restores the current window.")
297+ text: i18n.tr("Minimizes or restores the current window.")
296− fontSize: "small"
298+ fontSize: "small"
297− font.weight: Font.Light
299+ font.weight: Font.Light
298− wrapMode: Text.Wrap
300+ wrapMode: Text.Wrap
299− Layout.maximumWidth: maxTextSize
301+ Layout.maximumWidth: maxTextSize
303− text: i18n.tr("Ctrl + Super + Left or Right")
305+ text: i18n.tr("Ctrl + Super + Left or Right")
304− fontSize: "small"
306+ fontSize: "small"
305− font.weight: Font.Medium
307+ font.weight: Font.Medium
308− text: i18n.tr("Semi-maximizes the current window.")
310+ text: i18n.tr("Semi-maximizes the current window.")
309− fontSize: "small"
311+ fontSize: "small"
310− font.weight: Font.Light
312+ font.weight: Font.Light
311− wrapMode: Text.Wrap
313+ wrapMode: Text.Wrap
312− Layout.maximumWidth: maxTextSize
314+ Layout.maximumWidth: maxTextSize
316− text: i18n.tr("Alt + F4")
318+ text: i18n.tr("Alt + F4")
317− fontSize: "small"
319+ fontSize: "small"
318− font.weight: Font.Medium
320+ font.weight: Font.Medium
321− text: i18n.tr("Closes the current window.")
323+ text: i18n.tr("Closes the current window.")
322− fontSize: "small"
324+ fontSize: "small"
323− font.weight: Font.Light
325+ font.weight: Font.Light
324− wrapMode: Text.Wrap
326+ wrapMode: Text.Wrap
325− Layout.maximumWidth: maxTextSize
327+ Layout.maximumWidth: maxTextSize
331+ Item { Layout.fillHeight: true; Layout.columnSpan: 2 } // spacer
329− Item { Layout.fillHeight: true; Layout.columnSpan: 2 } // spacer