Nheko-Reborn / nheko

Desktop client for Matrix using Qt and C++20.

Home Page:https://nheko-reborn.github.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

settings dialog wastes an enormous amount of screen space

foresto opened this issue · comments

Describe the bug

The settings dialog in v0.12.0 lays out its items with excessive empty space between them, such that small window sizes can only show 2-4 items at a time. This makes viewing or updating Nheko's configuration tedious.

Earlier versions were somewhat wasteful of space, but not nearly as much as in v0.12.0.

To Reproduce

  1. Adjust Nehko's window to a relatively small size, such as 580x700.
  2. Open the Settings panel.
  3. Scroll through the settings.

What happened?

Few items can be seen at once, and a lot of scrolling is required to get through them all.

Expected behavior

More space dedicated to settings, rather than wasted on empty areas.

Screenshots

Example with v0.12.0:

Screenshot_20240615_131329

It's not quite as bad in v0.11.3, which can show more settings at even smaller window sizes:

Screenshot_20240615_131330

Version

0.12.0

Operating system

Linux

Installation method

Local build

Qt version

org.kde.Sdk 6.6 flathub

C++ compiler

whatever the flatpak manifest uses

Desktop Environment

KDE Plasma 5.27.5 (debian)

Did you use profiles?

  • Profiles used?

Relevant log output

No response

Backtrace

No response

Hm, that is quite weird, I don't have that spacing... Can you show a screenshot of how it looks when you have Nheko in a wider window?

I slowly widened the window until the layout changed a bit:

a-bit-wider

Continuing to widen it after that yielded no layout change:

much-wider

In case it matters, I'm in an X11 session, and have the host system's KDE 5 desktop set to use application style: Breeze, Plasma style: Breeze Dark Flat. I don't know how this affects nheko running in a flatpak.

So for some reason your spacing between items is much larger already even with a wide window than it is on my system. No idea why yet though.

Is yours spaced more like my v0.11.3 screen shot?

How strange.

Are you using Freedesktop's KDE 6 runtime? (I am.)

I tried switching from X11 to Wayland, but it didn't make a difference.

This was a native build with and without KDE themes.

commented

Hm... The previous Nheko version seems unaffected by this problem, so I guess it could be something specific to Qt 6. I wonder if there's something wrong with the KDE 6 themes or Qt 6 styles in the Freedesktop (Flatpak) runtime.

I tested the other two installed styles, by running with -style Windows and -style Fusion, but neither of those made a difference.