Commit a6165da5 authored by Laurent Montel's avatar Laurent Montel 😁

Deprecated--

parent add5f8de
......@@ -84,12 +84,12 @@ void Gwenview::ContextBarButton::paintEvent(QPaintEvent*)
initStyleOption(&opt);
const QColor bgColor = palette().color(backgroundRole());
QColor color = bgColor.dark(CONTEXTBAR_BACKGROUND_DARKNESS);
QColor borderColor = bgColor.light(CONTEXTBAR_BORDER_LIGHTNESS);
QColor color = bgColor.darker(CONTEXTBAR_BACKGROUND_DARKNESS);
QColor borderColor = bgColor.lighter(CONTEXTBAR_BORDER_LIGHTNESS);
if (opt.state & QStyle::State_MouseOver && opt.state & QStyle::State_Enabled) {
color = color.light(CONTEXTBAR_MOUSEOVER_LIGHTNESS);
borderColor = borderColor.light(CONTEXTBAR_MOUSEOVER_LIGHTNESS);
color = color.lighter(CONTEXTBAR_MOUSEOVER_LIGHTNESS);
borderColor = borderColor.lighter(CONTEXTBAR_MOUSEOVER_LIGHTNESS);
}
const QRectF rectF = QRectF(opt.rect).adjusted(0.5, 0.5, -0.5, -0.5);
......
......@@ -724,16 +724,16 @@ void PreviewItemDelegate::paint(QPainter * painter, const QStyleOptionViewItem &
bgColor = option.palette.color(cg, QPalette::Highlight);
if (hasFocus) {
borderColor = bgColor.dark(FOCUS_BORDER_DARKNESS);
borderColor = bgColor.darker(FOCUS_BORDER_DARKNESS);
} else {
borderColor = bgColor.dark(SELECTION_BORDER_DARKNESS);
borderColor = bgColor.darker(SELECTION_BORDER_DARKNESS);
}
} else {
bgColor = viewport->palette().color(viewport->backgroundRole());
if (hasFocus) {
borderColor = fgColor;
} else {
borderColor = bgColor.light(200);
borderColor = bgColor.lighter(200);
}
}
......
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