From 44d39796fbe3731874a42f94113824e4179dd7ba Mon Sep 17 00:00:00 2001 From: Nick Coutsos Date: Wed, 20 Oct 2021 19:10:06 -0400 Subject: Improvements to key search/picker component --- application/components/key.vue | 7 +-- application/components/keymap.vue | 2 +- application/components/modal.vue | 4 +- application/components/value-picker.vue | 86 +++++++++++++++++++++++++-------- application/style.css | 1 + 5 files changed, 76 insertions(+), 24 deletions(-) diff --git a/application/components/key.vue b/application/components/key.vue index f958c88..dcc6972 100644 --- a/application/components/key.vue +++ b/application/components/key.vue @@ -24,9 +24,8 @@ :values="normalized.params" :onSelect="handleSelectCode" /> - + - + @@ -51,6 +50,7 @@ import { getKeyStyles } from '../key-units' import KeyValue from './key-value.vue' import KeyParamlist from './key-paramlist.vue' +import Modal from './modal.vue' import ValuePicker from './value-picker.vue' function makeIndex (tree) { @@ -77,6 +77,7 @@ export default { components: { 'key-value': KeyValue, 'key-paramlist': KeyParamlist, + Modal, ValuePicker }, data () { diff --git a/application/components/keymap.vue b/application/components/keymap.vue index a370a79..5d5c878 100644 --- a/application/components/keymap.vue +++ b/application/components/keymap.vue @@ -81,7 +81,7 @@ export default { case 'mod': return filter(this.keycodes, 'isModifier') case 'command': - get(this.sources, ['behaviours', behaviour, 'commands'], []) + return get(this.sources, ['behaviours', behaviour, 'commands'], []) case 'kc': default: return this.keycodes diff --git a/application/components/modal.vue b/application/components/modal.vue index 2eb5bf3..96c106e 100644 --- a/application/components/modal.vue +++ b/application/components/modal.vue @@ -16,9 +16,11 @@ export default { \ No newline at end of file diff --git a/application/style.css b/application/style.css index daca53b..5619cb4 100644 --- a/application/style.css +++ b/application/style.css @@ -1,6 +1,7 @@ :root { --dark-red: #910e0e; --dark-blue: #6d99c6; + --selection: rgb(60, 179, 113); --hover-selection: rgba(60, 179, 113, 0.85); } -- cgit v1.2.3