aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/tracing
diff options
context:
space:
mode:
authorAlessandro Portale <[email protected]>2025-04-10 12:17:54 +0200
committerAlessandro Portale <[email protected]>2025-04-11 08:21:23 +0000
commit18931af16f3ef7f0a9f877bd0aa6d232eb095067 (patch)
tree5676cc4c53d82f7c11042d3568725306835a9130 /src/libs/tracing
parent0bfc0db8d2f1ea739eaa02cb281c6d2f84f57a53 (diff)
Tracing: Re-introduce padding for ImageToolButton
Padding is needed for a consistent appearance when using the "Relaxed" toolbar style. The first approach for padding used PaddedRectangle which is unsupported. Padding was therefore removed. This change re-introduces padding by using QtQuick.Controls.*inset Amends: 52d994e2abe198504f1777c0e9afbacc4e6d28b2 Change-Id: I9b6666fc4c17d6fda18d2fb27803b419643d0c64 Reviewed-by: Ulf Hermann <[email protected]>
Diffstat (limited to 'src/libs/tracing')
-rw-r--r--src/libs/tracing/qml/ImageToolButton.qml5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libs/tracing/qml/ImageToolButton.qml b/src/libs/tracing/qml/ImageToolButton.qml
index ebbc8e28907..25b3f862e8c 100644
--- a/src/libs/tracing/qml/ImageToolButton.qml
+++ b/src/libs/tracing/qml/ImageToolButton.qml
@@ -22,6 +22,11 @@ ToolButton {
smooth: false
}
+ topInset: Theme.compactToolbar() ? 0 : 3
+ rightInset: topInset
+ bottomInset: topInset
+ leftInset: topInset
+
background: Rectangle {
radius: Theme.compactToolbar() ? 0 : 5
color: (parent.checked || parent.pressed)