From 441def48550036f6355944dcbe150a9fc7c49745 Mon Sep 17 00:00:00 2001 From: Joxit Date: Sat, 7 Jan 2023 20:30:24 +0100 Subject: [PATCH] feat(theme): add support for accent-text --- src/components/dialogs/dialogs-menu.riot | 4 ++++ src/components/tag-history/tag-history.riot | 9 +++++---- src/scripts/theme.js | 2 ++ src/style.scss | 16 ++-------------- 4 files changed, 13 insertions(+), 18 deletions(-) diff --git a/src/components/dialogs/dialogs-menu.riot b/src/components/dialogs/dialogs-menu.riot index 35df7b6..0bdf2f9 100644 --- a/src/components/dialogs/dialogs-menu.riot +++ b/src/components/dialogs/dialogs-menu.riot @@ -115,6 +115,10 @@ color: var(--primary-text); } + material-dropdown .material-dropdown-container .material-dropdown-item:hover { + background-color: rgba(0, 0, 0, 0.12); + } + :host .material-dropdown-wrapper material-dropdown .material-dropdown-container { right: 0; top: 2em; diff --git a/src/components/tag-history/tag-history.riot b/src/components/tag-history/tag-history.riot index 0c32d96..f38e546 100644 --- a/src/components/tag-history/tag-history.riot +++ b/src/components/tag-history/tag-history.riot @@ -23,7 +23,6 @@ along with this program. If not, see . waves-color="var(--hover-background)" waves-center="true" rounded="true" - waves-color="#ddd" href="{ toTaglist() }" icon > @@ -38,12 +37,14 @@ along with this program. If not, see . diff --git a/src/scripts/theme.js b/src/scripts/theme.js index 6763301..7deafb3 100644 --- a/src/scripts/theme.js +++ b/src/scripts/theme.js @@ -3,12 +3,14 @@ const LIGHT_THEME = { 'neutral-text': '#777', 'background': '#fff', 'hover-background': '#eee', + 'accent-text': 'rgba(0,0,0,0.26)', }; const DARK_THEME = { 'primary-text': '#8A9EBA', 'neutral-text': '#36527A', 'background': '#22272e', 'hover-background': '#30404D', + 'accent-text': '#5684C4', }; let THEME; diff --git a/src/style.scss b/src/style.scss index 99164f0..ebad3ea 100644 --- a/src/style.scss +++ b/src/style.scss @@ -95,13 +95,6 @@ material-tabs material-button .content .text { text-transform: none; } -material-tabs .line-wrapper .line { - background-color: #25313b; -} -material-tabs material-button.selected .content .text { - color: #25313b; -} - material-spinner { align-self: center; } @@ -143,7 +136,7 @@ h2 { } .list.highlight:hover { - background-color: var(--hover-background); + background-color: rgba(0, 0, 0, 0.12); cursor: pointer; } @@ -250,7 +243,6 @@ material-card table th { text-align: left; } -material-button:hover > :first-child, material-card .material-card-title-action material-button:hover button, material-card table tbody tr:hover { background-color: rgba(0, 0, 0, 0.12) !important; @@ -288,7 +280,7 @@ material-card table th.material-card-th-sorted-descending:hover { material-card table th.material-card-th-sorted-ascending:hover:before, material-card table th.material-card-th-sorted-descending:hover:before { - color: rgba(0, 0, 0, 0.26); + color: var(--accent-text); } material-card table th.material-card-th-sorted-ascending:before, @@ -390,10 +382,6 @@ taglist .image-size { width: 7em; } -material-button:hover material-waves { - background: none; -} - material-card material-button { background-color: inherit; }