From b08a6b5cecf4a53023053695292146edbd24b960 Mon Sep 17 00:00:00 2001 From: undergroundwires Date: Mon, 11 Oct 2021 19:33:34 +0200 Subject: [PATCH] Use a consistent color system 1. Renames color names in palette. Using names such as "primary" and "secondary" that are in consistent with designs such as material, bootstrap and metro UI palettes. It adds `color-` prefix on color variables in line with Vue Design System. 2. Introduces necessary changes to follow the system color system everywhere without using any other color: - It changes tooltip background from black to darker primary colors. - It overrides unset styles from tree component - It ensures footer has same color as top menu. 3. Removes opacity CSS changes to have better control on choices. To achieve that: - It introduces new "light" variants of main colors - It switches to colors with different variants (e.g. in Dialogs it uses primary color as button as it has variants that can be activated on hover meanwhile on-surface color is single). 4. Styles a tags (anchor elements) globally for consistency --- src/presentation/components/App.vue | 31 ++- .../components/Code/CodeButtons/Code.vue | 6 +- .../Code/CodeButtons/IconButton.vue | 17 +- .../components/Code/TheCodeArea.vue | 3 +- .../Scripts/Menu/MenuOptionListItem.vue | 2 +- .../components/Scripts/Slider/Handle.vue | 19 +- .../Scripts/View/Cards/CardListItem.vue | 27 +-- .../SelectableTree/Node/DocumentationUrls.vue | 4 +- .../ScriptsTree/SelectableTree/Node/Node.vue | 20 +- .../SelectableTree/Node/RevertToggle.vue | 189 +++++++++--------- .../Scripts/View/TheScriptsView.vue | 10 +- src/presentation/components/Shared/Dialog.vue | 6 +- .../components/TheFooter/DownloadUrlList.vue | 10 +- .../TheFooter/DownloadUrlListItem.vue | 6 - .../components/TheFooter/PrivacyPolicy.vue | 7 - .../components/TheFooter/TheFooter.vue | 30 --- src/presentation/components/TheHeader.vue | 3 +- src/presentation/components/TheSearchBar.vue | 32 +-- src/presentation/styles/colors.scss | 33 ++- src/presentation/styles/tooltip.scss | 8 +- src/presentation/styles/tree.scss | 38 +++- 21 files changed, 258 insertions(+), 243 deletions(-) diff --git a/src/presentation/components/App.vue b/src/presentation/components/App.vue index a0cd601a..387788fb 100644 --- a/src/presentation/components/App.vue +++ b/src/presentation/components/App.vue @@ -1,10 +1,10 @@ @@ -45,6 +45,9 @@ export default class Handle extends Vue { \ No newline at end of file diff --git a/src/presentation/components/Scripts/View/ScriptsTree/SelectableTree/Node/RevertToggle.vue b/src/presentation/components/Scripts/View/ScriptsTree/SelectableTree/Node/RevertToggle.vue index 6d9b94cf..9d7ac728 100644 --- a/src/presentation/components/Scripts/View/ScriptsTree/SelectableTree/Node/RevertToggle.vue +++ b/src/presentation/components/Scripts/View/ScriptsTree/SelectableTree/Node/RevertToggle.vue @@ -51,100 +51,109 @@ export default class RevertToggle extends StatefulVue { \ No newline at end of file diff --git a/src/presentation/components/Scripts/View/TheScriptsView.vue b/src/presentation/components/Scripts/View/TheScriptsView.vue index a87beb93..406a820b 100644 --- a/src/presentation/components/Scripts/View/TheScriptsView.vue +++ b/src/presentation/components/Scripts/View/TheScriptsView.vue @@ -120,20 +120,20 @@ $inner-margin: 4px; .search { display: flex; flex-direction: column; - background-color: $slate; + background-color: $color-primary-darker; &__query { display: flex; justify-content: center; flex-direction: row; align-items: center; margin-top: 1em; - color: $gray; + color: $color-primary; &__close-button { cursor: pointer; font-size: 1.25em; margin-left: 0.25rem; &:hover { - opacity: 0.9; + color: $color-primary-dark; } } } @@ -142,7 +142,7 @@ $inner-margin: 4px; flex-direction: column; word-break:break-word; text-transform: uppercase; - color: $light-gray; + color: $color-on-primary; font-size: 1.5em; padding:10px; text-align:center; @@ -150,7 +150,7 @@ $inner-margin: 4px; padding-bottom:13px; } a { - color: $gray; + color: $color-primary; } } } diff --git a/src/presentation/components/Shared/Dialog.vue b/src/presentation/components/Shared/Dialog.vue index 7f8a0b90..33c2ace3 100644 --- a/src/presentation/components/Shared/Dialog.vue +++ b/src/presentation/components/Shared/Dialog.vue @@ -32,26 +32,30 @@ export default class Dialog extends Vue { diff --git a/src/presentation/components/TheFooter/PrivacyPolicy.vue b/src/presentation/components/TheFooter/PrivacyPolicy.vue index 51c6e0ce..47511863 100644 --- a/src/presentation/components/TheFooter/PrivacyPolicy.vue +++ b/src/presentation/components/TheFooter/PrivacyPolicy.vue @@ -71,12 +71,5 @@ export default class PrivacyPolicy extends Vue { margin-top:0.2rem; } } - - a { - color:inherit; - &:hover { - opacity: 0.8; - } - } } diff --git a/src/presentation/components/TheFooter/TheFooter.vue b/src/presentation/components/TheFooter/TheFooter.vue index f718d6bc..cdfa6799 100644 --- a/src/presentation/components/TheFooter/TheFooter.vue +++ b/src/presentation/components/TheFooter/TheFooter.vue @@ -78,7 +78,6 @@ export default class TheFooter extends Vue { this.feedbackUrl = info.feedbackUrl; } } - diff --git a/src/presentation/components/TheHeader.vue b/src/presentation/components/TheHeader.vue index d8ad5ffb..0e8a3888 100644 --- a/src/presentation/components/TheHeader.vue +++ b/src/presentation/components/TheHeader.vue @@ -36,7 +36,6 @@ export default class TheHeader extends Vue { .title { margin: 0; - color: $black; text-transform: uppercase; font-family: $main-font; font-size: 2.5em; @@ -45,7 +44,7 @@ export default class TheHeader extends Vue { .subtitle { margin: 0; font-size: 1.5em; - color: $gray; + color: $color-primary; font-family: $artistic-font; font-weight: 500; line-height: 1.2; diff --git a/src/presentation/components/TheSearchBar.vue b/src/presentation/components/TheSearchBar.vue index 732ad6a0..56300660 100644 --- a/src/presentation/components/TheSearchBar.vue +++ b/src/presentation/components/TheSearchBar.vue @@ -1,9 +1,9 @@