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

Cut-off Modeline on HighDPI settings #1388

Closed
nagy opened this issue May 10, 2021 · 5 comments
Closed

Cut-off Modeline on HighDPI settings #1388

nagy opened this issue May 10, 2021 · 5 comments

Comments

@nagy
Copy link

nagy commented May 10, 2021

Describe the bug
Cut-off Modeline on HighDPI settings

Precise recipe to reproduce the issue
On a HighDPI display and on a recent nixos-unstable channel I get a cut-off modeline when I run this:

nix-shell -p nyxt --run nyxt

In case you dont have a HighDPI settings enabled, I think you can switch it on for only one call with

GDK_DPI_SCALE=2 nyxt

nyxt

Information

  • OS name+version: NixOS unstable

  • Graphics card and driver:

  • Desktop environment / Window manager name+version:

  • How you installed Nyxt (Guix pack, package manager, build from source): nix-shell -p nyxt --run nyxt

  • Information from command copy-system-information:

    If you can't run copy-system-information, please provide the following:

    • Nyxt version (from =M-x nyxt-version= or =nyxt --version=): Nyxt version 2
    • Lisp implementation/version (if built from source):
    • Kernel name+version:
    • WebKitGTK+ | QtWebEngine version:

Output when started from a shell

@jmercouris
Copy link
Member

Thank you for your interest in Nyxt! I think you'll have to update your configuration to change the height of the status area.

Something along the lines of:

(define-configuration status-buffer
  ((height 40)))

@nagy
Copy link
Author

nagy commented May 10, 2021

Thank you for your interest in Nyxt!

And thank you for this interesting project!

Your suggested config worked much better:

nyxt2

Would it make sense to adjust the status-buffer scale depending on the DPI scale per default, so that new users dont have to configure anything?

@jmercouris
Copy link
Member

That sounds too hard to do now, but we can try it in the future :-)

@tulth
Copy link

tulth commented Nov 6, 2021

I have a similar issue; i am using .Xresources:

Xft.dpi: 192

Some screen shots of cutoff text in various areas:
modeline:
image

top of github issues bar is sized strangely:
image

It is almost as if widget sizes are computed to the value before scaling is applied

@aadcg
Copy link
Member

aadcg commented Nov 8, 2023

Please consider setting GDK_SCALE over GDK_DPI_SCALE. The manual section on this topic has been updated on commit 113c8a5.

#3170 may mitigate this issue. Note that these changes are available on the master branch and won't be part of the 3-series releases.

Please re-open if the issue persists.

@aadcg aadcg closed this as completed Nov 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

4 participants