mirror of
https://github.com/MultiMC/MultiMC5.git
synced 2024-12-27 12:15:26 +00:00
ceb5fc6d75
This prevents some ugly colors to show up on macOS in most cases. It still looks ugly right after you switch to the it though.
28 lines
577 B
C++
28 lines
577 B
C++
#pragma once
|
|
#include <QString>
|
|
#include <QPalette>
|
|
|
|
class QStyle;
|
|
|
|
class ITheme
|
|
{
|
|
public:
|
|
virtual ~ITheme() {}
|
|
virtual void apply(bool initial);
|
|
virtual QString id() = 0;
|
|
virtual QString name() = 0;
|
|
virtual bool hasStyleSheet() = 0;
|
|
virtual QString appStyleSheet() = 0;
|
|
virtual QString qtTheme() = 0;
|
|
virtual bool hasColorScheme() = 0;
|
|
virtual QPalette colorScheme() = 0;
|
|
virtual QColor fadeColor() = 0;
|
|
virtual double fadeAmount() = 0;
|
|
virtual QStringList searchPaths()
|
|
{
|
|
return {};
|
|
}
|
|
|
|
static QPalette fadeInactive(QPalette in, qreal bias, QColor color);
|
|
};
|