From 425f9d41cd337133d5677744eef937a8a2a61212 Mon Sep 17 00:00:00 2001 From: "Felix (xq) Queißner" Date: Sun, 7 Jun 2020 10:46:23 +0200 Subject: Adds support for light/dark widget theme, adds experiemental support for http style sheets. --- src/mainwindow.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/mainwindow.hpp') diff --git a/src/mainwindow.hpp b/src/mainwindow.hpp index e207128..7984549 100644 --- a/src/mainwindow.hpp +++ b/src/mainwindow.hpp @@ -21,7 +21,7 @@ class MainWindow : public QMainWindow Q_OBJECT public: - MainWindow(QWidget *parent = nullptr); + MainWindow(QApplication * app, QWidget *parent = nullptr); ~MainWindow(); BrowserTab * addEmptyTab(bool focus_new, bool load_default); @@ -67,7 +67,11 @@ private slots: void on_actionAbout_Qt_triggered(); +private: + void reloadTheme(); + public: + QApplication * application; QSettings settings; GeminiStyle current_style; ProtocolSetup protocols; -- cgit v1.2.3