[vlc-commits] [Git][videolan/vlc][master] qml/BannerSources: Update look and feel
Jean-Baptiste Kempf (@jbk)
gitlab at videolan.org
Fri Jul 23 12:03:25 UTC 2021
Jean-Baptiste Kempf pushed to branch master at VideoLAN / VLC
Commits:
e8df4b1d by Benjamin Arnaud at 2021-07-23T10:53:23+00:00
qml/BannerSources: Update look and feel
- - - - -
3 changed files:
- modules/gui/qt/maininterface/qml/BannerSources.qml
- modules/gui/qt/style/VLCColors.qml
- modules/gui/qt/style/VLCStyle.qml
Changes:
=====================================
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 {
=====================================
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
=====================================
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
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/e8df4b1d7014d4b8f1ea9eef9e453ea4f2254810
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/e8df4b1d7014d4b8f1ea9eef9e453ea4f2254810
You're receiving this email because of your account on code.videolan.org.
More information about the vlc-commits
mailing list