[gnome-shell/wip/carlosg/osk-symbolic-icons: 2/2] keyboard: Specify symbolic icons to use in default keys
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/carlosg/osk-symbolic-icons: 2/2] keyboard: Specify symbolic icons to use in default keys
- Date: Fri, 14 Feb 2020 17:14:23 +0000 (UTC)
commit cd0e6596cbb184988e33662e77325a9c71a765e3
Author: Carlos Garnacho <carlosg gnome org>
Date: Fri Feb 14 18:11:43 2020 +0100
keyboard: Specify symbolic icons to use in default keys
The style classes are not removed yet, might make sense to do that
if they don't bring anything wrt theming.
https://gitlab.gnome.org/GNOME/gnome-shell/issues/2214
js/ui/keyboard.js | 32 ++++++++++++++++----------------
1 file changed, 16 insertions(+), 16 deletions(-)
---
diff --git a/js/ui/keyboard.js b/js/ui/keyboard.js
index ede8aa94bb..aa9a8dc2e5 100644
--- a/js/ui/keyboard.js
+++ b/js/ui/keyboard.js
@@ -24,29 +24,29 @@ const SHOW_KEYBOARD = 'screen-keyboard-enabled';
const KEY_SIZE = 2;
const defaultKeysPre = [
- [[], [], [{ width: 1.5, level: 1, extraClassName: 'shift-key-lowercase' }], [{ label: '?123', width:
1.5, level: 2 }]],
- [[], [], [{ width: 1.5, level: 0, extraClassName: 'shift-key-uppercase' }], [{ label: '?123', width:
1.5, level: 2 }]],
+ [[], [], [{ width: 1.5, level: 1, extraClassName: 'shift-key-lowercase', icon:
'keyboard-shift-filled-symbolic' }], [{ label: '?123', width: 1.5, level: 2 }]],
+ [[], [], [{ width: 1.5, level: 0, extraClassName: 'shift-key-uppercase', icon:
'keyboard-shift-filled-symbolic' }], [{ label: '?123', width: 1.5, level: 2 }]],
[[], [], [{ label: '=/<', width: 1.5, level: 3 }], [{ label: 'ABC', width: 1.5, level: 0 }]],
[[], [], [{ label: '?123', width: 1.5, level: 2 }], [{ label: 'ABC', width: 1.5, level: 0 }]],
];
const defaultKeysPost = [
- [[{ label: '⌫', width: 1.5, keyval: Clutter.KEY_BackSpace }],
- [{ width: 2, keyval: Clutter.KEY_Return, extraClassName: 'enter-key' }],
- [{ width: 3, level: 1, right: true, extraClassName: 'shift-key-lowercase' }],
- [{ label: '☻', action: 'emoji' }, { action: 'languageMenu', extraClassName: 'layout-key' }, { action:
'hide', extraClassName: 'hide-key' }]],
- [[{ label: '⌫', width: 1.5, keyval: Clutter.KEY_BackSpace }],
- [{ width: 2, keyval: Clutter.KEY_Return, extraClassName: 'enter-key' }],
- [{ width: 3, level: 0, right: true, extraClassName: 'shift-key-uppercase' }],
- [{ label: '☻', action: 'emoji' }, { action: 'languageMenu', extraClassName: 'layout-key' }, { action:
'hide', extraClassName: 'hide-key' }]],
- [[{ label: '⌫', width: 1.5, keyval: Clutter.KEY_BackSpace }],
- [{ width: 2, keyval: Clutter.KEY_Return, extraClassName: 'enter-key' }],
+ [[{ width: 1.5, keyval: Clutter.KEY_BackSpace, icon: 'edit-clear-symbolic' }],
+ [{ width: 2, keyval: Clutter.KEY_Return, extraClassName: 'enter-key', icon: 'keyboard-enter-symbolic'
}],
+ [{ width: 3, level: 1, right: true, extraClassName: 'shift-key-lowercase', icon:
'keyboard-shift-filled-symbolic' }],
+ [{ action: 'emoji', icon: 'face-smile-symbolic' }, { action: 'languageMenu', extraClassName:
'layout-key', icon: 'keyboard-layout-filled-symbolic' }, { action: 'hide', extraClassName: 'hide-key', icon:
'go-down-symbolic' }]],
+ [[{ width: 1.5, keyval: Clutter.KEY_BackSpace, icon: 'edit-clear-symbolic' }],
+ [{ width: 2, keyval: Clutter.KEY_Return, extraClassName: 'enter-key', icon: 'keyboard-enter-symbolic'
}],
+ [{ width: 3, level: 0, right: true, extraClassName: 'shift-key-uppercase', icon:
'keyboard-shift-filled-symbolic' }],
+ [{ action: 'emoji', icon: 'face-smile-symbolic' }, { action: 'languageMenu', extraClassName:
'layout-key', icon: 'keyboard-layout-filled-symbolic' }, { action: 'hide', extraClassName: 'hide-key', icon:
'go-down-symbolic' }]],
+ [[{ width: 1.5, keyval: Clutter.KEY_BackSpace, icon: 'edit-clear-symbolic' }],
+ [{ width: 2, keyval: Clutter.KEY_Return, extraClassName: 'enter-key', icon: 'keyboard-enter-symbolic'
}],
[{ label: '=/<', width: 3, level: 3, right: true }],
- [{ label: '☻', action: 'emoji' }, { action: 'languageMenu', extraClassName: 'layout-key' }, { action:
'hide', extraClassName: 'hide-key' }]],
- [[{ label: '⌫', width: 1.5, keyval: Clutter.KEY_BackSpace }],
- [{ width: 2, keyval: Clutter.KEY_Return, extraClassName: 'enter-key' }],
+ [{ action: 'emoji', icon: 'face-smile-symbolic' }, { action: 'languageMenu', extraClassName:
'layout-key' }, { action: 'hide', extraClassName: 'hide-key' }]],
+ [[{ width: 1.5, keyval: Clutter.KEY_BackSpace, icon: 'edit-clear-symbolic' }],
+ [{ width: 2, keyval: Clutter.KEY_Return, extraClassName: 'enter-key', icon: 'keyboard-enter-symbolic'
}],
[{ label: '?123', width: 3, level: 2, right: true }],
- [{ label: '☻', action: 'emoji' }, { action: 'languageMenu', extraClassName: 'layout-key' }, { action:
'hide', extraClassName: 'hide-key' }]],
+ [{ action: 'emoji', icon: 'face-smile-symbolic' }, { action: 'languageMenu', extraClassName:
'layout-key', icon: 'keyboard-layout-filled-symbolic' }, { action: 'hide', extraClassName: 'hide-key', icon:
'go-down-symbolic' }]],
];
var AspectContainer = GObject.registerClass(
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]