Tools__Inspector2.st
branchjv
changeset 16571 cf319f2e56d0
parent 16009 925ef9446aef
parent 16505 79d84bdff1d8
child 16572 ab23beb4bba6
equal deleted inserted replaced
16570:dc5e958a20dc 16571:cf319f2e56d0
  1077         lbl := resources string:eachItem label.
  1077         lbl := resources string:eachItem label.
  1078         (eachItem choiceValue ? #default) ~~ #default ifTrue:[
  1078         (eachItem choiceValue ? #default) ~~ #default ifTrue:[
  1079             clr := Color perform:eachItem choiceValue.
  1079             clr := Color perform:eachItem choiceValue.
  1080             labelWithColor := lbl asText backgroundColorizeAllWith:clr.
  1080             labelWithColor := lbl asText backgroundColorizeAllWith:clr.
  1081             clr brightness < 0.5 ifTrue:[
  1081             clr brightness < 0.5 ifTrue:[
  1082                 labelWithColor := labelWithColor colorizeAllWith:Color white.
  1082                 labelWithColor := labelWithColor withColor:Color white.
  1083             ].
  1083             ].
  1084             eachItem label:labelWithColor.
  1084             eachItem label:labelWithColor.
  1085         ].
  1085         ].
  1086     ].
  1086     ].
  1087     ^ m
  1087     ^ m