aboutsummaryrefslogtreecommitdiff
path: root/src/mainwindow.hpp
diff options
context:
space:
mode:
authorFelix (xq) Queißner <git@mq32.de>2020-06-07 10:46:23 +0200
committerFelix (xq) Queißner <git@mq32.de>2020-06-07 10:46:23 +0200
commit425f9d41cd337133d5677744eef937a8a2a61212 (patch)
tree6cd5c2603e1499b89aae4fe5e56c6e650cb2117e /src/mainwindow.hpp
parentec95bb371e54116a2627c162eac3357ec13f06ad (diff)
downloadkristall-425f9d41cd337133d5677744eef937a8a2a61212.tar.gz
Adds support for light/dark widget theme, adds experiemental support for http style sheets.
Diffstat (limited to 'src/mainwindow.hpp')
-rw-r--r--src/mainwindow.hpp6
1 files changed, 5 insertions, 1 deletions
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;