Skip to content

Commit

Permalink
fix: 调整滑动条横条和刻度颜色
Browse files Browse the repository at this point in the history
调整滑动条横条和刻度颜色

Log: 调整滑动条横条和刻度颜色
Bug: https://pms.uniontech.com/bug-view-254295.html
Influence: 调整滑动条横条和刻度颜色
  • Loading branch information
Whale107 committed Aug 30, 2024
1 parent 38e3cc1 commit d812e7c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/widgets/dslider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

#include <DPaletteHelper>
#include <DFontSizeManager>
#include <DGuiApplicationHelper>

DWIDGET_BEGIN_NAMESPACE

Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit d812e7c

Please sign in to comment.