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

            Bug ID: 509380
           Summary: Hover border of ContextualHelpButton can be smaller
                    than icon
    Classification: Frameworks and Libraries
           Product: frameworks-kirigami
      Version First unspecified
       Reported In:
          Platform: openSUSE
                OS: Linux
            Status: REPORTED
          Severity: minor
          Priority: NOR
         Component: general
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
  Target Milestone: Not decided

Created attachment 184889
  --> https://bugs.kde.org/attachment.cgi?id=184889&action=edit
Border touching the icon

SUMMARY

It is possible for the border that becomes visible when hovering over the
button to have a smaller height than the icon itself. The example I found of
that is in the kscreen KCM when a single refresh rate is available (see
attached screenshot).

STEPS TO REPRODUCE
1. Open `kcmshell6 kscreen` or through system settings "Display Configuration"
2. Hover over the Refresh rate ContextualHelpButton (given only one is
available)

OBSERVED RESULT
The icon is larger than the button border.

EXPECTED RESULT
The button border should completely enclose the icon. One could also make a
case for it to be square.

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20250909
KDE Plasma Version: 6.4.4
KDE Frameworks Version: 6.17.0
Qt Version: 6.9.2

ADDITIONAL INFORMATION

The relevant line seems to be
https://invent.kde.org/frameworks/kirigami/-/blob/master/src/controls/ContextualHelpButton.qml#L73.
A naive approach would be to remove that line, but I'm not sure of the
implications of that. It could be that this would throw layout of parent
objects off. For example if there are multiple lines, some with and some
without helper buttons, the line height should still be constant. If this
should taken care of by the framework users instead, I will be happy to open a
MR at kscreen instead. Another option would be to shrink the icon if the parent
is too small.

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

Reply via email to