Made Slider more pluggable and thus removed PluggableSliderMorph from the system. The code that was not moved upwards into Slider was moved downwards into its sole subclass: BracketSliderMorph.
It was verified that the "new color picker morph", which is the sole user of that BracketSliderMorph, stays functional.
Why? The Slider should support custom min/max values whenever the default (floats with 0.0 to 1.0) is not appropriate. Truncation is supported, too. Everything was already present in the (removed) PluggableSliderMorph, but we need that behavior in ScrollBar.
Note: There is still the SimpleSliderMorph, which duplicates some behavior of Slider but is a base class of slider. E-Toys uses it. We may want to remove that duplicated code later.
=============== Diff against Morphic-mt.841 ===============
!BracketSliderMorph commentStamp: 'gvc 5/18/2007 13:39' prior: 0!
Abstract superclass for morphs that are used to select a component (R, G, B or A) of a colour.!
Item was added:
+ ----- Method: BracketSliderMorph>>borderStyleToUse (in category 'accessing - ui') -----
+ borderStyleToUse
+ "Answer the borderStyle that should be used for the receiver."
+
+ ^self enabled
+ ifTrue: [self theme sliderNormalBorderStyleFor: self]
+ ifFalse: [self theme sliderDisabledBorderStyleFor: self]!
Hi Marcel,
theme?
There's no theme (yet) in Squeak...
Is it something that leaked from some other framework?
I think I just copied the code over from PluggableSliderMorph. May be a left-over from eToys. There are no senders of #borderStylerToUse either. I think we can remove that method that calls #theme.