Skip to content

Commit

Permalink
sync: from linuxdeepin/dtkwidget
Browse files Browse the repository at this point in the history
Synchronize source files from linuxdeepin/dtkwidget.

Source-pull-request: linuxdeepin/dtkwidget#602
  • Loading branch information
deepin-ci-robot committed Jan 2, 2025
1 parent 940aa00 commit 24d59b3
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>

Check warning on line 14 in src/widgets/dslider.cpp

View workflow job for this annotation

GitHub Actions / cppcheck

Include file: <DPaletteHelper> not found. Please note: Cppcheck does not need standard library headers to get proper results.
#include <DFontSizeManager>

Check warning on line 15 in src/widgets/dslider.cpp

View workflow job for this annotation

GitHub Actions / cppcheck

Include file: <DFontSizeManager> not found. Please note: Cppcheck does not need standard library headers to get proper results.
#include <DGuiApplicationHelper>

Check warning on line 16 in src/widgets/dslider.cpp

View workflow job for this annotation

GitHub Actions / cppcheck

Include file: <DGuiApplicationHelper> not found. Please note: Cppcheck does not need standard library headers to get proper results.

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 24d59b3

Please sign in to comment.