video: Use the black-background property

Instead of hardcoding a black background in the theme, use the
new property to tell the GtkGraphicsOffload widget to draw one.
This commit is contained in:
Matthias Clasen
2024-04-16 17:02:13 -04:00
parent a57f7e3935
commit e4753791c0
2 changed files with 1 additions and 3 deletions

View File

@@ -3940,9 +3940,6 @@ video {
min-height: 64px;
border-radius: 32px;
}
& graphicsoffload > picture {
background: black;
}
}
/************

View File

@@ -6,6 +6,7 @@
<child>
<object class="GtkGraphicsOffload" id="graphics_offload">
<property name="enabled">disabled</property>
<property name="black-background">1</property>
<property name="child"><object class="GtkPicture" id="video_picture"/></property>
</object>
</child>