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

Split input doesn't scale down when Chatterino scales down #5380

Open
4 tasks done
pajlada opened this issue May 5, 2024 · 3 comments
Open
4 tasks done

Split input doesn't scale down when Chatterino scales down #5380

pajlada opened this issue May 5, 2024 · 3 comments
Labels
bug Something isn't working as intended, or works in a confusing/unintuitive way for the user

Comments

@pajlada
Copy link
Member

pajlada commented May 5, 2024

Checklist

  • I'm reporting a problem with Chatterino
  • I've verified that I'm running the most recent nightly build or stable release
  • I've looked for my problem on the wiki
  • I've searched the issues and pull requests for similar looking reports

Describe your issue

When zooming in & out of Chatterino, the height of the split input will change with it. Sometimes when doing this, the height will not change. Might be related to having multiple tabs open.
I don't have clear reproduction steps

Screenshots

No response

OS and Chatterino Version

Chatterino 2.5.1 DEBUG (commit 6f489b7 modified) built with Qt 6.7.0 Running on Arch Linux, kernel: 6.8.9-arch1-1

@pajlada pajlada added the bug Something isn't working as intended, or works in a confusing/unintuitive way for the user label May 5, 2024
@Mm2PL
Copy link
Collaborator

Mm2PL commented May 5, 2024

Might happen when changing DPI (xrandr --output $YOUROUTPUT --dpi 500). I think I've seen this happen when messing with DPI settings

@4rneee
Copy link
Contributor

4rneee commented Feb 16, 2025

For me the placeholder text in the split input (i.e. "Send message as xyz...") does not scale when zooming in/out until switching to a different tab.
This might be a different issue and I can create one if you would like me to.

After taking a look at the code I am not sure if this might be a issue with QT as you set the font for the textEdit widget:

this->ui_.textEdit->setFont(
app->getFonts()->getFont(FontStyle::ChatMedium, scale));

which works for the plain text but not the placeholder.

@pajlada
Copy link
Member Author

pajlada commented Feb 16, 2025

For me the placeholder text in the split input (i.e. "Send message as xyz...") does not scale when zooming in/out until switching to a different tab. This might be a different issue and I can create one if you would like me to.

After taking a look at the code I am not sure if this might be a issue with QT as you set the font for the textEdit widget:

chatterino2/src/widgets/splits/SplitInput.cpp

Lines 236 to 237 in bdd903b
this->ui_.textEdit->setFont(
app->getFonts()->getFont(FontStyle::ChatMedium, scale));

which works for the plain text but not the placeholder.

It's a semi-related issue, but it's not quite the same as my issue. Nerixyz has fixed this in #5960

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working as intended, or works in a confusing/unintuitive way for the user
Projects
None yet
Development

No branches or pull requests

3 participants