[squeak-dev] The Inbox: Collections-bf.496.mcz

Bert Freudenberg bert at freudenbergs.de
Thu May 23 16:53:56 UTC 2013


On 2013-05-23, at 18:20, Chris Muller <asqueaker at gmail.com> wrote:

> Bert, could you please explain why you want this?

Cmd-0 is supposed to make something into plain text. Colored text is not plain text.

>  I hate this because
> it means now there is no way to un-Italicize, un-bold, or
> un-underline, colored text and leave it colored.  These types of text
> decoration two are totally independent of each other, now they're
> commingled?
> 
> Also, what if I'm doing base white-on-black, you want to hard-code us
> to black text so we end up with black-on-black and unable to even see
> it.

Cmd-0 does not mean black text, it means use the default foreground color, by removing the color from the text.

> It's already so easy to switch text color to black:   Command+6 + Enter.

Sure, but I don't normally want to set the text to black. I want to make it plain.

> Isn't that easy enough without making it impossible for folks writing
> documents in Squeak that contain colored text?

Don't use Cmd-0 if you want to use text containing different colors. It's *supposed* to make the whole selection look uniform.

For a differently-colored background plain text should be displayed in color possibly different from black, I agree. But that color should *not* be encoded in the text itself, it should be a property of its display container, the one providing the background color.

- Bert -

> 
> On Wed, May 22, 2013 at 4:27 PM,  <commits at source.squeak.org> wrote:
>> A new version of Collections was added to project The Inbox:
>> http://source.squeak.org/inbox/Collections-bf.496.mcz
>> 
>> ==================== Summary ====================
>> 
>> Name: Collections-bf.496
>> Author: bf
>> Time: 6 December 2012, 7:15:56.137 pm
>> UUID: 1d1e83a0-08fb-427a-ae24-3fcd3029b8f2
>> Ancestors: Collections-ul.495
>> 
>> Cmd-0 should remove text colors.
>> 
>> =============== Diff against Collections-ul.495 ===============
>> 
>> Item was added:
>> + ----- Method: TextColor>>dominatedByCmd0 (in category 'scanning') -----
>> + dominatedByCmd0
>> +       "Cmd-0 should remove text color"
>> +       ^ true!
>> 
>> 



More information about the Squeak-dev mailing list