Commit d6ba3352 authored by Hugo Pereira Da Costa's avatar Hugo Pereira Da Costa

Removed heuristics for not drawing separator between titlebar and window since...

Removed heuristics for not drawing separator between titlebar and window since there is now a user configurable settings to achieve this
parent d32deed8
......@@ -122,7 +122,7 @@ namespace Breeze
{
auto c( client().data() );
if(! ( m_internalSettings->drawTitleBarSeparator() && m_useSeparator ) ) return QColor();
if( !m_internalSettings->drawTitleBarSeparator() ) return QColor();
if( m_animation->state() == QPropertyAnimation::Running )
{
QColor color( c->palette().color( QPalette::Highlight ) );
......@@ -151,7 +151,6 @@ namespace Breeze
void Decoration::init()
{
auto c = client().data();
m_useSeparator = (c->palette().color( QPalette::Window ) != c->color( ColorGroup::Active, ColorRole::TitleBar ) );
// active state change animation
m_animation->setStartValue( 0 );
......@@ -192,13 +191,6 @@ namespace Breeze
);
connect(c, &KDecoration2::DecoratedClient::activeChanged, this, &Decoration::updateAnimationState);
connect(c, &KDecoration2::DecoratedClient::paletteChanged, this,
[this]() {
auto c = client().data();
m_useSeparator = (c->palette().color( QPalette::Window ) != c->color( ColorGroup::Active, ColorRole::TitleBar ) );
update();
}
);
connect(c, &KDecoration2::DecoratedClient::widthChanged, this, &Decoration::updateTitleBar);
connect(c, &KDecoration2::DecoratedClient::maximizedChanged, this, &Decoration::updateTitleBar);
connect(c, &KDecoration2::DecoratedClient::maximizedChanged, this, &Decoration::setOpaque);
......
......@@ -138,8 +138,6 @@ namespace Breeze
//@}
InternalSettingsPtr m_internalSettings;
bool m_useSeparator = true;
QList<KDecoration2::DecorationButton*> m_buttons;
KDecoration2::DecorationButtonGroup *m_leftButtons = nullptr;
KDecoration2::DecorationButtonGroup *m_rightButtons = nullptr;
......
......@@ -148,7 +148,7 @@
<item row="6" column="0" colspan="3">
<widget class="QCheckBox" name="drawTitleBarSeparator">
<property name="text">
<string>Draw separator between Title Bar and Window when colors differ</string>
<string>Draw separator between Title Bar and Window</string>
</property>
</widget>
</item>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment