|
Class: MacFlatButtonBorder
Object
|
+--AbstractBorder
|
+--SimpleBorder
|
+--MacFlatButtonBorder
- Package:
- stx:libview
- Category:
- Graphics-Support
- Version:
- rev:
1.11
date: 2017/11/28 18:18:07
- user: cg
- file: MacFlatButtonBorder.st directory: libview
- module: stx stc-classLibrary: libview
an as yet unused and unfinished attempt to provide a mac-osx like
button border. These will look like mac buttons in yosemite (i.e. ugly old 70s retro flat style).
To be continued.
image specs
-
topLeftImageFilled
-
This resource specification was automatically generated
by the ImageEditor of ST/X.
usage example(s):
self topLeftImageFilled inspect
ImageEditor openOnClass:self andSelector:#topLeftImageFilled
Icon flushCachedIcons
|
-
topLeftImageUnfilled
-
This resource specification was automatically generated
by the ImageEditor of ST/X.
usage example(s):
self topLeftImageUnfilled inspect
ImageEditor openOnClass:self andSelector:#topLeftImageUnfilled
Icon flushCachedIcons
|
-
topLeftImageUnfilledMasked
-
This resource specification was automatically generated
by the ImageEditor of ST/X.
usage example(s):
self topLeftImageUnfilledMasked inspect
ImageEditor openOnClass:self andSelector:#topLeftImageUnfilledMasked
Icon flushCachedIcons
|
-
topLeftImageUnfilledMasked2
-
This resource specification was automatically generated
by the ImageEditor of ST/X.
usage example(s):
self topLeftImageUnfilledMasked2 inspect
ImageEditor openOnClass:self andSelector:#topLeftImageUnfilledMasked2
Icon flushCachedIcons
|
-
topLeftImageUnfilledMasked3
-
This resource specification was automatically generated
by the ImageEditor of ST/X.
usage example(s):
self topLeftImageUnfilledMasked3 inspect
ImageEditor openOnClass:self andSelector:#topLeftImageUnfilledMasked3
Icon flushCachedIcons
|
-
topLeftImageUnfilledMasked4
-
This resource specification was automatically generated
by the ImageEditor of ST/X.
usage example(s):
self topLeftImageUnfilledMasked4 inspect
ImageEditor openOnClass:self andSelector:#topLeftImageUnfilledMasked4
Icon flushCachedIcons
|
-
topLeftImageUnfilledMasked5
-
This resource specification was automatically generated
by the ImageEditor of ST/X.
usage example(s):
self topLeftImageUnfilledMasked5 inspect
ImageEditor openOnClass:self andSelector:#topLeftImageUnfilledMasked5
Icon flushCachedIcons
|
-
topLeftImageUnfilledMasked6
-
This resource specification was automatically generated
by the ImageEditor of ST/X.
usage example(s):
self topLeftImageUnfilledMasked6 inspect
ImageEditor openOnClass:self andSelector:#topLeftImageUnfilledMasked6
Icon flushCachedIcons
|
instance creation
-
color: color1 backgroundColor: color2
-
create a new instance of the receiver with a border of the given color.
-
color: color1 insideColor: color2
-
create a new instance of the receiver with a border of the given color.
accessing-color & font
-
backgroundColor1
-
the first gradient color
-
backgroundColor1: newColor
-
the first gradient color
-
backgroundColor2
-
the second gradient color
-
backgroundColor2: newColor
-
the second gradient color
-
color: newColor
-
the color of the border
displaying
-
displayOn: aGC forDisplayBox: aRectangle
-
|v1 v2|
v1 := TopView new.
v2 := View origin:10@10 corner:100@30 in:v1.
v2 border:(MacFlatButtonBorder color:Color red).
v1 open.
private
-
makeImages
-
imgBottomRight colorMap at:1 put:color darkened.
|