add override_instance_wallpaper setting

This commit is contained in:
uwaa 2025-01-21 02:32:07 +00:00
parent 04ade0c31f
commit d0ab3c0b1b
4 changed files with 8 additions and 1 deletions

View file

@ -76,7 +76,7 @@ export default {
? null ? null
: this.$store.state.instance.background : this.$store.state.instance.background
}, },
background () { return this.pageBackground || this.userBackground || this.instanceBackground }, background () { return this.pageBackground || (this.$store.getters.mergedConfig.overrideInstanceWallpaper && this.userBackground) || this.instanceBackground },
bgStyle () { bgStyle () {
if (this.background) { if (this.background) {
return { return {

View file

@ -224,6 +224,11 @@
/> />
</button> </button>
</div> </div>
<BooleanSetting
path="overrideInstanceWallpaper"
>
{{ $t('settings.override_instance_wallpaper') }}
</BooleanSetting>
<p>{{ $t('settings.set_new_profile_background') }}</p> <p>{{ $t('settings.set_new_profile_background') }}</p>
<img <img
v-if="backgroundPreview" v-if="backgroundPreview"

View file

@ -588,6 +588,7 @@
"hide_user_stats": "Hide user statistics (e.g. the number of followers)", "hide_user_stats": "Hide user statistics (e.g. the number of followers)",
"hide_wallpaper": "Hide instance wallpaper", "hide_wallpaper": "Hide instance wallpaper",
"hide_wordfiltered_statuses": "Hide word-filtered posts", "hide_wordfiltered_statuses": "Hide word-filtered posts",
"override_instance_wallpaper": "Replace the instance wallpaper with your profile background",
"import_blocks_from_a_csv_file": "Import blocks from a csv file", "import_blocks_from_a_csv_file": "Import blocks from a csv file",
"import_followers_from_a_csv_file": "Import follows from a csv file", "import_followers_from_a_csv_file": "Import follows from a csv file",
"import_mutes_from_a_csv_file": "Import mutes from a csv file", "import_mutes_from_a_csv_file": "Import mutes from a csv file",

View file

@ -122,6 +122,7 @@ export const defaultState = {
supportedTranslationLanguages: {}, // instance default supportedTranslationLanguages: {}, // instance default
userProfileDefaultTab: 'statuses', userProfileDefaultTab: 'statuses',
useBlurhash: true, useBlurhash: true,
overrideInstanceWallpaper: false,
} }
// caching the instance default properties // caching the instance default properties