19 #ifndef CODEEDITORSTYLE_H
20 #define CODEEDITORSTYLE_H
55 QColor CtrlFGColor, QColor CtrlBGColor,
59 QColor LnNumFGColor, QColor LnNumBGColor,
61 QColor KeyWdFGColor, QFont::Weight KeyWdWeight,
63 QColor ClsFGColor, QFont::Weight ClsWeight,
65 QColor QteFGColor, QFont::Weight QteWeight,
67 QColor CmtFGColor, QFont::Weight CmtWeight,
69 QColor SymbFGColor, QColor SymbBGColor,
71 QFont::Weight SymbWeight);
105 Qt::black, QColor(240, 240, 240),
106 QColor(255, 220, 220),
107 Qt::black, QColor(240, 240, 240),
108 Qt::darkBlue, QFont::Bold,
109 Qt::darkMagenta, QFont::Bold,
110 Qt::darkGreen, QFont::Normal,
111 Qt::gray, QFont::Normal,
112 Qt::red, QColor(220, 220, 255), QFont::Normal
118 QColor(218, 218, 218), QColor(16, 16, 32),
120 QColor(43, 145, 175), QColor(16, 16, 32),
121 QColor(0, 204, 204), QFont::Bold,
122 QColor(218, 0, 218), QFont::Bold,
123 QColor(0, 204, 0), QFont::Normal,
124 QColor(180, 180, 180), QFont::Normal,
125 QColor(218, 32, 32), QColor(32, 32, 108), QFont::Normal
static void saveSettings(QSettings *settings, const CodeEditorStyle &theStyle)
QFont::Weight classWeight
QFont::Weight commentWeight
static CodeEditorStyle getSystemTheme()
QFont::Weight quoteWeight
static CodeEditorStyle loadSettings(QSettings *settings)
QFont::Weight symbolWeight
bool isSystemTheme() const
bool operator==(const CodeEditorStyle &rhs) const
bool operator!=(const CodeEditorStyle &rhs) const
CodeEditorStyle(QColor CtrlFGColor, QColor CtrlBGColor, QColor HiLiBGColor, QColor LnNumFGColor, QColor LnNumBGColor, QColor KeyWdFGColor, QFont::Weight KeyWdWeight, QColor ClsFGColor, QFont::Weight ClsWeight, QColor QteFGColor, QFont::Weight QteWeight, QColor CmtFGColor, QFont::Weight CmtWeight, QColor SymbFGColor, QColor SymbBGColor, QFont::Weight SymbWeight)
QFont::Weight keywordWeight
const QString SETTINGS_STYLE_SYMBOLFG("StyleSymbolFG")
const QString SETTINGS_STYLE_GROUP("EditorStyle")
const QString SETTINGS_STYLE_QUOTEFG("StyleQuoteFG")
const QString SETTINGS_STYLE_KEYWORDFG("StyleKeywordFG")
const QString SETTINGS_STYLE_TYPE_CUSTOM("Custom")
const QString SETTINGS_STYLE_LINENUMFG("StyleLineNumFG")
const QString SETTINGS_STYLE_QUOTEWT("StyleQuoteWeight")
const QString SETTINGS_STYLE_KEYWORDWT("StyleKeywordWeight")
const QString SETTINGS_STYLE_TYPE("StyleType")
const QString SETTINGS_STYLE_TYPE_DARK("DefaultDark")
const QString SETTINGS_STYLE_SYMBOLWT("StyleSymbolWeight")
const QString SETTINGS_STYLE_HILIFG("StyleHighlightFG")
const QString SETTINGS_STYLE_LINENUMBG("StyleLineNumBG")
const QString SETTINGS_STYLE_TYPE_LIGHT("DefaultLight")
const QString SETTINGS_STYLE_SYMBOLBG("StyleSymbolBG")
static const CodeEditorStyle defaultStyleLight(Qt::black, QColor(240, 240, 240), QColor(255, 220, 220), Qt::black, QColor(240, 240, 240), Qt::darkBlue, QFont::Bold, Qt::darkMagenta, QFont::Bold, Qt::darkGreen, QFont::Normal, Qt::gray, QFont::Normal, Qt::red, QColor(220, 220, 255), QFont::Normal)
const QString SETTINGS_STYLE_WIDGETBG("StyleWidgetBG")
const QString SETTINGS_STYLE_CLASSWT("StyleClassWeight")
const QString SETTINGS_STYLE_CLASSFG("StyleClassFG")
const QString SETTINGS_STYLE_COMMENTFG("StyleCommentFG")
const QString SETTINGS_STYLE_WIDGETFG("StyleWidgetFG")
const QString SETTINGS_STYLE_COMMENTWT("StyleCommentWeight")
static const CodeEditorStyle defaultStyleDark(QColor(218, 218, 218), QColor(16, 16, 32), QColor(64, 64, 64), QColor(43, 145, 175), QColor(16, 16, 32), QColor(0, 204, 204), QFont::Bold, QColor(218, 0, 218), QFont::Bold, QColor(0, 204, 0), QFont::Normal, QColor(180, 180, 180), QFont::Normal, QColor(218, 32, 32), QColor(32, 32, 108), QFont::Normal)