Skip to content
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

Further placeholder text fixes #2264

Merged
merged 3 commits into from Dec 13, 2020
Merged

Conversation

zneix
Copy link
Collaborator

@zneix zneix commented Dec 7, 2020

Pull request checklist:

  • CHANGELOG.md was updated, if applicable

Description

  • Added an event listener for channelChanged signal to ensure placeholder is preserved when changing channels.
  • Moved entire function related to applying placeholder's color to SplitInput.cpp to ensure it will be applied in all cases, preventing random edge cases listed in Placeholder text inconsistencies #2253.
  • While I was at it, in SplitInput.cpp I also changed QPalette::Foreground enum to QPalette::WindowText due to deprecation warning since Qt 5.13.

Closes #2253

zneix and others added 3 commits December 7, 2020 16:15
Added an event listener for `channelChanged` signal.
Moved entire function related to applying placeholder's color to SplitInput.cpp to ensure it will be applied in all cases, preventing random edge cases listed in Chatterino#2253. In that file, I also changed `QPalette::Foreground` enum to `QPalette::WindowText` due to deprecation warning in Qt 5.13: https://doc.qt.io/qt-5/qpalette.html#ColorRole-enum
Copy link
Member

@pajlada pajlada left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good and works for me! 👍

@pajlada pajlada merged commit ddcc854 into Chatterino:master Dec 13, 2020
@zneix zneix deleted the fix/placeholder-fixes branch December 13, 2020 11:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Placeholder text inconsistencies
2 participants