From 1af10fb485f673c6d297a7ac158c75ca979a551d Mon Sep 17 00:00:00 2001 From: Conway Date: Thu, 4 Jun 2026 17:56:39 -0400 Subject: Regenerate patch against v26.04.1 with selection-alpha bump Adds the KItemListWidget selection-highlight alpha increase (dolphin commit a3f3d19ad) on top of the existing pixelated-scaling and hide-extensions changes. Same base tag (v26.04.1), so PKGBUILD is unchanged. --- pixelated-scaling-and-hide-extensions.patch | 38 +++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) (limited to 'pixelated-scaling-and-hide-extensions.patch') diff --git a/pixelated-scaling-and-hide-extensions.patch b/pixelated-scaling-and-hide-extensions.patch index c80a59f..7ab3b4d 100644 --- a/pixelated-scaling-and-hide-extensions.patch +++ b/pixelated-scaling-and-hide-extensions.patch @@ -18,6 +18,44 @@ index 12b8e2a98..eb1b9e869 100644 } if (m_requestRole[ExtensionRole] && !isDir) { +diff --git a/src/kitemviews/kitemlistwidget.cpp b/src/kitemviews/kitemlistwidget.cpp +index 089211716..40be37885 100644 +--- a/src/kitemviews/kitemlistwidget.cpp ++++ b/src/kitemviews/kitemlistwidget.cpp +@@ -628,7 +628,7 @@ void KItemListWidget::drawItemStyleOption(QPainter *painter, QWidget *widget, QS + QPainterPath path; + const qreal adjustment = 0.5 * penWidth; // Use same adjustments as Breeze strokedRect uses, to snap to pixelGrid. + path.addRoundedRect(selectionRectFull().adjusted(adjustment, adjustment, -adjustment, -adjustment), roundness, roundness); +- QColor backgroundColor{widget->palette().color(QPalette::Accent)}; ++ QColor backgroundColor{widget->palette().color(QPalette::Active, QPalette::Accent)}; + painter->setRenderHint(QPainter::Antialiasing); + bool current = m_current && styleState & QStyle::State_Active; + +@@ -640,12 +640,12 @@ void KItemListWidget::drawItemStyleOption(QPainter *painter, QWidget *widget, QS + backgroundColor.setAlphaF(1.0); + } else { + if (m_selected && m_hovered) { +- backgroundColor.setAlphaF(0.40); ++ backgroundColor.setAlphaF(0.85); + } else if (m_selected) { +- backgroundColor.setAlphaF(0.32); ++ backgroundColor.setAlphaF(0.70); + } else if (m_hovered) { + backgroundColor = widget->palette().color(QPalette::Text); +- backgroundColor.setAlphaF(0.06); ++ backgroundColor.setAlphaF(0.12); + } + } + +@@ -653,7 +653,7 @@ void KItemListWidget::drawItemStyleOption(QPainter *painter, QWidget *widget, QS + + // Focus decoration + if (current) { +- QColor focusColor{widget->palette().color(QPalette::Accent)}; ++ QColor focusColor{widget->palette().color(QPalette::Active, QPalette::Accent)}; + focusColor = m_styleOption.palette.color(QPalette::Base).lightnessF() > 0.5 ? focusColor.darker(110) : focusColor.lighter(110); + focusColor.setAlphaF(m_selected || m_hovered ? 1.0 : 0.8); + // Set the pen color lighter or darker depending on background color diff --git a/src/kitemviews/private/kpixmapmodifier.cpp b/src/kitemviews/private/kpixmapmodifier.cpp index bf316b880..96aea26d4 100644 --- a/src/kitemviews/private/kpixmapmodifier.cpp -- cgit v1.3.1