From kde-core-devel Thu Sep 20 12:30:55 2007 From: Jaroslaw Staniek Date: Thu, 20 Sep 2007 12:30:55 +0000 To: kde-core-devel Subject: Sane pseudo random colors; was: PieChart widget Message-Id: <46F267FF.4020506 () iidea ! pl> X-MARC-Message: https://marc.info/?l=kde-core-devel&m=119029143128188 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