-
-
Notifications
You must be signed in to change notification settings - Fork 449
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add an indicator in the title bar if Streamer Mode is active #4410
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clang-tidy made some suggestions
Button is always there on startup no matter what option, toggling to enabled or disabled and then back to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Light mode on Windows (so just c-v-paste light mode handling from linux/macos portion) also missing, otherwise looks good and works as expected.
Would like to explore having a slight color on the icon, red/purple or something to bring more attention to it, but I would be happy to do that in a separate PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clang-tidy made some suggestions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Functionality now works as I would expect it to 👍
just need the light-mode changes as pajlada stated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small things, otherwise looks good & works as expected 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A small thing I noticed with a fresh install with no settings changed it only updates if you have a twitch channel added. |
8thony:
A small thing I noticed with a fresh install with no settings changed it only updates if you have a twitch channel added.
That's just how streamermode works, if something checks streamer mode c2 might recheck the process list. Streamer mode has a cooldown of 10 seconds between checks and caches the result.
I tried to make this PR somewhat disconnected from this behaviour so it could be changed later.
|
…re/streamer_mode_indicator
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clang-tidy made some suggestions
@@ -195,6 +195,11 @@ void SettingsDialog::filterElements(const QString &text) | |||
} | |||
} | |||
|
|||
void SettingsDialog::setElementFilter(const QString &query) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warning: method 'setElementFilter' can be made const [readability-make-member-function-const]
void SettingsDialog::setElementFilter(const QString &query) | |
void SettingsDialog::setElementFilter(const QString &query) const |
src/widgets/dialogs/SettingsDialog.hpp:60:
- void setElementFilter(const QString &query);
+ void setElementFilter(const QString &query) const;
Pull request checklist:
CHANGELOG.md
was updated, if applicableDescription
Closes #4215.
Simply adds an icon into the Notebook bar or main window titlebar when streamer mode is enabled. Clicking said icon opens settings with
Streamer Mode
already in the search bar. Icon was made into dark/light variants and rendered into png by me :)