Changeset View
Changeset View
Standalone View
Standalone View
kdecoration/breezebutton.cpp
Show First 20 Lines • Show All 362 Lines • ▼ Show 20 Line(s) | 357 | { | |||
---|---|---|---|---|---|
363 | } else if( isPressed() ) { | 363 | } else if( isPressed() ) { | ||
364 | 364 | | |||
365 | return d->titleBarColor(); | 365 | return d->titleBarColor(); | ||
366 | 366 | | |||
367 | } else if( type() == DecorationButtonType::Close && d->internalSettings()->outlineCloseButton() ) { | 367 | } else if( type() == DecorationButtonType::Close && d->internalSettings()->outlineCloseButton() ) { | ||
368 | 368 | | |||
369 | return d->titleBarColor(); | 369 | return d->titleBarColor(); | ||
370 | 370 | | |||
371 | } else if( ( type() == DecorationButtonType::KeepBelow || type() == DecorationButtonType::KeepAbove ) && isChecked() ) { | 371 | } else if( ( type() == DecorationButtonType::KeepBelow || type() == DecorationButtonType::KeepAbove || type() == DecorationButtonType::Shade ) && isChecked() ) { | ||
372 | 372 | | |||
373 | return d->titleBarColor(); | 373 | return d->titleBarColor(); | ||
374 | 374 | | |||
375 | } else if( m_animation->state() == QPropertyAnimation::Running ) { | 375 | } else if( m_animation->state() == QPropertyAnimation::Running ) { | ||
376 | 376 | | |||
377 | return KColorUtils::mix( d->fontColor(), d->titleBarColor(), m_opacity ); | 377 | return KColorUtils::mix( d->fontColor(), d->titleBarColor(), m_opacity ); | ||
378 | 378 | | |||
379 | } else if( isHovered() ) { | 379 | } else if( isHovered() ) { | ||
Show All 19 Lines | 393 | { | |||
399 | } | 399 | } | ||
400 | 400 | | |||
401 | auto c = d->client().data(); | 401 | auto c = d->client().data(); | ||
402 | if( isPressed() ) { | 402 | if( isPressed() ) { | ||
403 | 403 | | |||
404 | if( type() == DecorationButtonType::Close ) return c->color( ColorGroup::Warning, ColorRole::Foreground ); | 404 | if( type() == DecorationButtonType::Close ) return c->color( ColorGroup::Warning, ColorRole::Foreground ); | ||
405 | else return KColorUtils::mix( d->titleBarColor(), d->fontColor(), 0.3 ); | 405 | else return KColorUtils::mix( d->titleBarColor(), d->fontColor(), 0.3 ); | ||
406 | 406 | | |||
407 | } else if( ( type() == DecorationButtonType::KeepBelow || type() == DecorationButtonType::KeepAbove ) && isChecked() ) { | 407 | } else if( ( type() == DecorationButtonType::KeepBelow || type() == DecorationButtonType::KeepAbove || type() == DecorationButtonType::Shade ) && isChecked() ) { | ||
408 | 408 | | |||
409 | return d->fontColor(); | 409 | return d->fontColor(); | ||
410 | 410 | | |||
411 | } else if( m_animation->state() == QPropertyAnimation::Running ) { | 411 | } else if( m_animation->state() == QPropertyAnimation::Running ) { | ||
412 | 412 | | |||
413 | if( type() == DecorationButtonType::Close ) | 413 | if( type() == DecorationButtonType::Close ) | ||
414 | { | 414 | { | ||
415 | if( d->internalSettings()->outlineCloseButton() ) | 415 | if( d->internalSettings()->outlineCloseButton() ) | ||
▲ Show 20 Lines • Show All 60 Lines • Show Last 20 Lines |