From 24d59b3bdb19ac8489bcf3abf535eb5528555161 Mon Sep 17 00:00:00 2001 From: deepin-ci-robot Date: Thu, 2 Jan 2025 05:24:42 +0000 Subject: [PATCH] sync: from linuxdeepin/dtkwidget Synchronize source files from linuxdeepin/dtkwidget. Source-pull-request: https://github.com/linuxdeepin/dtkwidget/pull/602 --- src/widgets/dslider.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/widgets/dslider.cpp b/src/widgets/dslider.cpp index e0692ea41..cdfa65732 100644 --- a/src/widgets/dslider.cpp +++ b/src/widgets/dslider.cpp @@ -13,6 +13,7 @@ #include #include +#include DWIDGET_BEGIN_NAMESPACE @@ -784,7 +785,7 @@ void SliderStrip::paintEvent(QPaintEvent *event) Q_UNUSED(event) QPainter pa(this); auto dpa = DPaletteHelper::instance()->palette(this); - QPen penLine = QPen(dpa.color(DPalette::ObviousBackground), 1); + QPen penLine = QPen(DGuiApplicationHelper::adjustColor(dpa.color(DPalette::ObviousBackground), 0, 0, 0, 0, 0, 0, +20), 1); QPen penNumber = QPen(dpa.textTips(), 1); int tickSize = fontMetrics().height() / 2;