https://bugs.kde.org/show_bug.cgi?id=515463

            Bug ID: 515463
           Summary: ToolBarPageHeader vertically offset when using Qt
                    Styles
    Classification: Frameworks and Libraries
           Product: frameworks-kirigami
      Version First 6.21.0
       Reported In:
          Platform: Compiled Sources
                OS: All
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
  Target Milestone: Not decided

Created attachment 189188
  --> https://bugs.kde.org/attachment.cgi?id=189188&action=edit
Mouse hovering over offset button

SUMMARY
ToolBarPageHeader's contents are vertically offset when using Qt's Material,
Universal, and FluentWinUI3 style. The extent is such that the clickable area
of buttons extends past the bottom of the toolbar's background when using the
Material and Universal styles.

STEPS TO REPRODUCE
1. Use any app that has toolbar actions set on a page or makes any use of the
toolbar. I found the bug while working on QPrompt Teleprompter (which makes use
of the Material style), but Kirigami Gallery should do the trick.
2. Have the app start using one of the aforementioned Qt styles. This can be
done in many ways, a simple one is to set `QQuickStyle::setStyle("Material");`
early in main(); change Material for the name of the style you wish to test.

OBSERVED RESULT
The entire contents of the app's toolbar are offset vertically, with the
clickable area of buttons extending past the bottom of the toolbar's background
when the Material or Universal style is used.

EXPECTED RESULT
Toolbar contents should be vertically aligned to the center.

SOFTWARE/OS VERSIONS
Windows: Windows 11 24H2
macOS: macOS Tahoe
Linux/KDE Plasma: KDE neon User Edition
KDE Plasma Version: 6.5.5
KDE Frameworks Version: 6.22.0
Qt Version: 6.10.1

ADDITIONAL INFORMATION
- Bug appears to be caused by AbstractApplication.qml #102 (topPadding) and
#110 (bottomPadding), last modified in 404d31f0b56024dd98d9ab98aecf14b052c8ccbd
- Bug may be related to recent padding changes introduced to achieve consistent
toolbar heights with QWidget applications. See:
https://invent.kde.org/frameworks/qqc2-desktop-style/-/merge_requests/492

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to