@@ -671,6 +671,86 @@ PyramidBackgroundBlocPlugin class >> outskirts [
671671 ^ property
672672]
673673
674+ { #category : #accessing }
675+ PyramidBackgroundBlocPlugin class >> shadow [
676+
677+ | property |
678+ property := PyramidProperty new
679+ name: ' Shadow Effect' ;
680+ command: PyramidShadowCommand current;
681+ inputPresenterClass: PyramidMagicButtonsInputPresenter ;
682+ yourself .
683+ property inputPresenterModel
684+ addButtonModel: (PyramidMagicButtonModel new
685+ icon: (Smalltalk ui icons iconNamed: #blank );
686+ helpSelected: ' No shadow.' ;
687+ helpNotSelected: ' Remove shadow.' ;
688+ label: ' None' ;
689+ inputValue: [ BlNullEffect new ];
690+ inputValidation: [ :value | value class = BlNullEffect ];
691+ yourself );
692+ addButtonModel: (PyramidMagicButtonModel new
693+ icon: (Smalltalk ui icons iconNamed: #windowMaximize );
694+ helpSelected: ' Shadow type is simple.' ;
695+ helpNotSelected: ' Set shadow type to simple.' ;
696+ label: ' Simple' ;
697+ inputValue: [ PyramidShadowCommand current lastSimpleShadow ];
698+ inputValidation: [ :value | value class = BlSimpleShadowEffect ];
699+ yourself );
700+ addButtonModel: (PyramidMagicButtonModel new
701+ icon: (Smalltalk ui icons iconNamed: #radioButtonUnselected );
702+ helpSelected: ' Shadow type is gaussian.' ;
703+ helpNotSelected: ' Set shadow type to gaussian.' ;
704+ label: ' Gaussian' ;
705+ inputValue: [ PyramidShadowCommand current lastGaussianShadow ];
706+ inputValidation: [ :value | value class = BlGaussianShadowEffect ];
707+ yourself ).
708+ ^ property
709+ ]
710+
711+ { #category : #accessing }
712+ PyramidBackgroundBlocPlugin class >> shadowColor [
713+
714+ | property |
715+ property := PyramidProperty new
716+ name: ' Shadow Color' ;
717+ command: PyramidShadowColorCommand new ;
718+ inputPresenterClass:
719+ PyramidColorInputSingleLineWithPickupButtonPresenter ;
720+ yourself .
721+ ^ property
722+
723+
724+ ]
725+
726+ { #category : #accessing }
727+ PyramidBackgroundBlocPlugin class >> shadowOffset [
728+
729+ | property |
730+ property := PyramidProperty new
731+ name: ' Shadow Offset' ;
732+ command: PyramidShadowOffsetCommand new ;
733+ inputPresenterClass:
734+ PyramidPointInputPresenter ;
735+ yourself .
736+ property inputPresenterModel help:
737+ ' Set the position x and y for the shadow offset' .
738+ ^ property
739+ ]
740+
741+ { #category : #accessing }
742+ PyramidBackgroundBlocPlugin class >> shadowWidthGaussian [
743+
744+ | property |
745+ property := PyramidProperty new
746+ name: ' Shadow Width' ;
747+ command: PyramidShadowGaussianWidthCommand new ;
748+ inputPresenterClass: PyramidNumberInputPresenter ;
749+ yourself .
750+ property inputPresenterModel help: ' Set the width value' .
751+ ^ property
752+ ]
753+
674754{ #category : #adding }
675755PyramidBackgroundBlocPlugin >> addPanelsOn: aPyramidSimpleWindow [
676756
@@ -747,7 +827,14 @@ PyramidBackgroundBlocPlugin >> initialize [
747827 propertiesManager addProperty: self class borderRadialInnerCenter.
748828 propertiesManager addProperty: self class borderRadialInnerRadius.
749829 propertiesManager addProperty: self class borderRadialOuterCenter.
750- propertiesManager addProperty: self class borderRadialOuterRadius
830+ propertiesManager addProperty: self class borderRadialOuterRadius.
831+
832+ " Shadow"
833+ PyramidShadowCommand resetShadowCommand.
834+ propertiesManager addProperty: self class shadow.
835+ propertiesManager addProperty: self class shadowColor.
836+ propertiesManager addProperty: self class shadowOffset.
837+ propertiesManager addProperty: self class shadowWidthGaussian
751838]
752839
753840{ #category : #adding }
0 commit comments