kopia lustrzana https://github.com/backface/turtlestitch
added shadows to most dialog boxes
rodzic
591b74b856
commit
5160635dca
18
src/byob.js
18
src/byob.js
|
@ -108,7 +108,7 @@ BooleanSlotMorph, XML_Serializer, SnapTranslator*/
|
|||
|
||||
// Global stuff ////////////////////////////////////////////////////////
|
||||
|
||||
modules.byob = '2020-March-31';
|
||||
modules.byob = '2020-April-04';
|
||||
|
||||
// Declarations
|
||||
|
||||
|
@ -2026,6 +2026,10 @@ BlockDialogMorph.prototype.fixLayout = function () {
|
|||
this.buttons.setCenter(this.center());
|
||||
this.buttons.setBottom(this.bottom() - this.padding);
|
||||
}
|
||||
|
||||
// refresh a shallow shadow
|
||||
this.removeShadow();
|
||||
this.addShadow();
|
||||
};
|
||||
|
||||
BlockDialogMorph.prototype.accept = function () {
|
||||
|
@ -2442,6 +2446,10 @@ BlockEditorMorph.prototype.fixLayout = function () {
|
|||
this.buttons.setCenter(this.center());
|
||||
this.buttons.setBottom(this.bottom() - this.padding);
|
||||
}
|
||||
|
||||
// refresh a shallow shadow
|
||||
this.removeShadow();
|
||||
this.addShadow();
|
||||
};
|
||||
|
||||
// PrototypeHatBlockMorph /////////////////////////////////////////////
|
||||
|
@ -3245,6 +3253,10 @@ InputSlotDialogMorph.prototype.fixLayout = function () {
|
|||
// set dialog box dimensions:
|
||||
this.bounds.setHeight(this.buttons.bottom() - this.top() + this.padding);
|
||||
this.bounds.setWidth(this.slots.right() - this.left() + this.padding);
|
||||
|
||||
// refresh a shallow shadow
|
||||
this.removeShadow();
|
||||
this.addShadow();
|
||||
};
|
||||
|
||||
InputSlotDialogMorph.prototype.open = function (
|
||||
|
@ -3871,6 +3883,10 @@ VariableDialogMorph.prototype.fixLayout = function () {
|
|||
this.buttons.setCenter(this.center());
|
||||
this.buttons.setBottom(this.bottom() - this.padding);
|
||||
}
|
||||
|
||||
// refresh a shallow shadow
|
||||
this.removeShadow();
|
||||
this.addShadow();
|
||||
};
|
||||
|
||||
// BlockExportDialogMorph ////////////////////////////////////////////////////
|
||||
|
|
|
@ -85,7 +85,7 @@ HTMLCanvasElement, fontHeight, SymbolMorph, localize, SpeechBubbleMorph,
|
|||
ArrowMorph, MenuMorph, isString, isNil, SliderMorph, MorphicPreferences,
|
||||
ScrollFrameMorph, MenuItemMorph, Note*/
|
||||
|
||||
modules.widgets = '2020-March-22';
|
||||
modules.widgets = '2020-April-04';
|
||||
|
||||
var PushButtonMorph;
|
||||
var ToggleButtonMorph;
|
||||
|
|
Ładowanie…
Reference in New Issue