Disable a setting if it's managed by a theme

This commit is contained in:
Amaru8 2022-06-14 16:00:24 +02:00
parent 8d3cd1c11b
commit 26b3e38b43

View file

@ -386,10 +386,11 @@
<div class="md-option-line">
<div class="md-option-segment">
{{$root.getLz("settings.option.visual.windowStyle")}}
<small v-if="app.getThemeDirective('forceUI')">Managed by a theme</small>
</div>
<div class="md-option-segment md-option-segment_auto">
<label>
<select class="md-select" v-model="$root.cfg.visual.directives.windowLayout">
<select class="md-select" v-model="$root.cfg.visual.directives.windowLayout" :disabled="app.getThemeDirective('windowLayout')">
<option value="default">Maverick</option>
<option value="twopanel">Mojave</option>
</select>
@ -1215,12 +1216,13 @@
<div class="md-option-line">
<div class="md-option-segment">
{{$root.getLz('settings.option.experimental.compactUI')}}
<small v-if="app.getThemeDirective('forceUI')">Managed by a theme</small>
</div>
<div class="md-option-segment md-option-segment_auto">
<label>
<input type="checkbox" v-model="app.cfg.advanced.experiments.includes('compactui')"
@click="app.cfg.advanced.experiments.includes('compactui') ? removeExperiment('compactui') : addExperiment('compactui')"
switch/>
switch :disabled="app.getThemeDirective('forceUI')"/>
</label>
</div>
</div>