1
0
mirror of https://github.com/chinchang/web-maker.git synced 2025-07-13 18:16:19 +02:00

Change useBlur setting to lightVersion

This commit is contained in:
Andrew Luca
2017-08-19 23:11:15 +03:00
parent 230033cb10
commit ebdfd2e4be
2 changed files with 5 additions and 5 deletions

View File

@ -456,7 +456,7 @@
<input type="checkbox" d-change="updateSetting" data-setting="replaceNewTab"> Replace new tab page <input type="checkbox" d-change="updateSetting" data-setting="replaceNewTab"> Replace new tab page
</label> </label>
<label class="line"> <label class="line">
<input type="checkbox" d-change="updateSetting" data-setting="useBlur"> Use blur overlay (needs restart) <input type="checkbox" d-change="updateSetting" data-setting="lightVersion"> Toggle fast/light version (needs restart)
</label> </label>
</p> </p>
<hr> <hr>

View File

@ -1588,9 +1588,9 @@ customEditorFontInput
$('[data-setting=editorCustomFont]').value = prefs.editorCustomFont; $('[data-setting=editorCustomFont]').value = prefs.editorCustomFont;
$('[data-setting=autoSave]').checked = prefs.autoSave; $('[data-setting=autoSave]').checked = prefs.autoSave;
$('[data-setting=autoComplete]').checked = prefs.autoComplete; $('[data-setting=autoComplete]').checked = prefs.autoComplete;
$('[data-setting=useBlur]').checked = prefs.useBlur; $('[data-setting=lightVersion]').checked = prefs.lightVersion;
if (prefs.useBlur) { if (!prefs.lightVersion) {
document.body.classList.add('blur'); document.body.classList.add('blur');
} }
} }
@ -2160,7 +2160,7 @@ customEditorFontInput
editorCustomFont: '', editorCustomFont: '',
autoSave: true, autoSave: true,
autoComplete: true, autoComplete: true,
useBlur: true lightVersion: true
}, },
function syncGetCallback(result) { function syncGetCallback(result) {
if (result.preserveLastCode && lastCode) { if (result.preserveLastCode && lastCode) {
@ -2196,7 +2196,7 @@ customEditorFontInput
prefs.editorCustomFont = result.editorCustomFont; prefs.editorCustomFont = result.editorCustomFont;
prefs.autoSave = result.autoSave; prefs.autoSave = result.autoSave;
prefs.autoComplete = result.autoComplete; prefs.autoComplete = result.autoComplete;
prefs.useBlur = result.useBlur; prefs.lightVersion = result.lightVersion;
updateSettingsInUi(); updateSettingsInUi();
scope.updateSetting(); scope.updateSetting();