From c83ddb0b2b824fb3c0e3bb596552e98c162c78d3 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Tue, 27 Feb 2024 17:03:39 +0200 Subject: better v1 detection, better menu-item consistency --- src/components/menu_item.style.js | 35 +++++++++++++++++++--- src/components/navigation/navigation_entry.vue | 14 ++++++++- .../settings_modal/tabs/theme_tab/theme_tab.js | 2 ++ 3 files changed, 46 insertions(+), 5 deletions(-) (limited to 'src/components') diff --git a/src/components/menu_item.style.js b/src/components/menu_item.style.js index 3c70bd9f..3812f894 100644 --- a/src/components/menu_item.style.js +++ b/src/components/menu_item.style.js @@ -30,17 +30,44 @@ export default { { state: ['active'], directives: { - background: '$mod(--bg, 5)', + background: '$mod(--bg, 10)', + opacity: 1 + } + }, + { + state: ['active', 'hover'], + directives: { + background: '$mod(--bg, 15)', opacity: 1 } }, { component: 'Text', - variant: 'normal', parent: { component: 'MenuItem', - state: ['normal', 'hover'], - variant: 'normal' + state: ['hover'] + }, + directives: { + textColor: '--link', + textAuto: 'no-preserve' + } + }, + { + component: 'Text', + parent: { + component: 'MenuItem', + state: ['active'] + }, + directives: { + textColor: '--link', + textAuto: 'no-preserve' + } + }, + { + component: 'Icon', + parent: { + component: 'MenuItem', + state: ['active'] }, directives: { textColor: '--link', diff --git a/src/components/navigation/navigation_entry.vue b/src/components/navigation/navigation_entry.vue index 1189f76d..ac4a0c47 100644 --- a/src/components/navigation/navigation_entry.vue +++ b/src/components/navigation/navigation_entry.vue @@ -10,7 +10,7 @@ > @@ -84,11 +84,23 @@ } .main-link { + background: none; + border: none; + outline: none; + display: inline; + text-align: initial; + font-size: 100%; + font-family: inherit; + line-height: unset; + cursor: pointer; + box-sizing: content-box; + color: var(--text); flex: 1; padding: 0 1em; } .menu-icon { + color: var(--icon); margin-right: 0.8em; } diff --git a/src/components/settings_modal/tabs/theme_tab/theme_tab.js b/src/components/settings_modal/tabs/theme_tab/theme_tab.js index dd525920..11c90b03 100644 --- a/src/components/settings_modal/tabs/theme_tab/theme_tab.js +++ b/src/components/settings_modal/tabs/theme_tab/theme_tab.js @@ -514,6 +514,7 @@ export default { this.$store.dispatch('setOption', { name: 'customTheme', value: { + themeFileVersion: this.selectedVersion, themeEngineVersion: CURRENT_VERSION, ...this.previewTheme } @@ -521,6 +522,7 @@ export default { this.$store.dispatch('setOption', { name: 'customThemeSource', value: { + themeFileVersion: this.selectedVersion, themeEngineVersion: CURRENT_VERSION, shadows: this.shadowsLocal, fonts: this.fontsLocal, -- cgit v1.2.3-70-g09d2