[vlc-devel] [PATCH 18/21] qml: force the color of the widget in the controlbar
Pierre Lamot
pierre at videolabs.io
Wed Aug 7 15:52:24 CEST 2019
---
modules/gui/qt/qml/player/ControlBar.qml | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/modules/gui/qt/qml/player/ControlBar.qml b/modules/gui/qt/qml/player/ControlBar.qml
index dcad318d4c..3e5c9c2b66 100644
--- a/modules/gui/qt/qml/player/ControlBar.qml
+++ b/modules/gui/qt/qml/player/ControlBar.qml
@@ -144,6 +144,13 @@ Utils.NavigableFocusScope {
if(buttonloader.item instanceof Utils.IconToolButton)
buttonloader.item.size = model.size === PlayerControlBarModel.WIDGET_BIG ?
VLCStyle.icon_large : VLCStyle.icon_medium
+ //force buttons color
+ if ( buttonloader.item.color )
+ buttonloader.item.color = VLCStyle.colors.playerFg
+ if ( buttonloader.item.bgColor )
+ buttonloader.item.bgColor = VLCStyle.colors.setColorAlpha(VLCStyle.colors.playerBg, 0.8)
+ if ( buttonloader.item.borderColor )
+ buttonloader.item.borderColor = VLCStyle.colors.playerBorder
var buttonindex = DelegateModel.itemsIndex
while(buttonindex > 0 && !(buttonrow.children[buttonindex-1].item.acceptFocus))
--
2.17.1
More information about the vlc-devel
mailing list