|
|
|
|
@ -106,10 +106,7 @@ namespace Breeze |
|
|
|
|
{ |
|
|
|
|
|
|
|
|
|
auto c = client().data(); |
|
|
|
|
// Always return the title bar color regardless of wheter or
|
|
|
|
|
// not the title bar is visible or not.
|
|
|
|
|
|
|
|
|
|
// if( hideTitleBar() ) return c->color( ColorGroup::Inactive, ColorRole::TitleBar );
|
|
|
|
|
// if( hideTitleBar() ) return c->color( ColorGroup::Inactive, ColorRole::TitleBar );
|
|
|
|
|
//else
|
|
|
|
|
// if( m_animation->state() == QPropertyAnimation::Running )
|
|
|
|
|
// {
|
|
|
|
|
@ -244,9 +241,6 @@ namespace Breeze |
|
|
|
|
void Decoration::updateSizeGripVisibility() |
|
|
|
|
{ |
|
|
|
|
auto c = client().data(); |
|
|
|
|
// I am stealing the sizeGrip to indicate that the window is
|
|
|
|
|
// active, so it should be visible provided that the client is
|
|
|
|
|
// active.
|
|
|
|
|
if( m_sizeGrip ) |
|
|
|
|
{ m_sizeGrip->setVisible( c->isActive() && !c->isShaded() ); } |
|
|
|
|
} |
|
|
|
|
@ -465,8 +459,7 @@ namespace Breeze |
|
|
|
|
if (c->isActive()) { |
|
|
|
|
painter->setPen( c->color( ColorGroup::Active, ColorRole::TitleBar ) ); |
|
|
|
|
QPointF p=rect().bottomRight()+QPointF(0.5, 0.5); |
|
|
|
|
// Unfortunately SizeGrip::GripSize is private
|
|
|
|
|
const int sizeGripSize = 18; //SizeGrip::GripSize;
|
|
|
|
|
const int sizeGripSize = 18; //this sucks
|
|
|
|
|
QPointF q=p-QPoint(0, sizeGripSize); |
|
|
|
|
QPointF r=p-QPoint(sizeGripSize, 0); |
|
|
|
|
painter->drawLine( p, q ); |
|
|
|
|
@ -713,9 +706,9 @@ namespace Breeze |
|
|
|
|
|
|
|
|
|
// contrast pixel
|
|
|
|
|
QRectF innerRect = QRectF( |
|
|
|
|
|
|
|
|
|
shadowSize - Metrics::Shadow_Overlap, shadowSize - shadowOffset - Metrics::Shadow_Overlap, |
|
|
|
|
2*Metrics::Shadow_Overlap, shadowOffset + 2*Metrics::Shadow_Overlap ); |
|
|
|
|
|
|
|
|
|
painter.setPen( gradientStopColor( g_shadowColor, (g_shadowSizeEnum == InternalSettings::ShadowNone) ? g_shadowStrength:(g_shadowStrength*0.5) ) ); |
|
|
|
|
painter.setBrush( Qt::NoBrush ); |
|
|
|
|
painter.drawRoundedRect( innerRect, -0.5 + Metrics::Frame_FrameRadius, -0.5 + Metrics::Frame_FrameRadius ); |
|
|
|
|
|