#UI_ENHANCEMENT by cg draft
authorClaus Gittinger <cg@exept.de>
Mon, 09 Apr 2018 12:02:22 +0200
changeset 3553 31631af8baf9
parent 3552 2a1e3a914c9a
child 3554 01fa81669da2
#UI_ENHANCEMENT by cg class: ImageEditor comment/format in: #hasColormapAndSingleWritableColorSelectedHolder class: ImageEditor class changed: #colorMapMenu
ImageEditor.st
--- a/ImageEditor.st	Tue Mar 27 20:12:29 2018 +0200
+++ b/ImageEditor.st	Mon Apr 09 12:02:22 2018 +0200
@@ -1,3 +1,5 @@
+"{ Encoding: utf8 }"
+
 "
  COPYRIGHT (c) 1997-1998 by eXept Software AG
               All Rights Reserved
@@ -2783,19 +2785,19 @@
             translateLabel: true
           )
          (MenuItem
-            enabled: hasColormapAndSingleWritableColorSelectedHolder
+            enabled: hasColormapAndColorSelected
             label: 'Brighter'
             itemValue: makeSelectedColorBrighter
             translateLabel: true
           )
          (MenuItem
-            enabled: hasColormapAndSingleWritableColorSelectedHolder
+            enabled: hasColormapAndColorSelected
             label: 'Darker'
             itemValue: makeSelectedColorDarker
             translateLabel: true
           )
          (MenuItem
-            enabled: hasColormapAndSingleWritableColorSelectedHolder
+            enabled: hasColormapAndColorSelected
             label: 'Make Gray'
             itemValue: makeSelectedColorGray
             translateLabel: true
@@ -4878,7 +4880,8 @@
 !
 
 hasColormapAndSingleWritableColorSelectedHolder
-    ^ [ self hasColormapAndSingleColorSelected and:[self canChangeColorInColormap ]]
+    ^ [ self hasColormapAndSingleColorSelected 
+    and:[self canChangeColorInColormap ]]
 
     "Created: / 31-08-2017 / 18:42:46 / cg"
 !
@@ -5727,8 +5730,8 @@
         resourceSelector notNil ifTrue:[
             ^ resources 
                     string:(self modified 
-                            ifTrue:['Image (modified) from: %1  %2']
-                            ifFalse:['Image from: %1  %2'])
+                            ifTrue:['Image (modified) from: %1 » %2']
+                            ifFalse:['Image from: %1 » %2'])
                     with:resourceClass name
                     with:resourceSelector
         ].