Moved color definitions to AppleColors.h

This commit is contained in:
Mark Long 2016-10-30 18:31:11 -05:00
parent b7b409e044
commit ff77276b63
3 changed files with 26 additions and 18 deletions

View File

@ -115,7 +115,8 @@ HEADERS += \
src/binaryfile/MemoryUsageMap.h \
src/ui/diskexplorer/DiskExplorer.h \
src/ui/diskexplorer/DiskExplorerMapWidget.h \
src/applesoftfile/ApplesoftRetokenizer.h
src/applesoftfile/ApplesoftRetokenizer.h \
src/util/AppleColors.h
FORMS += \
src/ui/catalogwidget.ui \

View File

@ -2,6 +2,7 @@
#define HIRESSCREENWIDGET_H
#include "binaryfile.h"
#include "AppleColors.h"
#include <QWidget>
#include <QPixmap>
@ -14,23 +15,6 @@
#include <QVector>
#include <QDebug>
static const QColor blackColor = QColor(0,0,0);
static const QColor grayColor = QColor(156,156,156);
static const QColor gray2Color = QColor(156,156,156);
static const QColor whiteColor = QColor(255,255,255);
static const QColor darkBlueColor = QColor(96,78,189);
static const QColor lightBlueColor = QColor(208,195,255);
static const QColor purpleColor = QColor(255,68,253);
static const QColor redColor = QColor(227,30,96);
static const QColor pinkColor = QColor(255,160,208);
static const QColor orangeColor = QColor(255,106,60);
static const QColor brownColor = QColor(96,114,3);
static const QColor yellowColor = QColor(208,221,141);
static const QColor greenColor = QColor(20,245,60);
static const QColor darkGreenColor = QColor(0,163,96);
static const QColor aquaColor = QColor(114,255,208);
static const QColor blueColor = QColor(20,207,253);
class HiresScreenWidget : public QWidget
{
Q_OBJECT

23
src/util/AppleColors.h Normal file
View File

@ -0,0 +1,23 @@
#ifndef APPLECOLORS_H
#define APPLECOLORS_H
#include <QColor>
static const QColor blackColor = QColor(0x00,0x00,0x00);
static const QColor redColor = QColor(0xe3,0x1e,0x60);
static const QColor darkBlueColor = QColor(0x60,0x4e,0xbd);
static const QColor purpleColor = QColor(0xff,0x44,0xfd);
static const QColor darkGreenColor = QColor(0x00,0xa3,0x60);
static const QColor grayColor = QColor(0x9c,0x9c,0x9c);
static const QColor blueColor = QColor(0x14,0xcf,0xfd);
static const QColor lightBlueColor = QColor(0xd0,0xc3,0xff);
static const QColor brownColor = QColor(0x60,0x72,0x03);
static const QColor orangeColor = QColor(0xff,0x6a,0x3c);
static const QColor gray2Color = QColor(0x9c,0x9c,0x9c);
static const QColor pinkColor = QColor(0xff,0xa0,0xd0);
static const QColor greenColor = QColor(0x14,0xf5,0x3c);
static const QColor yellowColor = QColor(0xd0,0xdd,0x8d);
static const QColor aquaColor = QColor(0x72,0xff,0xd0);
static const QColor whiteColor = QColor(0xff,0xff,0xff);
#endif // APPLECOLORS_H