[vlc-commits] [Git][videolan/vlc][master] 9 commits: qml: add custom image provider to colorize SVG assets

Rémi Denis-Courmont (@Courmisch) gitlab at videolan.org
Sat Sep 17 19:27:56 UTC 2022



Rémi Denis-Courmont pushed to branch master at VideoLAN / VLC


Commits:
e99b3c40 by Pierre Lamot at 2022-09-17T18:47:07+00:00
qml: add custom image provider to colorize SVG assets

this allows to template SVG assets with placeholder colors that will be replaced
with theme aware colors at runtime. the substitution is made while reading the
SVG using simple string substitution.

placeholder colors are pre-defined as

color 1 -> #FF00FF
color 2 -> #00FFFF

- - - - -
e97b53f1 by Pierre Lamot at 2022-09-17T18:47:07+00:00
qml: upgrade ImageToolButton

ImageToolButton was unused and incomplete. This aims to provide the same
behavior as IconToolButton but with images instead of icons

- - - - -
e8514ac5 by Pierre Lamot at 2022-09-17T18:47:07+00:00
qml: update A to B button

* updated artwork
* use partial colorization of the artwork to represent the state instead of
  layering multiple artworks

- - - - -
52e83d00 by Pierre Lamot at 2022-09-17T18:47:07+00:00
qt: remove unused artworks

- - - - -
5a16789d by Pierre Lamot at 2022-09-17T18:47:07+00:00
qml: provide qrc:// path for predefined artworks in NetworkSourceModel

this will ease differentiation between predefined artworks and artworks actually provided
by the model

- - - - -
bced9c31 by Pierre Lamot at 2022-09-17T18:47:07+00:00
qml: use image provider to display generic cover in network views

- - - - -
808f5e55 by Pierre Lamot at 2022-09-17T18:47:07+00:00
qml: use SVG artwork in ServicesHomeDisplay instead of drawing through code

- - - - -
9800e1a0 by Pierre Lamot at 2022-09-17T18:47:07+00:00
qml: set the accent color of the cone according to the theme

- - - - -
3ab306c4 by Pierre Lamot at 2022-09-17T18:47:07+00:00
qt: rescale sd artwork

use the template accent color for coloration

- - - - -


30 changed files:

- modules/gui/qt/Makefile.am
- modules/gui/qt/maininterface/mainui.cpp
- modules/gui/qt/maininterface/qml/BannerSources.qml
- modules/gui/qt/network/networksourcesmodel.cpp
- modules/gui/qt/network/qml/NetworkBrowseDisplay.qml
- modules/gui/qt/network/qml/NetworkCustomCover.qml
- modules/gui/qt/network/qml/NetworkGridItem.qml
- modules/gui/qt/network/qml/NetworkListItem.qml
- modules/gui/qt/network/qml/NetworkThumbnailItem.qml
- modules/gui/qt/network/qml/ServicesHomeDisplay.qml
- modules/gui/qt/pixmaps/VLCIcons.json
- modules/gui/qt/pixmaps/VLCIcons.ttf
- modules/gui/qt/pixmaps/icons/atob.svg
- − modules/gui/qt/pixmaps/icons/atob_bg_a.svg
- − modules/gui/qt/pixmaps/icons/atob_bg_ab.svg
- − modules/gui/qt/pixmaps/icons/atob_bg_b.svg
- − modules/gui/qt/pixmaps/icons/atob_bg_none.svg
- − modules/gui/qt/pixmaps/icons/atob_fg_a.svg
- − modules/gui/qt/pixmaps/icons/atob_fg_ab.svg
- − modules/gui/qt/pixmaps/icons/atob_fg_b.svg
- − modules/gui/qt/pixmaps/icons/atob_noa.svg
- − modules/gui/qt/pixmaps/icons/atob_nob.svg
- modules/gui/qt/pixmaps/misc/cone.svg
- + modules/gui/qt/pixmaps/placeholder/add_service.svg
- modules/gui/qt/pixmaps/sd/appletrailers.svg
- modules/gui/qt/pixmaps/sd/assembleenationale.svg
- modules/gui/qt/pixmaps/sd/capture-card.svg
- modules/gui/qt/pixmaps/sd/directory.svg
- modules/gui/qt/pixmaps/sd/disc.svg
- modules/gui/qt/pixmaps/sd/file.svg


The diff was not included because it is too large.


View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/2b874a86c8ce5269ce569c2b2cd6152eb936d53e...3ab306c40c3dd26596948335591a685645fe8be7

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/2b874a86c8ce5269ce569c2b2cd6152eb936d53e...3ab306c40c3dd26596948335591a685645fe8be7
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