Sane pseudo random colors; was: PieChart widget
Jaroslaw Staniek
js at iidea.pl
Thu Sep 20 13:30:55 BST 2007
Rafael Fernández López said the following, On 2007-09-20 07:07:
> I am currently developing a chart widget:
>
> http://media.ereslibre.es/2007/09/pieChartWithKeys.png
>
> The code can be found at:
>
> http://media.ereslibre.es/2007/09/PieChart.tar.gz
Great
> I am also planning to do that if none QColor was given, a random one
> is picked up from the palette.
BTW, regerding your screnshot, I am bit tired having all these colors Qt::red,
Qt::green, Qt::blue colors reminding me the MS DOS' CGA era. How about
defining the sequence of colors(in kdelibs?), probably based on KDE 4's
official palette. Such a sequence then can be used by default in KDE apps in
charts?
KOffice's color styles could default to this color set for charts as well.
MSO 2000 cs MSO 2k7 colors:
http://officeblogs.net/excel/BLOG270606_001.PNG
Example in oo.org 2.x:
http://openoffice.blogs.com/openoffice/images/2007/06/14/writer5.jpg
--
regards / pozdrawiam, Jaroslaw Staniek
Sponsored by OpenOffice Polska (http://www.openoffice.com.pl/en) to work on
Kexi & KOffice: http://www.kexi.pl/en, http://www.koffice.org
KDE3 & KDE4 Libraries for MS Windows: http://kdelibs.com, http://www.kde.org
More information about the kde-core-devel
mailing list