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

View file

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