From 646645cc1d481fb45fdd984a2d9557b1214c6a8f Mon Sep 17 00:00:00 2001 From: Joel Collins Date: Sun, 5 Jul 2020 16:55:10 +0100 Subject: [PATCH 01/12] Improved tab contrast --- .../api/static/src/assets/less/theme.less | 18 ++++++++++++------ .../components/genericComponents/tabIcon.vue | 4 +++- .../viewComponents/settingsDisplay.vue | 10 +++++++++- 3 files changed, 24 insertions(+), 8 deletions(-) diff --git a/openflexure_microscope/api/static/src/assets/less/theme.less b/openflexure_microscope/api/static/src/assets/less/theme.less index 17d014a2..a85a599c 100644 --- a/openflexure_microscope/api/static/src/assets/less/theme.less +++ b/openflexure_microscope/api/static/src/assets/less/theme.less @@ -59,6 +59,12 @@ text-rendering: optimizeLegibility; } +// +// Decorations +// +@small-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24); +@big-shadow: 0 14px 25px rgba(0, 0, 0, 0.16); + // // Container // @@ -148,6 +154,7 @@ // Paper // @paper-border-radius: 4px; +@button-border-radius: 3px; /* ======================================================================== @@ -187,9 +194,8 @@ .uk-card { border-radius: @paper-border-radius; - border: 1px solid rgba(180, 180, 180, 0.25); - box-shadow: none; - -webkit-box-shabox-shadow: none; + //border: 1px solid rgba(180, 180, 180, 0.25); + box-shadow: @small-shadow; } .uk-card-media-top img { @@ -228,7 +234,7 @@ */ .uk-modal-dialog { border-radius: @paper-border-radius; - box-shadow: 0 14px 25px rgba(0, 0, 0, 0.16); + box-shadow: @big-shadow; transition: 0.3s ease !important; } @@ -245,7 +251,7 @@ */ .uk-notification-message { border-radius: @paper-border-radius; - box-shadow: 0 14px 25px rgba(0, 0, 0, 0.16); + box-shadow: @big-shadow; } .uk-notification-message-danger { @@ -287,7 +293,7 @@ a:hover { * Buttons */ .uk-button { - border-radius: 2px; + border-radius: @button-border-radius; padding: 0 8px; } diff --git a/openflexure_microscope/api/static/src/components/genericComponents/tabIcon.vue b/openflexure_microscope/api/static/src/components/genericComponents/tabIcon.vue index 15dfd38f..da770a4d 100644 --- a/openflexure_microscope/api/static/src/components/genericComponents/tabIcon.vue +++ b/openflexure_microscope/api/static/src/components/genericComponents/tabIcon.vue @@ -93,7 +93,9 @@ export default { @import "../../assets/less/theme.less"; .tabicon-active { - color: @global-primary-background !important; + color: #fff !important; + background-color: @global-primary-background !important; + box-shadow: @small-shadow; } .hook-inverse() { diff --git a/openflexure_microscope/api/static/src/components/viewComponents/settingsDisplay.vue b/openflexure_microscope/api/static/src/components/viewComponents/settingsDisplay.vue index 303c5cf2..c0242cc5 100644 --- a/openflexure_microscope/api/static/src/components/viewComponents/settingsDisplay.vue +++ b/openflexure_microscope/api/static/src/components/viewComponents/settingsDisplay.vue @@ -153,7 +153,10 @@ export default { }; - From 3814a71a0add4e83ceaafcb272d46be1544fef86 Mon Sep 17 00:00:00 2001 From: Joel Collins Date: Sun, 5 Jul 2020 18:19:44 +0100 Subject: [PATCH 02/12] Simplified keyboard shortcuts --- .../api/static/package-lock.json | 5 + .../api/static/package.json | 3 +- openflexure_microscope/api/static/src/App.vue | 185 ++++++++---------- 3 files changed, 94 insertions(+), 99 deletions(-) diff --git a/openflexure_microscope/api/static/package-lock.json b/openflexure_microscope/api/static/package-lock.json index 8a0083a6..88511dc4 100644 --- a/openflexure_microscope/api/static/package-lock.json +++ b/openflexure_microscope/api/static/package-lock.json @@ -9210,6 +9210,11 @@ "minimist": "^1.2.5" } }, + "mousetrap": { + "version": "1.6.5", + "resolved": "https://registry.npmjs.org/mousetrap/-/mousetrap-1.6.5.tgz", + "integrity": "sha512-QNo4kEepaIBwiT8CDhP98umTetp+JNfQYBWvC1pc6/OAibuXtRcxZ58Qz8skvEHYvURne/7R8T5VoOI7rDsEUA==" + }, "move-concurrently": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/move-concurrently/-/move-concurrently-1.0.1.tgz", diff --git a/openflexure_microscope/api/static/package.json b/openflexure_microscope/api/static/package.json index bcdca6a0..055d4b50 100644 --- a/openflexure_microscope/api/static/package.json +++ b/openflexure_microscope/api/static/package.json @@ -13,7 +13,8 @@ "serve": "vue-cli-service serve --mode development" }, "dependencies": { - "material-design-icons": "^3.0.1" + "material-design-icons": "^3.0.1", + "mousetrap": "^1.6.5" }, "devDependencies": { "@vue/cli-plugin-babel": "^3.12.1", diff --git a/openflexure_microscope/api/static/src/App.vue b/openflexure_microscope/api/static/src/App.vue index 0fc0f38c..a391b778 100644 --- a/openflexure_microscope/api/static/src/App.vue +++ b/openflexure_microscope/api/static/src/App.vue @@ -1,9 +1,5 @@