From 9fceaa2f64d0c723a0fd559be82f11e2f1a2c3cc Mon Sep 17 00:00:00 2001 From: Uwe Rathmann Date: Thu, 1 Feb 2024 15:33:08 +0100 Subject: [PATCH] shortening the strutsize width for buttons on header/footer ( a.k.a menubar buttons ) --- designsystems/fluent2/QskFluent2Skin.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/designsystems/fluent2/QskFluent2Skin.cpp b/designsystems/fluent2/QskFluent2Skin.cpp index 4ba40a5a..d1c8684c 100644 --- a/designsystems/fluent2/QskFluent2Skin.cpp +++ b/designsystems/fluent2/QskFluent2Skin.cpp @@ -943,9 +943,16 @@ void Editor::setupProgressRingColors( void Editor::setupPushButtonMetrics() { using Q = QskPushButton; + using A = QskAspect; using W = QskFluent2Skin; - setStrutSize( Q::Panel, { 120, 32 } ); + const qreal h = 32; + setStrutSize( Q::Panel, { 120, h } ); + + // 60: not covered by any spec, but 120 is too big for a menu bar + setStrutSize( Q::Panel | A::Header, { 60, h } ); + setStrutSize( Q::Panel | A::Footer, { 60, h } ); + setBoxShape( Q::Panel, 4 ); setBoxBorderMetrics( Q::Panel, 1 ); setBoxBorderMetrics( Q::Panel | W::Accent | Q::Disabled, 0 );