[vlc-commits] [Git][videolan/vlc][master] 17 commits: qml: refactor VLCColors definitions

Steve Lhomme (@robUx4) gitlab at videolan.org
Mon Oct 31 06:55:08 UTC 2022



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
21020e2c by Pierre Lamot at 2022-10-31T06:31:09+00:00
qml: refactor VLCColors definitions

default values are provided by the dark/light theme, colors are then overriden
by the system themes this will be less tedious than using qml states to switch
values. This will also allows system theme to specify colors beyond QPalette

- - - - -
ece93ce0 by Pierre Lamot at 2022-10-31T06:31:09+00:00
qt: allow color palette to be defined from an external module

- - - - -
aeebb713 by Pierre Lamot at 2022-10-31T06:31:09+00:00
qt: provide QPalette theme colors as a module

This reinstate the QPalette theme which was removed in a previous commit

- - - - -
e1f6564c by Pierre Lamot at 2022-10-31T06:31:09+00:00
qt: provide automatic dark/light mode on windows as a module

- - - - -
5e93540e by Pierre Lamot at 2022-10-31T06:31:09+00:00
qt: add color system theme provided by Gtk

fix: #26511

- - - - -
7d262bff by Pierre Lamot at 2022-10-31T06:31:09+00:00
qt: use gtk system theme on gnome desktops

- - - - -
793cbf36 by Pierre Lamot at 2022-10-31T06:31:09+00:00
qt: fix missing artwork in onboarding wizard

- - - - -
d5f52bbb by Pierre Lamot at 2022-10-31T06:31:09+00:00
qt: remove Auto scheme model

The behavior is now provided by the system theme provider on windows

- - - - -
b238cd81 by Pierre Lamot at 2022-10-31T06:31:09+00:00
qt: fallback to a valid theme when configuration contains bad values

- - - - -
396ffe51 by Pierre Lamot at 2022-10-31T06:31:09+00:00
qt: allow theme to provide artwork

at the moment only CSD buttons are provided

- - - - -
fafb22d3 by Pierre Lamot at 2022-10-31T06:31:09+00:00
qt: provide CSD images for gtk theme

- - - - -
528592d3 by Pierre Lamot at 2022-10-31T06:31:09+00:00
qt: provide QQuickItem class to integrate themed images in QML

- - - - -
0ccfe25e by Pierre Lamot at 2022-10-31T06:31:09+00:00
qt: add API to provide metrics for themes

- - - - -
9c7645a2 by Pierre Lamot at 2022-10-31T06:31:09+00:00
qt: provide theme metrics for GTK theme

- - - - -
872698f4 by Pierre Lamot at 2022-10-31T06:31:09+00:00
qml: provide CSD button using system theme

- - - - -
0f289b99 by Pierre Lamot at 2022-10-31T06:31:09+00:00
qml: select CSD style dynamically

- - - - -
5ae2fbdc by Pierre Lamot at 2022-10-31T06:31:09+00:00
qml: use C++ implementation of blendColors and setColorAlpha

this avoids implementation duplication

- - - - -


28 changed files:

- configure.ac
- modules/gui/qt/Makefile.am
- modules/gui/qt/dialogs/firstrun/firstrunwizard.cpp
- modules/gui/qt/maininterface/mainui.cpp
- modules/gui/qt/maininterface/qml/BannerSources.qml
- modules/gui/qt/player/qml/TopBar.qml
- modules/gui/qt/qt.cpp
- modules/gui/qt/style/VLCColors.qml
- modules/gui/qt/style/VLCStyle.qml
- + modules/gui/qt/style/defaultthemeproviders.hpp
- modules/gui/qt/util/systempalette.cpp → modules/gui/qt/style/gtkthemeprovider/gtk_compat.cpp
- + modules/gui/qt/style/gtkthemeprovider/gtk_compat.h
- + modules/gui/qt/style/gtkthemeprovider/gtk_util.cpp
- + modules/gui/qt/style/gtkthemeprovider/gtk_util.h
- + modules/gui/qt/style/gtkthemeprovider/gtkthemeprovider.cpp
- + modules/gui/qt/style/gtkthemeprovider/nav_button_provider_gtk.cpp
- + modules/gui/qt/style/gtkthemeprovider/nav_button_provider_gtk.h
- + modules/gui/qt/style/gtkthemeprovider/scoped_gobject.h
- + modules/gui/qt/style/qtthemeprovider.hpp
- + modules/gui/qt/style/systempalette.cpp
- + modules/gui/qt/style/systempalette.hpp
- + modules/gui/qt/style/systempalettethemeprovider.cpp
- + modules/gui/qt/style/windowsthemeprovider.cpp
- modules/gui/qt/util/color_scheme_model.cpp
- modules/gui/qt/util/color_scheme_model.hpp
- − modules/gui/qt/util/systempalette.hpp
- modules/gui/qt/vlc.qrc
- + modules/gui/qt/widgets/native/csdthemeimage.cpp


The diff was not included because it is too large.


View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/8e16f8ddfc555d210acecc6b99da7fd6a38cc2c6...5ae2fbdce6f2e6af72d7ab1bead6e9d8c7fd1462

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/8e16f8ddfc555d210acecc6b99da7fd6a38cc2c6...5ae2fbdce6f2e6af72d7ab1bead6e9d8c7fd1462
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list