Attracted by virtual constructs

June 4, 2012

Which background to use for text style previews?

Filed under: Calligra,KDE — by frinring @ 8:27 pm

So I thought I am smart and made a patch to have the text style selector in the text shape configuration of Calligra always with a white background.
Because in the text style selector the names of all styles are rendered as a preview, incl. the color. Which is nice, but is flawed with dark UI color schemes, as typically text styles have dark colors, so the name is hardly seen. And as the preview in the style manager is already done on a white background, and the sheet of a new blank document is white… well, I thought it is smart to just fix the text style selectors to always have a white background.

Just… I already saw it before because one of the testing documents had a, exactly, white text style, as that was for a colored header. And since then there is more and more of that kind jumping into my eyes… e.g. here in Calligra Stage:

Sigh…

What could be done about this?
The initial idea was to always use the background of the currently selected shape/page. But what if that is a gradient, then use the color under the cursor? That could result in an ever changing UI, not sure that is preferred. And would not work for the style manager, where one background color has to work for all text styles, both in the listview as in the big preview area.
Faking a transparent background, the usual way with a check pattern? That looks ugly, no?

About these ads

3 Comments »

  1. Not sure it’s possible, but can’t you read the background style as a variable and then simply set the text to be the backround’s inverted colour? Or else, determine how light/dark it is, and its on the darker s9de make the text white, and if it’s lighter make the text black.

    Comment by StephanG — June 5, 2012 @ 4:37 am |Reply

  2. @StephanG: No because the style has specified the text should be white. What you are talking about is auto textcolor, which is different and already works.

    Comment by C.Boemann — June 5, 2012 @ 3:06 pm |Reply

  3. A solution is to change the background to a contrasting color for just that one style. Say if the text is too light draw it on a gray background. (I think black would be too strong contrast to the other white backgrounds)

    Comment by C.Boemann — June 5, 2012 @ 3:31 pm |Reply


RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

The Toni Theme Blog at WordPress.com.

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: