[vlc-commits] [Git][videolan/vlc][master] qml: restore the round button background color and override it in Bookmarks
François Cartegnie (@fcartegnie)
gitlab at videolan.org
Mon Sep 28 07:33:02 UTC 2026
François Cartegnie pushed to branch master at VideoLAN / VLC
Commits:
2c33cd9c by Leon Vitanos at 2026-09-28T09:17:30+02:00
qml: restore the round button background color and override it in Bookmarks
- - - - -
2 changed files:
- modules/gui/qt/medialibrary/qml/Bookmarks.qml
- modules/gui/qt/widgets/qml/RoundButtonExt.qml
Changes:
=====================================
modules/gui/qt/medialibrary/qml/Bookmarks.qml
=====================================
@@ -95,6 +95,7 @@ Item {
height: control.barHeight
width: height
+ backgroundColor: bookmarkButton.colorContext.fg.primary
x: control.width * model.position - width/2
y: VLCStyle.dp(1, VLCStyle.scale)
=====================================
modules/gui/qt/widgets/qml/RoundButtonExt.qml
=====================================
@@ -25,6 +25,8 @@ import VLC.Style
T.RoundButton {
id: control
+ property color backgroundColor: theme.bg.secondary // ###
+
implicitWidth: text.length !== 1 ? Math.max(implicitBackgroundWidth + leftInset + rightInset,
implicitContentWidth + leftPadding + rightPadding)
: implicitHeight // special case for single letter/icon to make it perfectly round. This should be safe due to `Text.HorizontalFit`
@@ -66,7 +68,7 @@ T.RoundButton {
radius: control.radius
enabled: control.enabled
visible: !control.flat || control.down || control.checked || control.highlighted
- color: theme.fg.primary
+ color: control.backgroundColor
border.color: theme.border
}
}
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/2c33cd9cca31af6951b0e677bc12303b128d6623
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/2c33cd9cca31af6951b0e677bc12303b128d6623
You're receiving this email because of your account on code.videolan.org. Manage all notifications: https://code.videolan.org/-/profile/notifications | Help: https://code.videolan.org/help
More information about the vlc-commits
mailing list