diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2022-10-01 23:57:02 +0200 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2022-10-01 23:57:44 +0200 |
commit | 09babc91d257b2500a6e97ebbfbd21193a8cb8db (patch) | |
tree | ba3daf41f9826f6c913309fe0d07fa3c19ff4f42 /src/ui/Theme.cpp | |
parent | Reduce windows ci warnings (diff) | |
download | nheko-09babc91d257b2500a6e97ebbfbd21193a8cb8db.tar.xz |
Green is not Svg::green
fixes #1203
Diffstat (limited to 'src/ui/Theme.cpp')
-rw-r--r-- | src/ui/Theme.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/ui/Theme.cpp b/src/ui/Theme.cpp index 4af882e2..02450230 100644 --- a/src/ui/Theme.cpp +++ b/src/ui/Theme.cpp @@ -69,22 +69,22 @@ Theme::Theme(QStringView theme) sidebarBackground_ = QColor(0x23, 0x36, 0x49); alternateButton_ = QColor(0xcc, 0xcc, 0xcc); red_ = QColor(0xa8, 0x23, 0x53); - green_ = QColor(Qt::GlobalColor::green); + green_ = QColor(QColorConstants::Svg::green); orange_ = QColor(0xfc, 0xbe, 0x05); error_ = QColor(0xdd, 0x3d, 0x3d); } else if (theme == u"dark") { sidebarBackground_ = QColor(0x2d, 0x31, 0x39); alternateButton_ = QColor(0x41, 0x4A, 0x59); red_ = QColor(0xa8, 0x23, 0x53); - green_ = QColor(Qt::GlobalColor::green); + green_ = QColor(QColorConstants::Svg::green); orange_ = QColor(0xfc, 0xc5, 0x3a); error_ = QColor(0xdd, 0x3d, 0x3d); } else { sidebarBackground_ = p.window().color(); alternateButton_ = p.dark().color(); - red_ = QColor(Qt::GlobalColor::red); - green_ = QColor(Qt::GlobalColor::green); - orange_ = QColor(0xff, 0xa5, 0x00); // SVG orange + red_ = QColor(QColorConstants::Svg::red); + green_ = QColor(QColorConstants::Svg::green); + orange_ = QColor(QColorConstants::Svg::orange); // SVG orange error_ = QColor(0xdd, 0x3d, 0x3d); } } |