After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 478471 - "mount usage details" uses hardcoded colours
"mount usage details" uses hardcoded colours
Status: RESOLVED FIXED
Product: nautilus
Classification: Core
Component: File Properties Dialog
unspecified
Other Linux
: Normal enhancement
: ---
Assigned To: Nautilus Maintainers
Nautilus Maintainers
Depends on:
Blocks:
 
 
Reported: 2007-09-19 22:27 UTC by Christian Persch
Modified: 2008-02-25 14:24 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement


Attachments
Proposed patch (10.33 KB, patch)
2007-10-24 15:47 UTC, Baris Cicek
none Details | Review

Description Christian Persch 2007-09-19 22:27:47 UTC
+++ This bug was initially created as a clone of Bug #410658 +++

Bug 410658 added a nice pie chart showing the disk usage/free space. But the code hardcodes the colours; that's bad., esp. when considering a11y with high/low contrast/inverse themes. The colours need to be themeable (and if the theme doesn't set them, the colours should be derived from themed colours, so they blend in).
Comment 1 Benjamin Berg 2007-10-23 19:45:26 UTC
The best thing that can be done if one wants to change the colours would be to add style properties. However I am not convinced if modifying the colour is enough for the high contrast theme. I would expect a pitch black outline, and the "used" area not filled with a grey, but with a black/transparent pattern.
Comment 2 Baris Cicek 2007-10-24 15:47:02 UTC
Created attachment 97784 [details] [review]
Proposed patch

Proposed patch adds themeable colors chart_color_1 and chart_color_2 in order to used with pie_chart. I've also get the _gtk_color_shade codes from gtkstyle.c in order to get rid of stroke colors. Stroke colors are darker(@chart_color_1) and darker (@chart_color_1). If no color is defined in the theme, then fall back colors is used which is defined previously. 

chart_color_N can be used in future for GNOME generic chart colors, or can be replaced by whatever naming convention would be used.
Comment 3 Cosimo Cecchi 2008-02-25 00:21:09 UTC
Hi Baris and thanks for the patch. If you already haven't done so, can you please bring up the patch on the nautilus mailing list [1] so that it can get review from the maintainers? Thanks!

[1] nautilus-list@gnome.org
Comment 4 Alexander Larsson 2008-02-25 14:24:12 UTC
commited.