omited struct names in ThemeManager

This commit is contained in:
2018-01-02 02:21:38 +01:00
parent 3e5937011a
commit eb4ba30d9f
2 changed files with 12 additions and 12 deletions

View file

@ -31,28 +31,28 @@ public:
} backgrounds; } backgrounds;
}; };
struct Tabs { struct {
TabColors regular; TabColors regular;
TabColors selected; TabColors selected;
TabColors highlighted; TabColors highlighted;
TabColors newMessage; TabColors newMessage;
} tabs; } tabs;
struct Splits { struct {
QColor messageSeperator; QColor messageSeperator;
QColor background; QColor background;
QColor border; QColor border;
QColor borderFocused; QColor borderFocused;
QColor dropPreview; QColor dropPreview;
struct Header { struct {
QColor border; QColor border;
QColor background; QColor background;
QColor text; QColor text;
// int margin; // int margin;
} header; } header;
struct Input { struct {
QColor border; QColor border;
QColor background; QColor background;
QColor selection; QColor selection;
@ -62,15 +62,15 @@ public:
} input; } input;
} splits; } splits;
struct Messages { struct {
struct TextColors { struct {
QColor regular; QColor regular;
QColor caret; QColor caret;
QColor link; QColor link;
QColor system; QColor system;
} textColors; } textColors;
struct Backgrounds { struct {
QColor regular; QColor regular;
QColor highlighted; QColor highlighted;
// QColor resub; // QColor resub;
@ -83,7 +83,7 @@ public:
QColor selection; QColor selection;
} messages; } messages;
struct Scrollbars { struct {
QColor background; QColor background;
QColor thumb; QColor thumb;
QColor thumbSelected; QColor thumbSelected;
@ -91,7 +91,7 @@ public:
// QColor highlights[3]; // QColor highlights[3];
} scrollbars; } scrollbars;
struct Tooltip { struct {
QColor text; QColor text;
QColor background; QColor background;
} tooltip; } tooltip;

View file

@ -183,9 +183,9 @@ void NotebookTab::paintEvent(QPaintEvent *)
// fill the tab background // fill the tab background
painter.fillRect(rect(), painter.fillRect(rect(),
windowFocused this->mouseOver ? colors.backgrounds.hover
? (this->mouseOver ? colors.backgrounds.hover : colors.backgrounds.regular) : (windowFocused ? colors.backgrounds.regular
: colors.backgrounds.unfocused); : colors.backgrounds.unfocused));
// set the pen color // set the pen color
painter.setPen(colors.text); painter.setPen(colors.text);