From e8df4b1d7014d4b8f1ea9eef9e453ea4f2254810 Mon Sep 17 00:00:00 2001 From: Benjamin Arnaud Date: Mon, 12 Jul 2021 17:16:27 +0200 Subject: [PATCH] qml/BannerSources: Update look and feel --- .../gui/qt/maininterface/qml/BannerSources.qml | 15 ++++++++------- modules/gui/qt/style/VLCColors.qml | 4 ++++ modules/gui/qt/style/VLCStyle.qml | 2 ++ 3 files changed, 14 insertions(+), 7 deletions(-) diff --git a/modules/gui/qt/maininterface/qml/BannerSources.qml b/modules/gui/qt/maininterface/qml/BannerSources.qml index ca4cbf6282..c8d62c338f 100644 --- a/modules/gui/qt/maininterface/qml/BannerSources.qml +++ b/modules/gui/qt/maininterface/qml/BannerSources.qml @@ -206,13 +206,14 @@ FocusScope { anchors.fill: parent } - Widgets.CoverShadow { - anchors.fill: localToolbarBg - source: localToolbarBg - primaryVerticalOffset: VLCStyle.dp(1) - primaryRadius: VLCStyle.dp(9) - secondaryVerticalOffset: VLCStyle.dp(0) - secondaryRadius: VLCStyle.dp(2) + Rectangle { + anchors.left : localToolbarBg.left + anchors.right: localToolbarBg.right + anchors.top : localToolbarBg.bottom + + height: VLCStyle.border + + color: VLCStyle.colors.bannerBorder } Widgets.NavigableRow { diff --git a/modules/gui/qt/style/VLCColors.qml b/modules/gui/qt/style/VLCColors.qml index 907f3d23b1..d0b2682d70 100644 --- a/modules/gui/qt/style/VLCColors.qml +++ b/modules/gui/qt/style/VLCColors.qml @@ -69,6 +69,10 @@ Item { property color bgFocus: (isThemeDark) ? white : black + // Banner + + property color bannerBorder: (isThemeDark) ? "#303030" : "#e0e0e0" + // Button property color button: systemPalette.button diff --git a/modules/gui/qt/style/VLCStyle.qml b/modules/gui/qt/style/VLCStyle.qml index e5a606b2f0..d847a7dfb1 100644 --- a/modules/gui/qt/style/VLCStyle.qml +++ b/modules/gui/qt/style/VLCStyle.qml @@ -51,6 +51,8 @@ Item { property double margin_xlarge: dp(32, scale); property double margin_xxlarge: dp(36, scale); + // Borders + property int border: dp(1, scale) property int focus_border: dp(2, scale) property int fontSize_xsmall: fontMetrics_xsmall.font.pixelSize