mirror of
https://github.com/YACReader/yacreader
synced 2026-03-02 02:43:04 -05:00
Make help/about dialog themable
Just the hardcoded colors used, the rest of the dialog will be themed by Qt.
This commit is contained in:
@ -3,12 +3,17 @@
|
||||
|
||||
#include <QDialog>
|
||||
|
||||
#include "themable.h"
|
||||
|
||||
class QTabWidget;
|
||||
class QTextBrowser;
|
||||
|
||||
class HelpAboutDialog : public QDialog
|
||||
class HelpAboutDialog : public QDialog, protected Themable
|
||||
{
|
||||
Q_OBJECT
|
||||
protected:
|
||||
void applyTheme(const Theme &theme) override;
|
||||
|
||||
public:
|
||||
HelpAboutDialog(QWidget *parent = 0);
|
||||
HelpAboutDialog(const QString &pathAbout, const QString &pathHelp, QWidget *parent = 0);
|
||||
@ -23,6 +28,10 @@ private:
|
||||
QTextBrowser *systemInfoText;
|
||||
QString fileToString(const QString &path);
|
||||
void loadSystemInfo();
|
||||
void applyHtmlTheme();
|
||||
|
||||
QString aboutHtmlContent;
|
||||
QString helpHtmlContent;
|
||||
};
|
||||
|
||||
#endif // HELP_ABOUT_DIALOG_H
|
||||
|
||||
Reference in New Issue
Block a user