notes icon indicating copy to clipboard operation
notes copied to clipboard

UpdaterWindow doesn't have proper Window decorations on Linux

Open DesiOtaku opened this issue 2 years ago • 7 comments

On KDE, the regular window shows a proper border + shadow so it works fine on a white background. However, UpdaterWindow ignores the KDE Qt style and blends in to the white background.

Also the "Close" and "Update" button isn't consistent with the rest of the Qt style (it looks more like Android rather than KDE).

DesiOtaku avatar Sep 17 '22 12:09 DesiOtaku

image

DesiOtaku avatar Sep 17 '22 12:09 DesiOtaku

Thanks for reporting, we'll look into that.

nuttyartist avatar Sep 17 '22 12:09 nuttyartist

Fixed by #469.

guihkx avatar Feb 13 '23 07:02 guihkx

Fixed by #469.

@guihkx Really? Did you test it? We're still setting Qt::CustomizeWindowHint on the updater window so it will not have a native decoration. It might be nice to follow the same configuration as for the main window.

Also the "Close" and "Update" button isn't consistent with the rest of the Qt style (it looks more like Android rather than KDE).

@DesiOtaku Note that their style has been intentionally customized. There is currently no option for using the native widget style.

bjorn avatar Feb 13 '23 08:02 bjorn

@bjorn It "works", but I just noticed that's maybe because frameless mode seems to be ignored altogether on Wayland now... :/

KDE Plasma

image

GNOME

Screenshot from 2023-02-13 09-15-28

guihkx avatar Feb 13 '23 09:02 guihkx

It "works", but I just noticed that's maybe because frameless mode seems to be ignored altogether on Wayland now... :/

On the KDE screenshot I don't see the updater window (though I guess it doesn't matter, since it would indeed just have the native frame, judging by the main window).

Does that mean we need to put back the Qt::FramelessWindowHint on Linux? I can't personally test on Wayland due to using proprietary NVidia drivers.

bjorn avatar Feb 13 '23 09:02 bjorn

On the KDE screenshot I don't see the update window.

Dang it, I uploaded the wrong one. But it matches GNOME's.

Regarding frameless mode not working on Wayland, could that mean we need to put back the Qt::FramelessWindowHint on Linux?

Precisely. After I re-added that to mainwindow.cpp and updaterwindow.cpp, native decorations in frameless mode are now gone, at least:

Screenshot from 2023-02-13 09-40-33

But this bug still persists. I'll re-open it and send a pull request once after I finish some chores (but feel free to take over, if you want).

guihkx avatar Feb 13 '23 09:02 guihkx