kopia lustrzana https://github.com/backface/turtlestitch
honor (hidden) blurred shadows setting for pictograms in tables
rodzic
28d529fad6
commit
a894ce5297
|
@ -20,6 +20,7 @@
|
|||
* 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
|
||||
* objects: honor (hidden) blurred shadows setting for watcher cell widgets
|
||||
* tables: honor (hidden) blurred shadows setting for pictograms in tables
|
||||
|
||||
### 2020-10-05
|
||||
* Greek translation updata, thanks, HM100!
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
<script src="src/paint.js?version=2020-05-17"></script>
|
||||
<script src="src/lists.js?version=2020-07-01"></script>
|
||||
<script src="src/byob.js?version=2020-09-14"></script>
|
||||
<script src="src/tables.js?version=2020-05-18"></script>
|
||||
<script src="src/tables.js?version=2020-10-06"></script>
|
||||
<script src="src/sketch.js?version=2020-07-13"></script>
|
||||
<script src="src/video.js?version=2019-06-27"></script>
|
||||
<script src="src/maps.js?version=2020-03-25"></script>
|
||||
|
|
|
@ -64,13 +64,13 @@
|
|||
|
||||
// Global settings /////////////////////////////////////////////////////
|
||||
|
||||
/*global modules, Point, Morph, fontHeight, SliderMorph, isString, detect,
|
||||
MorphicPreferences, FrameMorph, HandleMorph, DialogBoxMorph, StringMorph,
|
||||
SpriteMorph, Context, Costume, BlockEditorMorph, SymbolMorph, List, IDE_Morph,
|
||||
SyntaxElementMorph, MenuMorph, SpriteBubbleMorph, SpeechBubbleMorph, Sound,
|
||||
CellMorph, ListWatcherMorph, isNil, BoxMorph, Variable, isSnapObject*/
|
||||
/*global modules, Point, Morph, fontHeight, SliderMorph, isString, detect, List,
|
||||
MorphicPreferences, FrameMorph, HandleMorph, DialogBoxMorph, StringMorph, isNil,
|
||||
SpriteMorph, Context, Costume, BlockEditorMorph, SymbolMorph, IDE_Morph, Sound,
|
||||
SyntaxElementMorph, MenuMorph, SpriteBubbleMorph, SpeechBubbleMorph, CellMorph,
|
||||
ListWatcherMorph, BoxMorph, Variable, isSnapObject, useBlurredShadows*/
|
||||
|
||||
modules.tables = '2020-May-18';
|
||||
modules.tables = '2020-October-06';
|
||||
|
||||
var Table;
|
||||
var TableCellMorph;
|
||||
|
@ -358,10 +358,12 @@ TableCellMorph.prototype.render = function (ctx) {
|
|||
if (dta instanceof HTMLCanvasElement) {
|
||||
x = Math.max((width - dta.width) / 2, 0);
|
||||
y = Math.max((height - dta.height) / 2, 0);
|
||||
ctx.shadowOffsetX = 4;
|
||||
ctx.shadowOffsetY = 4;
|
||||
ctx.shadowBlur = 4;
|
||||
ctx.shadowColor = 'lightgray';
|
||||
if (useBlurredShadows) {
|
||||
ctx.shadowOffsetX = 4;
|
||||
ctx.shadowOffsetY = 4;
|
||||
ctx.shadowBlur = 4;
|
||||
ctx.shadowColor = 'lightgray';
|
||||
}
|
||||
ctx.drawImage(dta, x, y);
|
||||
} else { // text
|
||||
ctx.font = font;
|
||||
|
|
Ładowanie…
Reference in New Issue