From d812e7c4090359f6a5f20b933014bb87dc594dc5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=A6=83=E6=9C=AC=E5=AD=A6?= Date: Fri, 30 Aug 2024 13:19:21 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=B0=83=E6=95=B4=E6=BB=91=E5=8A=A8?= =?UTF-8?q?=E6=9D=A1=E6=A8=AA=E6=9D=A1=E5=92=8C=E5=88=BB=E5=BA=A6=E9=A2=9C?= =?UTF-8?q?=E8=89=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 调整滑动条横条和刻度颜色 Log: 调整滑动条横条和刻度颜色 Bug: https://pms.uniontech.com/bug-view-254295.html Influence: 调整滑动条横条和刻度颜色 --- 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;