Bug 185527 - Plasma news widget uses wrong text color
Summary: Plasma news widget uses wrong text color
Status: RESOLVED FIXED
Alias: None
Product: plasma4
Classification: Plasma
Component: general (show other bugs)
Version: unspecified
Platform: Fedora RPMs Unspecified
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-25 14:14 UTC by Eelko Berkenpies
Modified: 2009-02-26 15:24 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eelko Berkenpies 2009-02-25 14:14:41 UTC
Version:            (using KDE 4.2.0)
Installed from:    Fedora RPMs

The news widget displays white letters on a white background on the alternating row in KDE 4.2.0.

These are the lines from a freshly generated news.css (/home/USER/.kde/share/apps/plasma_applet_news/news.css):

.line-0 { font-size:10pt; color:#ffffff; background-color:#000000; }
.line-1 { font-size:10pt; color:#ffffff; background-color:#ffffff; }

The expected behavior is obviously the opposite of .line-0:

.line-0 { font-size:10pt; color:#ffffff; background-color:#000000; }
.line-1 { font-size:10pt; color:#000000; background-color:#ffffff; }
Comment 1 Eelko Berkenpies 2009-02-25 14:38:00 UTC
Silly me, news.css is linked to the plasma theme I was using (Glassified - http://www.kde-look.org/content/show.php/Glassified?content=81388).

It can be grabbed from the "New themes" option at the appearance setting screen, which I did. 

I'll report this elsewhere instead.
Comment 2 Eelko Berkenpies 2009-02-25 16:32:28 UTC
Sorry for the inconvenience but the Glassified theme doesn't seem to have a custom news.css attached. Instead *some* default values are being used. 

Investigating this further, asking #plasma on irc.freenode.net has learned me that "default/stylesheets/news.css" should be used when a custom stylesheet for a desktop theme cannot be found. 

Although, for me "stylesheets/default/news.css" ( /usr/share/kde4/apps/desktoptheme/default/stylesheets/ ) contains:

.line-0 { font-size:10pt; color:#fcfcfc; background-color:#0f0f0f; }
.line-1 { font-size:10pt; color:#fcfcfc; background-color:#2f2f2f; }

Which is still different from what I reported. Therefor I'm reopening the bug.

PS. there's also a "default" folder in "/home/USER/.kde/share/apps/desktoptheme/" but that one only contains an empty "wallpapers" folder.
Comment 3 Petri Damstén 2009-02-26 15:24:25 UTC
SVN commit 932386 by pdamsten:

Better alternate background color for generated css.
BUG: 185527

 M  +5 -3      news.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=932386