clapper-gtk: status: Apply ".osd" style class

Otherwise text is invisible on light themed apps,
since it renders as black letters on a black background
This commit is contained in:
Rafał Dzięgiel
2024-06-29 15:05:06 +02:00
parent 9224716885
commit 7332a05187
2 changed files with 6 additions and 4 deletions

View File

@@ -1,8 +1,5 @@
/* Adwaita OSD background color is unacceptable:
* https://gitlab.gnome.org/GNOME/libadwaita/-/issues/454 */
clapper-gtk-video windowcontrols.osd {
background-color: transparent;
}
clapper-gtk-video menubutton.osd,
clapper-gtk-video button.osd,
clapper-gtk-video box.osd,
@@ -22,7 +19,9 @@ clapper-gtk-video button.osd:active,
clapper-gtk-video windowcontrols.osd button:active image {
background-color: rgba(82,82,82,0.8);
}
clapper-gtk-video box.osd listview.osd {
clapper-gtk-video box.osd listview.osd,
clapper-gtk-video windowcontrols.osd,
clapper-gtk-video clapper-gtk-status.osd {
background-color: transparent;
}

View File

@@ -6,6 +6,9 @@
<property name="adaptive-width">560</property>
<property name="adaptive-height">400</property>
<signal name="adapt" handler="adapt_cb"/>
<style>
<class name="osd"/>
</style>
<child>
<object class="GtkBox" id="status_box">
<property name="orientation">vertical</property>