define accent color in theme

This commit is contained in:
Rasmus Karlsson 2020-10-11 14:36:28 +02:00
parent 2232c6d925
commit dfe1af248c
4 changed files with 8 additions and 5 deletions

View file

@ -38,7 +38,7 @@ chatterino--PageHeader {
chatterino--TitleLabel { chatterino--TitleLabel {
font-family: "Segoe UI light"; font-family: "Segoe UI light";
font-size: 24px; font-size: 24px;
color: #4FC3F7; color: #4FC3F7; /* Should this be same as accent color? */
} }
chatterino--DescriptionLabel { chatterino--DescriptionLabel {

View file

@ -103,7 +103,7 @@ void AB_THEME_CLASS::actuallyUpdate(double hue, double multiplier)
this->tabs.selected = { this->tabs.selected = {
QColor("#000"), QColor("#000"),
{QColor("#b4d7ff"), QColor("#b4d7ff"), QColor("#b4d7ff")}, {QColor("#b4d7ff"), QColor("#b4d7ff"), QColor("#b4d7ff")},
{QColor("#00aeef"), QColor("#00aeef"), QColor("#00aeef")}}; {this->accent, this->accent, this->accent}};
} }
else else
{ {
@ -123,7 +123,7 @@ void AB_THEME_CLASS::actuallyUpdate(double hue, double multiplier)
this->tabs.selected = { this->tabs.selected = {
QColor("#fff"), QColor("#fff"),
{QColor("#555555"), QColor("#555555"), QColor("#555555")}, {QColor("#555555"), QColor("#555555"), QColor("#555555")},
{QColor("#00aeef"), QColor("#00aeef"), QColor("#00aeef")}}; {this->accent, this->accent, this->accent}};
} }
// scrollbar // scrollbar

View file

@ -34,6 +34,8 @@ public:
} line; } line;
}; };
QColor accent;
/// WINDOW /// WINDOW
struct { struct {
QColor background; QColor background;

View file

@ -206,8 +206,9 @@ void SettingsDialog::selectTab(SettingsDialogTab *tab, bool byUser)
} }
tab->setSelected(true); tab->setSelected(true);
tab->setStyleSheet("background: #222; color: #4FC3F7;" tab->setStyleSheet(
"/*border: 1px solid #555; border-right: none;*/"); "background: #222; color: #4FC3F7;" // Should this be same as accent color?
"/*border: 1px solid #555; border-right: none;*/");
this->selectedTab_ = tab; this->selectedTab_ = tab;
if (byUser) if (byUser)
{ {