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:
@ -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>
|
||||||
|
@ -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();
|
||||||
|
Reference in New Issue
Block a user