forked from Mirrors/elk
feat: organize preferences
This commit is contained in:
parent
4a74b16d24
commit
0258894484
2 changed files with 30 additions and 25 deletions
|
@ -409,7 +409,8 @@
|
||||||
"label": "Preferences",
|
"label": "Preferences",
|
||||||
"title": "Experimental Features",
|
"title": "Experimental Features",
|
||||||
"user_picker": "User Picker",
|
"user_picker": "User Picker",
|
||||||
"virtual_scroll": "Virtual Scrolling"
|
"virtual_scroll": "Virtual Scrolling",
|
||||||
|
"wellbeing": "Wellbeing"
|
||||||
},
|
},
|
||||||
"profile": {
|
"profile": {
|
||||||
"appearance": {
|
"appearance": {
|
||||||
|
|
|
@ -21,6 +21,34 @@ const userSettings = useUserSettings()
|
||||||
>
|
>
|
||||||
{{ $t('settings.preferences.hide_alt_indi_on_posts') }}
|
{{ $t('settings.preferences.hide_alt_indi_on_posts') }}
|
||||||
</SettingsToggleItem>
|
</SettingsToggleItem>
|
||||||
|
<SettingsToggleItem
|
||||||
|
:checked="getPreferences(userSettings, 'hideAccountHoverCard')"
|
||||||
|
@click="togglePreferences('hideAccountHoverCard')"
|
||||||
|
>
|
||||||
|
{{ $t('settings.preferences.hide_account_hover_card') }}
|
||||||
|
</SettingsToggleItem>
|
||||||
|
<SettingsToggleItem
|
||||||
|
:checked="getPreferences(userSettings, 'enableAutoplay')"
|
||||||
|
@click="togglePreferences('enableAutoplay')"
|
||||||
|
>
|
||||||
|
{{ $t('settings.preferences.enable_autoplay') }}
|
||||||
|
</SettingsToggleItem>
|
||||||
|
<SettingsToggleItem
|
||||||
|
:checked="getPreferences(userSettings, 'enablePinchToZoom')"
|
||||||
|
@click="togglePreferences('enablePinchToZoom')"
|
||||||
|
>
|
||||||
|
{{ $t('settings.preferences.enable_pinch_to_zoom') }}
|
||||||
|
</SettingsToggleItem>
|
||||||
|
<h2 px6 py4 mt2 font-bold text-xl flex="~ gap-1" items-center>
|
||||||
|
<div i-ri-hearts-line />
|
||||||
|
{{ $t('settings.preferences.wellbeing') }}
|
||||||
|
</h2>
|
||||||
|
<SettingsToggleItem
|
||||||
|
:checked="getPreferences(userSettings, 'grayscaleMode')"
|
||||||
|
@click="togglePreferences('grayscaleMode')"
|
||||||
|
>
|
||||||
|
{{ $t('settings.preferences.grayscale_mode') }}
|
||||||
|
</SettingsToggleItem>
|
||||||
<SettingsToggleItem
|
<SettingsToggleItem
|
||||||
:checked="getPreferences(userSettings, 'hideBoostCount')"
|
:checked="getPreferences(userSettings, 'hideBoostCount')"
|
||||||
@click="togglePreferences('hideBoostCount')"
|
@click="togglePreferences('hideBoostCount')"
|
||||||
|
@ -45,30 +73,6 @@ const userSettings = useUserSettings()
|
||||||
>
|
>
|
||||||
{{ $t('settings.preferences.hide_follower_count') }}
|
{{ $t('settings.preferences.hide_follower_count') }}
|
||||||
</SettingsToggleItem>
|
</SettingsToggleItem>
|
||||||
<SettingsToggleItem
|
|
||||||
:checked="getPreferences(userSettings, 'hideAccountHoverCard')"
|
|
||||||
@click="togglePreferences('hideAccountHoverCard')"
|
|
||||||
>
|
|
||||||
{{ $t('settings.preferences.hide_account_hover_card') }}
|
|
||||||
</SettingsToggleItem>
|
|
||||||
<SettingsToggleItem
|
|
||||||
:checked="getPreferences(userSettings, 'grayscaleMode')"
|
|
||||||
@click="togglePreferences('grayscaleMode')"
|
|
||||||
>
|
|
||||||
{{ $t('settings.preferences.grayscale_mode') }}
|
|
||||||
</SettingsToggleItem>
|
|
||||||
<SettingsToggleItem
|
|
||||||
:checked="getPreferences(userSettings, 'enableAutoplay')"
|
|
||||||
@click="togglePreferences('enableAutoplay')"
|
|
||||||
>
|
|
||||||
{{ $t('settings.preferences.enable_autoplay') }}
|
|
||||||
</SettingsToggleItem>
|
|
||||||
<SettingsToggleItem
|
|
||||||
:checked="getPreferences(userSettings, 'enablePinchToZoom')"
|
|
||||||
@click="togglePreferences('enablePinchToZoom')"
|
|
||||||
>
|
|
||||||
{{ $t('settings.preferences.enable_pinch_to_zoom') }}
|
|
||||||
</SettingsToggleItem>
|
|
||||||
<h2 px6 py4 mt2 font-bold text-xl flex="~ gap-1" items-center>
|
<h2 px6 py4 mt2 font-bold text-xl flex="~ gap-1" items-center>
|
||||||
<div i-ri-flask-line />
|
<div i-ri-flask-line />
|
||||||
{{ $t('settings.preferences.title') }}
|
{{ $t('settings.preferences.title') }}
|
||||||
|
|
Loading…
Reference in a new issue