iistaskpanelscheme.cpp
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008 #include "iistaskpanelscheme.h"
00009
00010 iisTaskPanelScheme* iisTaskPanelScheme::myDefaultScheme = 0;
00011
00012 iisTaskPanelScheme::iisTaskPanelScheme(QObject *parent)
00013 : QObject(parent)
00014 {
00015 QLinearGradient panelBackgroundGrd(0,0, 0,300);
00016 panelBackgroundGrd.setColorAt(0, 0x006181);
00017 panelBackgroundGrd.setColorAt(1, 0x00A99D);
00018 panelBackground = panelBackgroundGrd;
00019
00020 QLinearGradient headerBackgroundGrd(0,0, 0,30);
00021 headerBackgroundGrd.setColorAt(0, 0xFAFDFD);
00022 headerBackgroundGrd.setColorAt(0.3, 0xC8EAE9);
00023 headerBackgroundGrd.setColorAt(0.31, 0x79A8A6);
00024 headerBackgroundGrd.setColorAt(1, 0x85DEA9);
00025 headerBackground = headerBackgroundGrd;
00026
00027 headerLabelScheme.text = QColor(0x00736A);
00028 headerLabelScheme.textOver = QColor(0x044F49);
00029 headerLabelScheme.textOff = QColor(0x4F4F4F);
00030 headerLabelScheme.focusPen = QPen(QColor(0x006181), 1, Qt::DotLine);
00031 QFont f;
00032 f.setWeight(QFont::Bold);
00033 headerLabelScheme.font = f;
00034 headerLabelScheme.iconSize = 24;
00035 headerLabelScheme.underlineOver = false;
00036 headerLabelScheme.cursorOver = true;
00037
00038 headerSize = 28;
00039
00040 headerAnimation = true;
00041
00042 headerBorder = QColor(0x79A8A6);
00043
00044 Q_INIT_RESOURCE ( iisTaskPanel ) ;
00045
00046 headerButtonFold = QPixmap(":/Resources/headerButtonFold.png");
00047 headerButtonFoldOver = QPixmap(":/Resources/headerButtonFoldOver.png");
00048 headerButtonUnfold = QPixmap(":/Resources/headerButtonUnfold.png");
00049 headerButtonUnfoldOver = QPixmap(":/Resources/headerButtonUnfoldOver.png");
00050 headerButtonSize = QSize(18,18);
00051
00052
00053 QLinearGradient groupBackgroundGrd(0,0, 300,0);
00054 groupBackgroundGrd.setColorAt(1, 0xB8FFD9);
00055 groupBackgroundGrd.setColorAt(0, 0xFAFDFD);
00056 groupBackground = groupBackgroundGrd;
00057
00058 groupBorder = QColor(0x79A8A6);
00059
00060 groupFoldSteps = 20; groupFoldDelay = 15;
00061
00062 taskLabelScheme.text = QColor(0x00736A);
00063 taskLabelScheme.textOver = QColor(0x044F49);
00064 taskLabelScheme.textOff = QColor(0xb0b0b0);
00065 taskLabelScheme.focusPen = QPen(QColor(0x006181), 1, Qt::DotLine);
00066 taskLabelScheme.iconSize = 16;
00067 taskLabelScheme.underlineOver = true;
00068 taskLabelScheme.cursorOver = true;
00069 }
00070
00071 iisTaskPanelScheme::~iisTaskPanelScheme()
00072 {
00073
00074 }
00075
00076 iisTaskPanelScheme* iisTaskPanelScheme::defaultScheme()
00077 {
00078 if (!myDefaultScheme)
00079 myDefaultScheme = new iisTaskPanelScheme();
00080
00081 return myDefaultScheme;
00082 }
00083