From 65dea17cfde5d81abf3618b7b56aac604fc5c4d0 Mon Sep 17 00:00:00 2001 From: Uwe Rathmann Date: Sun, 15 Oct 2023 15:31:51 +0200 Subject: [PATCH] smooth sliding of menus --- skins/fluent2/QskFluent2Skin.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/skins/fluent2/QskFluent2Skin.cpp b/skins/fluent2/QskFluent2Skin.cpp index 1b90f732..7b56147c 100644 --- a/skins/fluent2/QskFluent2Skin.cpp +++ b/skins/fluent2/QskFluent2Skin.cpp @@ -735,6 +735,7 @@ void Editor::setupListViewColors( void Editor::setupMenuMetrics() { using Q = QskMenu; + using A = QskAspect; setPadding( Q::Panel, { 4, 6, 4, 6 } ); setBoxBorderMetrics( Q::Panel, 1 ); @@ -748,6 +749,14 @@ void Editor::setupMenuMetrics() setStrutSize( Q::Icon, 12, 12 ); setPadding( Q::Icon, { 8, 8, 0, 8 } ); + +#if 1 + setPosition( Q::Panel, 0 ); + setPosition( Q::Panel | QskPopup::Closed, 1 ); + + // copied from Mat3 - what are the correct values for Fluent2 ??? + setAnimation( Q::Panel | A::Metric, 150 ); +#endif } void Editor::setupMenuColors(