#pragma once

#include <QObject>
#include <QPalette>

// ---------------------------------------------------------------------------
// ThemeManager – Schaltet zwischen Hell- und Dunkelmodus um.
// ---------------------------------------------------------------------------
class ThemeManager : public QObject
{
    Q_OBJECT

public:
    enum class Theme { Light, Dark };

    explicit ThemeManager(QObject *parent = nullptr);

    void  applyTheme(Theme theme);
    Theme currentTheme() const;

signals:
    void themeChanged(Theme theme);

private:
    static QPalette buildDarkPalette();
    static QPalette buildLightPalette();

    Theme m_currentTheme = Theme::Light;
};
