-
-
Notifications
You must be signed in to change notification settings - Fork 7.7k
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
UI: Upgrade stream key link into button #2145
Conversation
You will need to squash your commits and update them to follow the appropriate commit guildines (prefix and present tense). Please make sure you read the contributing doc fully before marking this part of the PR template. |
5125c60
to
2342242
Compare
@Fenrirthviti Sure thing. |
This PR seems to include unrelated changes in The commit message has some spelling and grammar mistakes. Please review the commit message and address these as needed. Please also make sure that you end files with a newline (see |
Will fix in the morning:
And planning to add .gitignore to the message to keep it for other VSCode
users unless there's a strong objection.
…On Thu, Oct 24, 2019 at 23:16 RytoEX ***@***.***> wrote:
This PR seems to include unrelated changes in .gitignore and
plugins/enc-amf. Please fix this so that the PR only contains changes
relevant to the PR's intent.
The commit message has some spelling and grammar mistakes. Please review
the commit message and address these as needed.
Please also make sure that you end files with a newline (see
UI/url-push-button.cpp and UI/url-push-button.hpp).
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#2145?email_source=notifications&email_token=AAMB7NFPGVKIXRS5LJEZI7LQQKFLRA5CNFSM4JE6YICKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECHJZKY#issuecomment-546217131>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAMB7NEX6UKVJRK77WFHSO3QQKFLRANCNFSM4JE6YICA>
.
|
That change should likely be its own PR then, instead of being mixed into this PR. |
2342242
to
a57d6fa
Compare
Updated:
|
Separate PR for .gitignore addition: #2147 |
@RytoEX So I did add the newline but the clang formatter removes it, then the CI rejects the files because of the newline addition like so:
I can't find a reference in contribution docs on proper EOF besides clang format which removes it. Is there a format check override that expected maybe? Otherwise I'll change this to not have newlines so the CI is appeased. Thanks |
a57d6fa
to
b62b9c2
Compare
@RytoEX removed newline to appease CI * clang-format to keep this unblocked. I'll circle back if the CI fails again |
UI/data/locale/en-US.ini
Outdated
@@ -162,6 +162,8 @@ Basic.AutoConfig.StreamPage.ConnectAccount="Connect Account (recommended)" | |||
Basic.AutoConfig.StreamPage.DisconnectAccount="Disconnect Account" | |||
Basic.AutoConfig.StreamPage.DisconnectAccount.Confirm.Title="Disconnect Account?" | |||
Basic.AutoConfig.StreamPage.DisconnectAccount.Confirm.Text="This change will apply immediately. Are you sure you want to disconnect your account?" | |||
Basic.AutoConfig.StreamPage.GetStreamKey="Get Stream Key" | |||
Basic.AutoConfig.StreamPage.GetStreamKey.ToolTip="Open in browser to fetch streamkey" |
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.
Maybe for consistency write it as "stream key".
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.
That line is no longer used b/c I decided it made more sense it to have the hover tooltip show the URL destination. I will remove in a moment
b62b9c2
to
41cceb6
Compare
On the whole I think this is a fine change. My only concern from a usability perspective is that the "Get Stream Key" button being on a different line from the actual Stream Key text box might be slightly more confusing to users, as I can see people not reading past the "Stream Key" box and wondering what they should do. Maybe it would be better if the button were moved to the right of the "Show" button, instead of on a different line? |
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.
Looks good, just needs that change to the stacked widget page, and probably dodgepong's suggestion. The layout you'd want to insert it in to is probably the streamKeyWidget
widget.
UI/forms/OBSBasicSettings.ui
Outdated
@@ -119,7 +119,7 @@ | |||
<item> | |||
<widget class="QStackedWidget" name="settingsPages"> | |||
<property name="currentIndex"> | |||
<number>0</number> | |||
<number>1</number> |
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.
This needs to be changed back to 0, otherwise the user will start on the "stream" page section when they enter settings. It's supposed to start on the "general" page normally. Don't worry, even I've done this before, it's just an issue with Qt designer more than anything. The page you last save it on becomes the default starting page.
(This applies for all stacked widgets by the way, so any stacked widget left on the wrong page has to be changed back to the original default. Just an annoying Qt designer issue.)
Looks good to me as well. Only point of feedback that can be addressed in a later update is that the URLs are currently hardcoded, which means if anything changes with those dashboard URLs on the stream service side we have no way of updating them without doing a full release. I would propose they would be right at home as a new field in services.json which we can already update remotely if needed. Not necessary for this PR, but wanted to make sure the thought was logged. |
I have no problem with this for now.
Oops will amend.
Agree. It was existing already but string matching always flags a code smell but decided it to be a change to make in a different PR. // Update in a few |
Most of the top streaming services now have a link in the stream key label. Upgrading this button to a button clarifies the assistance for the important step of setting up a stream. Creates a new type of button for URL opening simply which also automatically updates the tootip to the current URL. Includes addition of Twitter/Periscope URL to make this feature more complete.
41cceb6
to
3f6cf0e
Compare
Follow up to obsproject#2145: obsproject#2145 The wizard has a stream link URL as well, adding the button in the wizard to match. Additionally, fixing a few errors in the UI layout and spacing where items were not padded.
Follow up to obsproject#2145: obsproject#2145 The wizard has a stream link URL as well, adding the button in the wizard to match. Additionally, fixing a few errors in the UI layout and spacing where items were not padded.
Follow up to obsproject#2145: obsproject#2145 The wizard has a stream link URL as well, adding the button in the wizard to match. Additionally, fixing a few errors in the UI layout and spacing where items were not padded.
Follow up to obsproject#2145: obsproject#2145 The wizard has a stream link URL as well, adding the button in the wizard to match. Additionally, fixing a few errors in the UI layout and spacing where items were not padded.
Follow up to obsproject#2145: obsproject#2145 The wizard has a stream link URL as well, adding the button in the wizard to match. Additionally, fixing a few errors in the UI layout and spacing where items were not padded.
Follow up to obsproject#2145: obsproject#2145 The wizard has a stream link URL as well, adding the button in the wizard to match. Additionally, fixing a few errors in the UI layout and spacing where items were not padded.
Description
Shows button when link is available:
Hides button when link is not available:
Motivation and Context
The link in the stream key label is unclear.
Upgrading the link to a button increases awareness of this assistant to the important streaming step more clear.
Open to suggestion on button text but I found this was the clearest, short phrase.
How Has This Been Tested?
Types of changes
Checklist: