Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VLC
Manage
Activity
Members
Labels
Plan
Issues
4k
Issue boards
Milestones
Code
Merge requests
452
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VideoLAN
VLC
Merge requests
!7074
qt: use system accent color with Qt >= 6.6 in `SystemPaletteThemeProvider`
Code
Review changes
Check out branch
Download
Patches
Plain diff
Open
qt: use system accent color with Qt >= 6.6 in `SystemPaletteThemeProvider`
fuzun/vlc:qt/usesystemaccentcolor
into
master
Overview
2
Commits
1
Pipelines
1
Changes
1
Open
Fatih Uzunoğlu
requested to merge
fuzun/vlc:qt/usesystemaccentcolor
into
master
1 month ago
Overview
2
Commits
1
Pipelines
1
Changes
1
Expand
Request review
@chub
.
0
0
Merge request reports
Compare
master
master (HEAD)
and
latest version
latest version
9134ff03
1 commit,
1 month ago
1 file
+
5
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
modules/gui/qt/style/systempalettethemeprovider.cpp
+
5
−
1
Options
@@ -135,9 +135,13 @@ static int updatePalette(vlc_qt_theme_provider_t* obj)
auto
sys
=
static_cast
<
SystemePaletteObserver
*>
(
obj
->
p_sys
);
QPalette
&
palette
=
sys
->
m_palette
;
#if QT_VERSION >= QT_VERSION_CHECK(6, 6, 0)
QColor
accent
=
palette
.
color
(
QPalette
::
Normal
,
QPalette
::
Accent
);
QColor
accentPressed
=
accent
.
lighter
(
150
);
#else
QColor
accent
=
QColor
(
sys
->
m_isDark
?
"#FF8800"
:
"#FF610A"
);
QColor
accentPressed
=
QColor
(
sys
->
m_isDark
?
"#e67a30"
:
"#e65609"
);
#endif
QColor
textOnAccent
=
Qt
::
white
;
QColor
visualFocus
=
sys
->
m_isDark
?
Qt
::
white
:
Qt
::
black
;
QColor
shadow
=
palette
.
color
(
QPalette
::
Normal
,
QPalette
::
Shadow
);
Loading