From 3d914e6811c272876eb78ef3bf919050eb5ee264 Mon Sep 17 00:00:00 2001 From: jmoenig Date: Tue, 6 Oct 2020 14:52:27 +0200 Subject: [PATCH] made (hidden) "Blurred shadows" setting persistent use to get rid of "red bar" artifacts on old laptops using Chrome --- HISTORY.md | 2 ++ snap.html | 2 +- src/gui.js | 17 +++++++++++++++-- 3 files changed, 18 insertions(+), 3 deletions(-) diff --git a/HISTORY.md b/HISTORY.md index e5133952..945c7c01 100755 --- a/HISTORY.md +++ b/HISTORY.md @@ -9,6 +9,7 @@ * assume stage dimensions for "SWITCH TO COSTUME" with list if current costume dimensions don't fit * added "bar / lines" option for plotting charts in the "frequency distribution analysis" library * new "48 kHz" option in the "sampling rate" dropdown + * made (hidden) "Blurred shadows" setting persistent, use to get rid of "red bar" artifacts on old laptops using Chrome * **Notable Fixes:** * "append" block now shows up when searching for it * disable blurred shadows inside input slots if the hidden "blurred shadows" setting is turned off, use this setting on old laptops displaying "red bars" in Chrome @@ -21,6 +22,7 @@ * widgets: honor (hidden) blurred shadows setting for input widgets * objects: honor (hidden) blurred shadows setting for watcher cell widgets * tables: honor (hidden) blurred shadows setting for pictograms in tables +* gui: made (hidden) "Blurred shadows" setting persistent, use to get rid of "red bar" artifacts on old laptops using Chrome ### 2020-10-05 * Greek translation updata, thanks, HM100! diff --git a/snap.html b/snap.html index 9e8e34da..9c145440 100755 --- a/snap.html +++ b/snap.html @@ -11,7 +11,7 @@ - + diff --git a/src/gui.js b/src/gui.js index ce08b5a0..c31377f4 100644 --- a/src/gui.js +++ b/src/gui.js @@ -78,7 +78,7 @@ Animation, BoxMorph, BlockEditorMorph, BlockDialogMorph, Note, ZERO, BLACK*/ // Global stuff //////////////////////////////////////////////////////// -modules.gui = '2020-September-25'; +modules.gui = '2020-October-06'; // Declarations @@ -2405,7 +2405,8 @@ IDE_Morph.prototype.applySavedSettings = function () { keyboard = this.getSetting('keyboard'), tables = this.getSetting('tables'), tableLines = this.getSetting('tableLines'), - autoWrapping = this.getSetting('autowrapping'); + autoWrapping = this.getSetting('autowrapping'), + solidshadow = this.getSetting('solidshadow'); // design if (design === 'flat') { @@ -2482,6 +2483,12 @@ IDE_Morph.prototype.applySavedSettings = function () { if (plainprototype) { BlockLabelPlaceHolderMorph.prototype.plainLabel = true; } + + // solid shadow + if (solidshadow) { + window.useBlurredShadows = false; + this.rerender(); + } }; IDE_Morph.prototype.saveSetting = function (key, value) { @@ -5201,6 +5208,12 @@ IDE_Morph.prototype.toggleDynamicInputLabels = function () { IDE_Morph.prototype.toggleBlurredShadows = function () { window.useBlurredShadows = !useBlurredShadows; + this.rerender(); + if (window.useBlurredShadows) { + this.removeSetting('solidshadow'); + } else { + this.saveSetting('solidshadow', false); + } }; IDE_Morph.prototype.toggleLongFormInputDialog = function () {