Ubuntu

Software center have hardcoded colors and shows white font on white bg

Reported by Alexander Kabakow on 2011-12-04
196
This bug affects 45 people
Affects Status Importance Assigned to Milestone
Ubuntu Software Center
Undecided
Unassigned
software-center (Ubuntu)
Medium
Unassigned

Bug Description

When using dark theme

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: software-center 5.0.2ubuntu0.1
ProcVersionSignature: Ubuntu 3.0.0-13.22-generic 3.0.6
Uname: Linux 3.0.0-13-generic i686
ApportVersion: 1.23-0ubuntu4
Architecture: i386
Date: Sun Dec 4 15:28:41 2011
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release i386 (20101007)
PackageArchitecture: all
ProcEnviron:
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/zsh
SourcePackage: software-center
UpgradeStatus: Upgraded to oneiric on 2011-10-16 (48 days ago)

Alexander Kabakow (alexzak) wrote :
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in software-center (Ubuntu):
status: New → Confirmed
Rob Hamm (drhamm) wrote :

I've been poking about, but there are a lot of files associated with the software center, so if one of you could tell me which of those to edit, I'll happy do it manually for now. I tried editing /usr/share/software-center/ui/gtk3/css/softwarecenter.css, but a;as, while I could change some colors there (specifically, the ones on the first screen), still couldn't change the colors for font or background for the application information screen.

Rob Hamm (drhamm) wrote :

(Sorry--I missed the obvious. Went back and changed the line @define-color super-light-aubergine #F4F1F3 to @define-color super-light-aubergine #6d6d6d; and it's working fine for now.)

joshg (joshg) wrote :

It's the same with freshly installed 12.04

Changed in software-center (Ubuntu):
importance: Undecided → Medium
Changed in software-center:
status: New → Confirmed
HEXcube (hexcube) wrote :

I can't believe that this bug started in Oneiric(maybe even before that) and it's still not fixed after Raring (as per https://bugs.launchpad.net/ubuntu/+source/software-center/+bug/913933 ). Ubuntu Software Center is a core feature of Ubuntu distribution and yet such a bug which affects its usability is left unnoticed! Why can't it just follow the system theme instead of using hardcoded colors.
Some Dark Theme developers have found workarounds involving replacing the softwarecenter.css with custom versions. One such fix by Delorean Dark theme developer is attached here. It is optimised for Dark Themes and works fine with light ones too. I don't know if it works perfectly with light themes,but it does try to use current theme colors instead of hardcoded ones,atleast in some places.

HEXcube (hexcube) wrote :

I forgot to mention : i'm using Ubuntu 12.04 LTS with Ubuntu Software Center ver 5.2.9 . The fix is from hellokitten/killhelllokitty(https://launchpad.net/~killhellokitty)'s Delorean Dark 1.55 theme(PPA- https://launchpad.net/~killhellokitty/+archive/themes.ppa)

The attachment "Delorean Dark's Software Center fix for Dark Themes" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
tags: removed: patch
Matthew Paul Thomas (mpt) wrote :

(I reported the incorrect patch detection as bug 1246487.)

HEXcube, thank you for that research. I think the next steps towards getting this bug fixed are:

A. Replace USC's normal CSS file with killhellokitty's CSS file, to see if it works in both of the standard Ubuntu themes.
B. If it does work, produce a diff of one file against the other so we can see exactly what is changed.

HEXcube (hexcube) wrote :

I tried both default themes Radiance and Ambience in Ubuntu 12.04 to check if they work well with killhellokitty's CSS file. Everything seems to be okay, except for selected items' text color in list view. Both background and foreground are light colors. this is because the CSS file was designed for dark themes.
ideally software center should show dark text with light background and light text on dark themes. killhellokitty's css theme is better than the default one, but needs a little more work to be the ideal theme.

Dudytz (dudytz) on 2013-11-15
tags: added: saucy
Auroral Xylon (avlabs314) wrote :

Hi, I'm currently developing/designing a Gtk theme which sets a white background for GtkTreeView:selected. In the softwarecenter.css file, the background is hard coded to be selection_bg_color, meaning that the red (which is the selection bg color defined in my theme) text is invisible on the red selection background, as shown in the screenshot. Would it not be more reasonable to let the themer set the value for this?

Matthew Paul Thomas (mpt) wrote :

Auroral, what happens if that CSS rule is removed? Is the selected row still an appropriate color? If so, perhaps you could attach a patch that removes it. Thanks!

Tommy Miller (tommydrum) wrote :

To all you people who want a temporary fix.. This is what I did (look inside the file and first 2 lines..) I changed the colors of the background that way. It /kindof/ fixes it.. but at least you can read most things.. just not when the windows is off focus.

File is at /usr/share/software-center/ui/gtk3/css/softwarecenter.css

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Related questions