# HG changeset patch # User Stefan Vogel # Date 1400832940 -7200 # Node ID 7b82f9dd4e1b3f6dc94c6d2177c4bf408a5922b1 # Parent 80453ab62df98a99ef96ff35f031eb104b4ab577 Change images to use ImageMask instances instead of Depth1Image instances as masks. diff -r 80453ab62df9 -r 7b82f9dd4e1b UIPainter.st --- a/UIPainter.st Mon May 19 19:56:11 2014 +0200 +++ b/UIPainter.st Fri May 23 10:15:40 2014 +0200 @@ -532,107 +532,159 @@ !UIPainter class methodsFor:'image specs'! arrowDown + "This resource specification was automatically generated by the ImageEditor of ST/X." - "Do not manually edit this!! If it is corrupted, the ImageEditor may not be able to read the specification." - " self arrowDown inspect ImageEditor openOnClass:self andSelector:#arrowDown - Icon flushCachedIcons - " - - - - ^Icon - constantNamed:'UIPainter class arrowDown' - ifAbsentPut:[(Depth1Image new) width: 11; height: 11; photometric:(#palette); bitsPerSample:(#[1]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'?>C?8O? ?>C@XNC <^C;8O? ?>C?8@@a') ; colorMapFromArray:#[0 0 0 255 255 255]; mask:((Depth1Image new) width: 11; height: 11; photometric:(#blackIs0); bitsPerSample:(#[1]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' + Icon flushCachedIcons" + + ^ Icon constantNamed:'UIPainter class arrowDown' + ifAbsentPut:[ + (Depth1Image new) + width:11; + height:11; + photometric:(#palette); + bitsPerSample:(#[ 1 ]); + samplesPerPixel:(1); + bits:(ByteArray fromPackedString:'?>C?8O? ?>C@XNC <^C;8O? ?>C?8@@a'); + colorMapFromArray:#[ 0 0 0 255 255 255 ]; + mask:((ImageMask new) + width:11; + height:11; + bits:(ByteArray + fromPackedString:' @@@@@@@@@@@? A<@C @D@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ -@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@a') ; yourself); yourself] +@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@a'); + yourself); + yourself + ] ! arrowLeft + "This resource specification was automatically generated by the ImageEditor of ST/X." - "Do not manually edit this!! If it is corrupted, the ImageEditor may not be able to read the specification." - " self arrowLeft inspect ImageEditor openOnClass:self andSelector:#arrowLeft - Icon flushCachedIcons - " - - - - ^Icon - constantNamed:'UIPainter class arrowLeft' - ifAbsentPut:[(Depth1Image new) width: 11; height: 11; photometric:(#palette); bitsPerSample:(#[1]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'?>C?8O7 >^C18NG <^C98O7 ?>C?8@@a') ; colorMapFromArray:#[0 0 0 255 255 255]; mask:((Depth1Image new) width: 11; height: 11; photometric:(#blackIs0); bitsPerSample:(#[1]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@H@A @N@A8@C PF@@H@@@@@@@@a') ; yourself); yourself] + Icon flushCachedIcons" + + ^ Icon constantNamed:'UIPainter class arrowLeft' + ifAbsentPut:[ + (Depth1Image new) + width:11; + height:11; + photometric:(#palette); + bitsPerSample:(#[ 1 ]); + samplesPerPixel:(1); + bits:(ByteArray fromPackedString:'?>C?8O7 >^C18NG <^C98O7 ?>C?8@@a'); + colorMapFromArray:#[ 0 0 0 255 255 255 ]; + mask:((ImageMask new) + width:11; + height:11; + bits:(ByteArray fromPackedString:'@@@@@@H@A @N@A8@C PF@@H@@@@@@@@a'); + yourself); + yourself + ] ! arrowRight + "This resource specification was automatically generated by the ImageEditor of ST/X." - "Do not manually edit this!! If it is corrupted, the ImageEditor may not be able to read the specification." - " self arrowRight inspect ImageEditor openOnClass:self andSelector:#arrowRight - Icon flushCachedIcons - " - - - - ^Icon - constantNamed:'UIPainter class arrowRight' - ifAbsentPut:[(Depth1Image new) width: 11; height: 11; photometric:(#palette); bitsPerSample:(#[1]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'?>C?8O_ <>C18OC <^C38O_ ?>C?8@@a') ; colorMapFromArray:#[0 0 0 255 255 255]; mask:((Depth1Image new) width: 11; height: 11; photometric:(#blackIs0); bitsPerSample:(#[1]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@ @C@@NA@<@C @L@@ @@@@@@@@a') ; yourself); yourself] + Icon flushCachedIcons" + + ^ Icon constantNamed:'UIPainter class arrowRight' + ifAbsentPut:[ + (Depth1Image new) + width:11; + height:11; + photometric:(#palette); + bitsPerSample:(#[ 1 ]); + samplesPerPixel:(1); + bits:(ByteArray fromPackedString:'?>C?8O_ <>C18OC <^C38O_ ?>C?8@@a'); + colorMapFromArray:#[ 0 0 0 255 255 255 ]; + mask:((ImageMask new) + width:11; + height:11; + bits:(ByteArray fromPackedString:'@@@@@@ @C@@NA@<@C @L@@ @@@@@@@@a'); + yourself); + yourself + ] ! arrowUp + "This resource specification was automatically generated by the ImageEditor of ST/X." - "Do not manually edit this!! If it is corrupted, the ImageEditor may not be able to read the specification." - " self arrowUp inspect ImageEditor openOnClass:self andSelector:#arrowUp - Icon flushCachedIcons - " - - - - ^Icon - constantNamed:'UIPainter class arrowUp' - ifAbsentPut:[(Depth1Image new) width: 11; height: 11; photometric:(#palette); bitsPerSample:(#[1]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'?>C?8O? >>C18NC 0FC?8O? ?>C?8@@a') ; colorMapFromArray:#[0 0 0 255 255 255]; mask:((Depth1Image new) width: 11; height: 11; photometric:(#blackIs0); bitsPerSample:(#[1]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@A@@NG1<@O8@@@@@@@@@@AP@a') ; yourself); yourself] + Icon flushCachedIcons" + + ^ Icon constantNamed:'UIPainter class arrowUp' + ifAbsentPut:[ + (Depth1Image new) + width:11; + height:11; + photometric:(#palette); + bitsPerSample:(#[ 1 ]); + samplesPerPixel:(1); + bits:(ByteArray fromPackedString:'?>C?8O? >>C18NC 0FC?8O? ?>C?8@@a'); + colorMapFromArray:#[ 0 0 0 255 255 255 ]; + mask:((ImageMask new) + width:11; + height:11; + bits:(ByteArray fromPackedString:'@@@@@@@@A@@NG1<@O8@@@@@@@@@@AP@a'); + yourself); + yourself + ] ! browseActionImage + "This resource specification was automatically generated by the ImageEditor of ST/X." - "Do not manually edit this!! If it is corrupted, the ImageEditor may not be able to read the specification." - " self browseActionImage inspect ImageEditor openOnClass:self andSelector:#browseActionImage - Icon flushCachedIcons - " - - - - ^Icon - constantNamed:'UIPainter class browseActionImage' - ifAbsentPut:[(Depth8Image new) width: 11; height: 12; photometric:(#palette); bitsPerSample:(#[8]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' + Icon flushCachedIcons" + + ^ Icon constantNamed:'UIPainter class browseActionImage' + ifAbsentPut:[ + (Depth8Image new) + width:11; + height:12; + photometric:(#palette); + bitsPerSample:(#[ 8 ]); + samplesPerPixel:(1); + bits:(ByteArray + fromPackedString:' R@@@RT%RST1LTD9H@D%IT%MRSD1PS$!!RT$5RUEILT%INT%UVT%YWU%IVUUIHT%!!YV%-ZVU!!RWD!!MT%Y[@E-VT%5\RD1RU%,@V5YRWU1HT%!!YV%-ZVU!!RWEIU -U%IVU5YRU%URZ%IR@EITT ART&,@@@@@T%MR@@@@@@@@@@@@T @@@@@@') ; colorMapFromArray:#[255 248 248 63 144 224 64 152 232 79 160 232 64 152 224 64 144 224 63 136 224 48 128 216 48 120 216 47 112 216 47 112 208 32 104 208 32 96 208 31 88 200 16 88 200 16 80 200 15 72 192 15 64 192 0 64 192 0 56 184 0 56 176 0 48 160 143 200 248 128 200 248 127 192 248 112 184 248 111 176 248 96 168 248 95 160 248 80 152 248 79 144 248 64 128 248 63 120 248 48 112 248 32 104 248 31 96 248 16 88 248 15 80 248 0 72 248 0 64 240 0 48 168 112 176 248 111 168 248 96 160 248 95 152 248 80 144 248 79 136 248 63 128 248 48 120 248 47 112 248 15 72 248 0 48 176 95 168 232 191 224 248 191 216 248 176 208 248 175 208 248 175 200 248 160 200 248 160 192 248 159 192 248 159 184 248 144 184 248 144 176 248 143 168 248 128 168 248 128 160 248 127 160 248 127 152 240 31 72 176 111 168 232 127 160 216 207 216 240 240 240 248 240 232 240 63 88 176 239 232 240 240 240 240 48 88 176 96 168 224 224 224 232 96 160 224 240 144 24 255 248 48 255 248 96 255 248 24 240 208 24 255 248 152 255 248 88 255 248 136 255 248 176 255 248 200 48 80 176 223 216 224 96 152 224 96 152 216 95 152 216 48 120 208 80 144 208 80 136 208 79 128 200 79 120 200 79 120 192 64 112 192 64 104 184 63 104 184 63 96 184 15 56 160]; mask:((Depth1Image new) width: 11; height: 12; photometric:(#blackIs0); bitsPerSample:(#[1]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'A@@N@F;@?>A?0G>@O8A?0O? [,@N@@P@') ; yourself); yourself] +U%IVU5YRU%URZ%IR@EITT ART&,@@@@@T%MR@@@@@@@@@@@@T @@@@@@'); + colorMapFromArray:#[ 255 248 248 63 144 224 64 152 232 79 160 232 64 152 224 64 144 224 63 136 224 48 128 216 48 120 216 47 112 216 47 112 208 32 104 208 32 96 208 31 88 200 16 88 200 16 80 200 15 72 192 15 64 192 0 64 192 0 56 184 0 56 176 0 48 160 143 200 248 128 200 248 127 192 248 112 184 248 111 176 248 96 168 248 95 160 248 80 152 248 79 144 248 64 128 248 63 120 248 48 112 248 32 104 248 31 96 248 16 88 248 15 80 248 0 72 248 0 64 240 0 48 168 112 176 248 111 168 248 96 160 248 95 152 248 80 144 248 79 136 248 63 128 248 48 120 248 47 112 248 15 72 248 0 48 176 95 168 232 191 224 248 191 216 248 176 208 248 175 208 248 175 200 248 160 200 248 160 192 248 159 192 248 159 184 248 144 184 248 144 176 248 143 168 248 128 168 248 128 160 248 127 160 248 127 152 240 31 72 176 111 168 232 127 160 216 207 216 240 240 240 248 240 232 240 63 88 176 239 232 240 240 240 240 48 88 176 96 168 224 224 224 232 96 160 224 240 144 24 255 248 48 255 248 96 255 248 24 240 208 24 255 248 152 255 248 88 255 248 136 255 248 176 255 248 200 48 80 176 223 216 224 96 152 224 96 152 216 95 152 216 48 120 208 80 144 208 80 136 208 79 128 200 79 120 200 79 120 192 64 112 192 64 104 184 63 104 184 63 96 184 15 56 160 ]; + mask:((ImageMask new) + width:11; + height:12; + bits:(ByteArray fromPackedString:'A@@N@F;@?>A?0G>@O8A?0O? [,@N@@P@'); + yourself); + yourself + ] ! defaultIcon