add option to force light icons

This commit is contained in:
Simon Vieille
2020-05-09 14:30:24 +02:00
parent 4b06b633b8
commit 7864e16ef3
6 changed files with 36 additions and 7 deletions
+4
View File
@@ -5,6 +5,10 @@
var body = $('body')
var isTouchDevice = window.matchMedia("(pointer: coarse)").matches
<?php if ($_['force-light-icon']): ?>
sideMenuContainer.attr('data-forcelighticon', '1')
<?php endif; ?>
body.on('side-menu.apps', function(e, apps) {
<?php if ($_['hide-when-no-apps']): ?>
sideMenu = $('#side-menu')
+16
View File
@@ -82,6 +82,22 @@ $choicesSizes = [
type="color"
value="<?php print_unescaped($_['text-color']); ?>">
</div>
<div>
<label for="side-menu-opener-only" class="settings-hint">
<?php p($l->t('Force light icons')); ?>
</label>
</div>
<div>
<select id="side-menu-force-light-icon" name="force-light-icon">
<?php foreach ($choicesYesNo as $label => $value): ?>
<option value="<?php echo $value ?>" <?php if ($value === $_['force-light-icon']): ?>selected<?php endif; ?>>
<?php echo $l->t($label); ?>
</option>
<?php endforeach; ?>
</select>
</div>
</div>
<div class="section">