broken QskTabButton padding fixed

This commit is contained in:
Uwe Rathmann 2023-07-03 16:56:19 +02:00
parent b00cfbdd66
commit 997926223f

View File

@ -780,7 +780,7 @@ void Editor::setupTabButton()
{
const auto aspect = Q::Panel | variation;
QskMargins margins0, margins1, padding;
QskMargins margins0, margins1;
QskBoxBorderMetrics border( 1 );
QskBoxShapeMetrics shape( 4 );
@ -832,7 +832,7 @@ void Editor::setupTabButton()
for ( const auto state : { Q::Checked | A::NoState, Q::Checked | Q::Pressed } )
setMargin( aspect | state, margins1 );
setPadding( aspect, padding );
setPadding( aspect, { 6, 12, 6, 12 } );
setBoxBorderMetrics( aspect, border );
setBoxShape( aspect, shape );