summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2023-01-12 23:53:22 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2023-01-12 23:53:22 +0100
commitaff6ee3844d0d7a89629bba2086194aa60195cbf (patch)
tree612f0810d8b5422e3fbbf8c82267e713221c8fe9 /src
parentThere was always supposed to be a failed state for events (diff)
downloadnheko-aff6ee3844d0d7a89629bba2086194aa60195cbf.tar.xz
Remove dead code
Diffstat (limited to 'src')
-rw-r--r--src/ui/ThemeManager.cpp40
-rw-r--r--src/ui/ThemeManager.h32
2 files changed, 0 insertions, 72 deletions
diff --git a/src/ui/ThemeManager.cpp b/src/ui/ThemeManager.cpp
deleted file mode 100644
index fb044968..00000000
--- a/src/ui/ThemeManager.cpp
+++ /dev/null
@@ -1,40 +0,0 @@
-// SPDX-FileCopyrightText: 2021 Nheko Contributors
-// SPDX-FileCopyrightText: 2022 Nheko Contributors
-// SPDX-FileCopyrightText: 2023 Nheko Contributors
-//
-// SPDX-License-Identifier: GPL-3.0-or-later
-
-#include "ThemeManager.h"
-
-QColor
-ThemeManager::themeColor(const QString &key) const
-{
-    if (key == QLatin1String("Black"))
-        return QColor(0x17, 0x19, 0x19);
-
-    else if (key == QLatin1String("BrightWhite"))
-        return QColor(0xEB, 0xEB, 0xEB);
-    else if (key == QLatin1String("FadedWhite"))
-        return QColor(0xC9, 0xC9, 0xC9);
-    else if (key == QLatin1String("MediumWhite"))
-        return QColor(0x92, 0x92, 0x92);
-
-    else if (key == QLatin1String("BrightGreen"))
-        return QColor(0x1C, 0x31, 0x33);
-    else if (key == QLatin1String("DarkGreen"))
-        return QColor(0x57, 0x72, 0x75);
-    else if (key == QLatin1String("LightGreen"))
-        return QColor(0x46, 0xA4, 0x51);
-
-    else if (key == QLatin1String("Gray"))
-        return QColor(0x5D, 0x65, 0x65);
-    else if (key == QLatin1String("Red"))
-        return QColor(0xE2, 0x28, 0x26);
-    else if (key == QLatin1String("Blue"))
-        return QColor(0x81, 0xB3, 0xA9);
-
-    else if (key == QLatin1String("Transparent"))
-        return QColor(0, 0, 0, 0);
-
-    return (QColor(0, 0, 0, 0));
-}
diff --git a/src/ui/ThemeManager.h b/src/ui/ThemeManager.h
deleted file mode 100644
index a5f93468..00000000
--- a/src/ui/ThemeManager.h
+++ /dev/null
@@ -1,32 +0,0 @@
-// SPDX-FileCopyrightText: 2021 Nheko Contributors
-// SPDX-FileCopyrightText: 2022 Nheko Contributors
-// SPDX-FileCopyrightText: 2023 Nheko Contributors
-//
-// SPDX-License-Identifier: GPL-3.0-or-later
-
-#pragma once
-
-#include <QCommonStyle>
-
-class ThemeManager final : public QCommonStyle
-{
-    Q_OBJECT
-
-public:
-    inline static ThemeManager &instance();
-
-    QColor themeColor(const QString &key) const;
-
-private:
-    ThemeManager() {}
-
-    ThemeManager(ThemeManager const &);
-    void operator=(ThemeManager const &);
-};
-
-inline ThemeManager &
-ThemeManager::instance()
-{
-    static ThemeManager instance;
-    return instance;
-}