Commit 5943e6ea authored by Halla Rempt's avatar Halla Rempt
Browse files

Don't highlight a layer with a color label on mouse-over

This was added in

commit 097d7e61
Author: Safa AlFulaij <safa1996alfulaij@gmail.com>, Tue Sep 18 16:55:21 2018 +0300 (4 years ago)
Committer: Safa AlFulaij <safa1996alfulaij@gmail.com>, Sun Jan 13 15:36:57 2019 +0300 (3 years, 8 months ago)
Follows: v4.2.0-prealpha
Precedes: 4.2.0-pre-alpha-HDR
Branches: <Expand>

Refactor KisNodeDelegate and support RTL

Which wasn't meant to create visual changes to the node delegate,
only to fix RTL. This restores the old layer blending.

BUG:459153
parent 477bf9fa
Pipeline #232858 passed with stage
in 47 minutes and 40 seconds
......@@ -212,11 +212,7 @@ void NodeDelegate::drawColorLabel(QPainter *p, const QStyleOptionViewItem &optio
if (color.alpha() <= 0) return;
QColor bgColor = qApp->palette().color(QPalette::Base);
if ((option.state & QStyle::State_MouseOver) && !(option.state & QStyle::State_Selected)) {
color = KisPaintingTweaks::blendColors(color, bgColor, 0.6);
} else {
color = KisPaintingTweaks::blendColors(color, bgColor, 0.3);
}
color = KisPaintingTweaks::blendColors(color, bgColor, 0.3);
QRect optionRect = (option.state & QStyle::State_Selected) ? iconsRect(option, index) : option.rect;
......
Supports Markdown
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