logo

pleroma-fe

My custom branche(s) on git.pleroma.social/pleroma/pleroma-fe git clone https://anongit.hacktivis.me/git/pleroma-fe.git/
commit: 10aa5755a4b31c8b55bbcb25326a9f81d3901487
parent b32909a9e60fb97ca80463ad841986151ad41a40
Author: Henry Jameson <me@hjkos.com>
Date:   Wed, 20 Nov 2024 17:03:09 +0200

make old theme tab truly deprecated

Diffstat:

Msrc/components/settings_modal/settings_modal_user_content.js3+++
Msrc/components/settings_modal/settings_modal_user_content.vue3++-
Msrc/i18n/en.json1+
3 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/components/settings_modal/settings_modal_user_content.js b/src/components/settings_modal/settings_modal_user_content.js @@ -64,6 +64,9 @@ const SettingsModalContent = { }, bodyLock () { return this.$store.state.interface.settingsModalState === 'visible' + }, + expertLevel () { + return this.$store.state.config.expertLevel } }, methods: { diff --git a/src/components/settings_modal/settings_modal_user_content.vue b/src/components/settings_modal/settings_modal_user_content.vue @@ -28,7 +28,8 @@ <StyleTab /> </div> <div - :label="$t('settings.theme')" + v-if="expertLevel > 0" + :label="$t('settings.theme_old')" icon="paint-brush" data-tab-name="theme" > diff --git a/src/i18n/en.json b/src/i18n/en.json @@ -701,6 +701,7 @@ "use_websockets": "Use websockets (Realtime updates)", "text": "Text", "theme": "Theme", + "theme_old": "Theme (old)", "theme_help": "Use hex color codes (#rrggbb) to customize your color theme.", "theme_help_v2_1": "You can also override certain component's colors and opacity by toggling the checkbox, use \"Clear all\" button to clear all overrides.", "theme_help_v2_2": "Icons underneath some entries are background/text contrast indicators, hover over for detailed info. Please keep in mind that when using transparency contrast indicators show the worst possible case.",