Changeset View
Changeset View
Standalone View
Standalone View
plugins/dockers/animation/timeline_color_scheme.cpp
Context not available. | |||||
87 | return selectorColor(); | 87 | return selectorColor(); | ||
---|---|---|---|---|---|
88 | } | 88 | } | ||
89 | 89 | | |||
90 | QColor TimelineColorScheme::frameColor(bool present, bool active) const | | |||
91 | { | | |||
92 | QColor color = Qt::transparent; | | |||
93 | | ||||
94 | if (present && !active) { | | |||
95 | color = m_d->baseColor; | | |||
96 | } else if (present && active) { | | |||
97 | QColor bgColor = qApp->palette().color(QPalette::Base); | | |||
98 | int darkenCoeff = bgColor.value() > 128 ? 130 : 80; | | |||
99 | color = m_d->baseColor.darker(darkenCoeff); | | |||
100 | } else if (!present && active) { | | |||
101 | QColor bgColor = qApp->palette().color(QPalette::Base); | | |||
102 | return KritaUtils::blendColors(m_d->baseColor, bgColor, 0.2); | | |||
103 | } | | |||
104 | | ||||
105 | return color; | | |||
106 | } | | |||
107 | | ||||
108 | QColor TimelineColorScheme::onionSkinsSliderEnabledColor() const | 90 | QColor TimelineColorScheme::onionSkinsSliderEnabledColor() const | ||
109 | { | 91 | { | ||
110 | return m_d->baseColor; | 92 | return m_d->baseColor; | ||
Context not available. |