editor: add 'Relative units (%)' option

This commit is contained in:
bordun 2020-09-07 09:08:48 +02:00
parent 7d16269228
commit f2e0f26f58
7 changed files with 58 additions and 7 deletions

View file

@ -158,6 +158,14 @@ var menuEntries = [
class: ()=>{return 'toggle ' + (rightUiSidePanel.minimized ? 'off' : 'on')},
action: ()=>{return rightUiSidePanel.minimized ? rightUiSidePanel.restore() : rightUiSidePanel.minimize()},
shortcut: 'mod + i'
},
{
separator: true
},
{
label: locales('editor_percents'),
class: ()=>{return 'toggle ' + (editor.usePercents ? 'on' : 'off')},
action: ()=>{editor.usePercents = !editor.usePercents}
}
]
},