2018-03-14 01:14:57 +01:00
|
|
|
<SettingsLayout page='settings/general' label="General">
|
|
|
|
<h1>General Settings</h1>
|
|
|
|
|
|
|
|
<h2>UI Settings</h2>
|
|
|
|
<form class="ui-settings" aria-label="UI settings">
|
|
|
|
<div class="setting-group">
|
|
|
|
<input type="checkbox" id="choice-autoplay-gif"
|
2018-05-02 02:05:36 +02:00
|
|
|
bind:checked="$autoplayGifs" on:change="$save()">
|
2018-03-14 01:14:57 +01:00
|
|
|
<label for="choice-autoplay-gif">Autoplay GIFs</label>
|
|
|
|
</div>
|
|
|
|
<div class="setting-group">
|
|
|
|
<input type="checkbox" id="choice-mark-media-sensitive"
|
2018-05-02 02:05:36 +02:00
|
|
|
bind:checked="$markMediaAsSensitive" on:change="$save()">
|
2018-03-14 01:14:57 +01:00
|
|
|
<label for="choice-mark-media-sensitive">Always mark media as sensitive</label>
|
|
|
|
</div>
|
2018-03-23 04:23:00 +01:00
|
|
|
<div class="setting-group">
|
|
|
|
<input type="checkbox" id="choice-reduce-motion"
|
2018-05-02 02:05:36 +02:00
|
|
|
bind:checked="$reduceMotion" on:change="$save()">
|
2018-03-23 04:23:00 +01:00
|
|
|
<label for="choice-reduce-motion">Reduce motion in UI animations</label>
|
|
|
|
</div>
|
2018-03-14 01:14:57 +01:00
|
|
|
</form>
|
|
|
|
|
|
|
|
</SettingsLayout>
|
|
|
|
<style>
|
|
|
|
.ui-settings {
|
|
|
|
background: var(--form-bg);
|
|
|
|
border: 1px solid var(--main-border);
|
|
|
|
border-radius: 4px;
|
|
|
|
padding: 20px;
|
|
|
|
line-height: 2em;
|
|
|
|
}
|
|
|
|
.setting-group {
|
|
|
|
padding: 5px 0;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
<script>
|
|
|
|
import SettingsLayout from '../../_components/settings/SettingsLayout.html'
|
|
|
|
import { store } from '../../_store/store'
|
|
|
|
|
|
|
|
export default {
|
|
|
|
components: {
|
|
|
|
SettingsLayout
|
|
|
|
},
|
|
|
|
store: () => store
|
2018-04-20 06:38:01 +02:00
|
|
|
}
|
2018-03-14 01:14:57 +01:00
|
|
|
</script>
|