Add an indicator in the title bar if Streamer Mode is active (#4410)

This commit is contained in:
Mm2PL
2023-05-27 10:38:25 +00:00
committed by GitHub
parent 1bc423d9c4
commit c6c884df70
17 changed files with 163 additions and 2 deletions
+5
View File
@@ -31,6 +31,7 @@ public:
protected:
void closeEvent(QCloseEvent *event) override;
bool event(QEvent *event) override;
void themeChangedEvent() override;
private:
void addCustomTitlebarButtons();
@@ -51,6 +52,10 @@ private:
pajlada::Signals::SignalHolder signalHolder_;
std::vector<boost::signals2::scoped_connection> bSignals_;
// this is only used on Windows and only on the main window, for the one used otherwise, see SplitNotebook in Notebook.hpp
TitleBarButton *streamerModeTitlebarIcon_ = nullptr;
void updateStreamerModeIcon();
friend class Notebook;
};