mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-01 02:10:47 +03:00
19b526d453
The color scheme of nheko obeys the default color theme of Qt (i.e. the system theme). It uses a Qt stylesheet to accomplish this, which means replacing the color theme with a custom theme would only be a matter of writing a new style sheet and loading it into the app.
21 lines
437 B
C++
21 lines
437 B
C++
#pragma once
|
|
|
|
#include <QEvent>
|
|
#include <QPainter>
|
|
#include <QStyleOption>
|
|
#include <QWidget>
|
|
|
|
class OverlayWidget : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit OverlayWidget(QWidget *parent = nullptr);
|
|
|
|
protected:
|
|
bool event(QEvent *event) override;
|
|
bool eventFilter(QObject *obj, QEvent *event) override;
|
|
|
|
QRect overlayGeometry() const;
|
|
void paintEvent(QPaintEvent *event) override;
|
|
};
|