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:
luisangelsm
2026-01-25 10:25:00 +01:00
parent 07718e50db
commit 6b3fcc63d3
8 changed files with 94 additions and 6 deletions

View File

@ -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