Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
vite
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
GitLab upgrade completed. Current version is 17.11.3.
Show more breadcrumbs
solverstack
vite
Commits
f8525b4e
Commit
f8525b4e
authored
4 years ago
by
Johnny Jazeix
Committed by
Mathieu Faverge
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
fix dark/light by darker/lighter
parent
a2474ed0
No related branches found
No related tags found
1 merge request
!23
Fix deprecated warnings
Pipeline
#179152
passed
4 years ago
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/interface/qxtspanslider.cpp
+5
-5
5 additions, 5 deletions
src/interface/qxtspanslider.cpp
with
5 additions
and
5 deletions
src/interface/qxtspanslider.cpp
+
5
−
5
View file @
f8525b4e
...
...
@@ -91,14 +91,14 @@ void QxtSpanSliderPrivate::setupPainter(QPainter* painter, Qt::Orientation orien
{
QColor
highlight
=
qxt_p
().
palette
().
color
(
QPalette
::
Highlight
);
QLinearGradient
gradient
(
x1
,
y1
,
x2
,
y2
);
gradient
.
setColorAt
(
0
,
highlight
.
dark
(
120
));
gradient
.
setColorAt
(
1
,
highlight
.
light
(
108
));
gradient
.
setColorAt
(
0
,
highlight
.
dark
er
(
120
));
gradient
.
setColorAt
(
1
,
highlight
.
light
er
(
108
));
painter
->
setBrush
(
gradient
);
if
(
orientation
==
Qt
::
Horizontal
)
painter
->
setPen
(
QPen
(
highlight
.
dark
(
130
),
0
));
painter
->
setPen
(
QPen
(
highlight
.
dark
er
(
130
),
0
));
else
painter
->
setPen
(
QPen
(
highlight
.
dark
(
150
),
0
));
painter
->
setPen
(
QPen
(
highlight
.
dark
er
(
150
),
0
));
}
void
QxtSpanSliderPrivate
::
drawSpan
(
QStylePainter
*
painter
,
const
QRect
&
rect
)
const
...
...
@@ -115,7 +115,7 @@ void QxtSpanSliderPrivate::drawSpan(QStylePainter* painter, const QRect& rect) c
groove
.
adjust
(
0
,
0
,
0
,
-
1
);
// pen & brush
painter
->
setPen
(
QPen
(
p
->
palette
().
color
(
QPalette
::
Dark
).
light
(
110
),
0
));
painter
->
setPen
(
QPen
(
p
->
palette
().
color
(
QPalette
::
Dark
).
light
er
(
110
),
0
));
if
(
opt
.
orientation
==
Qt
::
Horizontal
)
setupPainter
(
painter
,
opt
.
orientation
,
groove
.
center
().
x
(),
groove
.
top
(),
groove
.
center
().
x
(),
groove
.
bottom
());
else
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment