QskMenu::Overlay settings fixed ( working for Squiek again )
This commit is contained in:
parent
c8b276db40
commit
a67d23420f
@ -359,12 +359,13 @@ void Editor::setupMenu()
|
||||
using A = QskAspect;
|
||||
using Q = QskMenu;
|
||||
|
||||
setFlagHint( Q::Overlay | A::Style, false );
|
||||
setGradient( Q::Overlay, stateLayerColor( m_pal.outline, 0.8 ) );
|
||||
|
||||
setBoxShape( Q::Panel, 4_dp );
|
||||
setBoxBorderMetrics( Q::Panel, 0 );
|
||||
setPadding( Q::Panel, 0 );
|
||||
|
||||
setGradient( Q::Overlay, Qt::transparent );
|
||||
|
||||
// The color here is primary with an opacity of 8% - we blend that
|
||||
// with the background, because we don't want the menu to have transparency:
|
||||
const auto panel = flattenedColor( m_pal.primary, m_pal.background, 0.08 );
|
||||
|
@ -340,6 +340,9 @@ void Editor::setupMenu()
|
||||
using A = QskAspect;
|
||||
using Q = QskMenu;
|
||||
|
||||
setFlagHint( Q::Overlay | A::Style, true );
|
||||
setGradient( Q::Overlay, QColor( 220, 220, 220, 100 ) );
|
||||
|
||||
setBoxShape( Q::Panel, qskDpiScaled( 4 ) );
|
||||
setBoxBorderMetrics( Q::Panel, qskDpiScaled( 1 ) );
|
||||
setBoxBorderColors( Q::Panel, m_pal.darker125 );
|
||||
|
@ -75,8 +75,6 @@ QskMenu::QskMenu( QQuickItem* parent )
|
||||
, m_data( new PrivateData )
|
||||
{
|
||||
setModal( true );
|
||||
setOverlay( true );
|
||||
|
||||
setFaderAspect( QskMenu::Panel | QskAspect::Position | QskAspect::Metric );
|
||||
|
||||
setPopupFlag( QskPopup::CloseOnPressOutside, true );
|
||||
|
Loading…
x
Reference in New Issue
Block a user