Tracing: Drop padding from ImageToolButton's background

It does not seem to make much of a difference and PaddedRectangle was
not supposed to be available from QtQuick.Controls.

Task-number: QTBUG-129390
Change-Id: I7fdcaaef27066cb61bbd3d8e3fef3643c5f4ffa7
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
Ulf Hermann
2024-09-26 16:40:17 +02:00
parent 6a8f3d82d2
commit 52d994e2ab

View File

@@ -22,8 +22,7 @@ ToolButton {
smooth: false
}
background: PaddedRectangle {
padding: Theme.compactToolbar() ? 0 : 3
background: Rectangle {
radius: Theme.compactToolbar() ? 0 : 5
color: (parent.checked || parent.pressed)
? Theme.color(Theme.FancyToolButtonSelectedColor)