Disable Compact UI if a theme is forcing a UI

This commit is contained in:
Amaru8 2022-06-15 18:44:53 +02:00
parent 58aa41f525
commit 9e04891b2f
2 changed files with 4 additions and 3 deletions

View file

@ -1215,12 +1215,13 @@
<div class="md-option-line">
<div class="md-option-segment">
{{$root.getLz('settings.option.experimental.compactUI')}}
<small v-if="!!app.getThemeDirective('forceUI')">{{$root.getLz('term.themeManaged')}}</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>