kopia lustrzana https://github.com/backface/turtlestitch
honor (hidden) blurred shadows setting for input widgets
rodzic
71348ab563
commit
da1d031910
|
@ -18,6 +18,7 @@
|
|||
|
||||
### 2020-10-06
|
||||
* blocks: disable blurred shadows inside input slots if the hidden "blurred shadows" setting is turned off
|
||||
* widgets: honor (hidden) blurred shadows setting for input widgets
|
||||
|
||||
### 2020-10-05
|
||||
* Greek translation updata, thanks, HM100!
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
<link rel="icon" href="src/favicon.ico">
|
||||
<script src="src/morphic.js?version=2020-09-12"></script>
|
||||
<script src="src/symbols.js?version=2020-07-21"></script>
|
||||
<script src="src/widgets.js?version=2020-07-27"></script>
|
||||
<script src="src/widgets.js?version=2020-10-06"></script>
|
||||
<script src="src/blocks.js?version=2020-10-06"></script>
|
||||
<script src="src/threads.js?version=2020-10-05"></script>
|
||||
<script src="src/objects.js?version=2020-10-05"></script>
|
||||
|
|
|
@ -83,9 +83,9 @@
|
|||
StringMorph, Morph, TextMorph, nop, detect, StringFieldMorph, BLACK, WHITE,
|
||||
HTMLCanvasElement, fontHeight, SymbolMorph, localize, SpeechBubbleMorph,
|
||||
ArrowMorph, MenuMorph, isString, isNil, SliderMorph, MorphicPreferences,
|
||||
ScrollFrameMorph, MenuItemMorph, Note*/
|
||||
ScrollFrameMorph, MenuItemMorph, Note, useBlurredShadows*/
|
||||
|
||||
modules.widgets = '2020-July-27';
|
||||
modules.widgets = '2020-October-06';
|
||||
|
||||
var PushButtonMorph;
|
||||
var ToggleButtonMorph;
|
||||
|
@ -3154,9 +3154,11 @@ InputFieldMorph.prototype.drawRectBorder = function (ctx) {
|
|||
ctx.lineJoin = 'round';
|
||||
ctx.lineCap = 'round';
|
||||
|
||||
ctx.shadowOffsetY = shift;
|
||||
ctx.shadowBlur = this.edge * 4;
|
||||
ctx.shadowColor = this.cachedClrDark;
|
||||
if (useBlurredShadows) {
|
||||
ctx.shadowOffsetY = shift;
|
||||
ctx.shadowBlur = this.edge * 4;
|
||||
ctx.shadowColor = this.cachedClrDark;
|
||||
}
|
||||
|
||||
gradient = ctx.createLinearGradient(
|
||||
0,
|
||||
|
|
Ładowanie…
Reference in New Issue