Summary: | Musescore GUI issue on KDE | ||
---|---|---|---|
Product: | [Frameworks and Libraries] frameworks-qqc2-desktop-style | Reporter: | hamelg |
Component: | general | Assignee: | Marco Martin <notmart> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | arojas, groot, kde, kde, noahadvs |
Priority: | NOR | ||
Version: | 5.73.0 | ||
Target Milestone: | --- | ||
Platform: | Arch Linux | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/frameworks/qqc2-desktop-style/commit/1f0f210ad1d8286ba7a8254664489f922cbba0c3 | Version Fixed In: | 5.74 |
Sentry Crash Report: | |||
Attachments: |
The panel Palette doesn't display
The Palette panel displays fine Shell script to demonstrate XDG_CURRENT_DESKTOP effect stdout/stderr of ok run stdout/stderr of a bad run |
Description
hamelg
2020-08-29 15:39:34 UTC
Created attachment 131262 [details]
The Palette panel displays fine
Related musescore upstream: https://musescore.org/en/node/307238 Related FreeBSD packaging: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=247466 From my (FreeBSD, but otherwise same versions of KDE and Qt and Musescore as in this BR) system I had to unset all three of these variables to get Musescore to display the palette again. But .. I ran musescore three times with different environments: - ( unset KDE_FULL_SESSION ; unset XDG_CURRENT_DESKTOP ; export DESKTOP_SESSION=/usr/local/share/xsessions/plasma ; musescore ) > /tmp/ms-env0.log 2>&1 - ( unset KDE_FULL_SESSION ; unset XDG_CURRENT_DESKTOP ; export DESKTOP_SESSION=/usr/local/share/xsessions/plasmawubblsdfg ; musescore ) > /tmp/ms-env1.log 2>&1 - ( unset KDE_FULL_SESSION ; export XDG_CURRENT_DESKTOP=KDE ; export DESKTOP_SESSION=/usr/local/share/xsessions/plasmawubblsdfg ; musescore ) > /tmp/ms-env2.log 2>&1 - ( unset KDE_FULL_SESSION ; export XDG_CURRENT_DESKTOP=KDE ; unset DESKTOP_SESSION ; musescore ) > /tmp/ms-env2.log 2>&1 In each run of Musescore, I only typed alt-f4 alt-f4 to close it. Only the **second** from this list shows the palette menu. (Note that DESKTOP_SESSION is set to something invalid there; unsetting the variable does the same, but having XDG point to KDE is also bad for the palette). I'll attach invocations and log files shortly. Created attachment 131301 [details]
Shell script to demonstrate XDG_CURRENT_DESKTOP effect
Run musescore twice with good and bad environment.
Created attachment 131302 [details]
stdout/stderr of ok run
In this run, Musescore shows the palette menu
Created attachment 131303 [details]
stdout/stderr of a bad run
In this run, the palette menu is not visible
The **primary** difference I see is the cyclic import in Kirigami units (line 1) That same error appears in every Kirigami based application, which otherwise work fine. This one looks more relevant: qrc:/qml/palettes/PaletteTree.qml:178: Error: Cannot assign to non-existent property "color" (In reply to Antonio Rojas from comment #7) > That same error appears in every Kirigami based application, which otherwise > work fine. This one looks more relevant: > > qrc:/qml/palettes/PaletteTree.qml:178: Error: Cannot assign to non-existent > property "color" Removing the offending line from PaletteTree.qml doesn't make any difference, so that's also not the problem. Another workaround is `QT_QUICK_CONTROLS_STYLE=Material`, to pick another style for QQC. The cause it org.kde.desktop style ToolSeparator. It fills the entire height and pushes the list out of view. https://invent.kde.org/frameworks/qqc2-desktop-style/-/merge_requests/26 resolves this -- it's a problem with the KDE style -- and should be in KDE Frameworks 5.74 next week (or the week after). Git commit 1f0f210ad1d8286ba7a8254664489f922cbba0c3 by Noah Davis. Committed on 31/08/2020 at 12:46. Pushed by ndavis into branch 'master'. Don't use parent height/width for implicit ToolSeparator sizing I realized this was pretty much all wrong, so I rewrote the whole thing with a structure inspired by the Default QQC2 theme. Padding property was removed since it was originally added to give the separator back the padding that it lost by having the same height as the parent. M +8 -12 org.kde.desktop/ToolSeparator.qml https://invent.kde.org/frameworks/qqc2-desktop-style/commit/1f0f210ad1d8286ba7a8254664489f922cbba0c3 |