[squeak-dev] The Inbox: ToolBuilder-Morphic-cmm.285.mcz
Chris Muller
asqueaker at gmail.com
Thu Jan 13 06:19:48 UTC 2022
Hi Marcel, hi all,
As a user-friendly UI feature, I really like the field help in the
backgrounds of text fields, however I continue to find its intensity
distracting. It seems like it should just be a "whisper" of a hint, very
light in the background. The way it is, it sometimes looks as if it were
actually the entered value.
I tried to set the color to a lower alpha value to accomplish this, but it
didn't seem to have any effect at all on the color (until I reached < 0.01,
at which point it disappeared entirely).
If text cannot be rendered there with a lower opacity, it could at least
match the #comment color of the selected theme. It essentially serves the
same purpose as a comment. In the Community Dark theme, that color is
quite subtle, so it works.
I like the feature, I really don't want to turn off the preference, I just
wish it weren't so prominent. Would love your hear your thoughts.
- Chris
On Thu, Jan 13, 2022 at 12:06 AM <commits at source.squeak.org> wrote:
> Chris Muller uploaded a new version of ToolBuilder-Morphic to project The
> Inbox:
> http://source.squeak.org/inbox/ToolBuilder-Morphic-cmm.285.mcz
>
> ==================== Summary ====================
>
> Name: ToolBuilder-Morphic-cmm.285
> Author: cmm
> Time: 13 January 2022, 12:06:18.53413 am
> UUID: fdfc0020-4e12-4f5c-a2bc-f632794ce0c3
> Ancestors: ToolBuilder-Morphic-mt.284
>
> Render field help text in the color used for comments.
>
> =============== Diff against ToolBuilder-Morphic-mt.284 ===============
>
> Item was changed:
> ----- Method: PluggableTextMorphPlus>>drawBalloonTextOn: (in category
> 'drawing') -----
> drawBalloonTextOn: aCanvas
> "Show balloon text in the text morph if it has no contents."
> textMorph contents ifNotEmpty: [ ^ self ].
> ([ self balloonText ]
> on: Error
> do: [ : err | 'error in balloonText' ]) ifNotNil:
> [ : text | aCanvas
> drawString: text
> in: (self innerBounds insetBy: (5 @ 2 corner: 0 @
> 0))
> font: (self userInterfaceTheme balloonTextFont
> ifNil: [TextStyle defaultFont])
> + color: ((self userInterfaceTheme get: #comment
> for: SHTextStylerST80) first ifNil: [Color gray darker]) ]!
> - color: (self userInterfaceTheme balloonTextColor
> ifNil: [Color gray: 0.7]) ]!
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20220113/60a92fa2/attachment.html>
More information about the Squeak-dev
mailing list
|