[gnome-boxes/toast-revolution: 3/9] thumbnail: Add a black background color to live thumbnails




commit dd197e5524fa88e60595ad2003f5c9fba26715a4
Author: Felipe Borges <felipeborges gnome org>
Date:   Thu Jan 20 18:14:21 2022 +0100

    thumbnail: Add a black background color to live thumbnails
    
    Most of the time users will be seeing ttys and/or dark backgrounds.

 data/gtk-style.css   | 4 ++++
 data/ui/thumbnail.ui | 3 +++
 2 files changed, 7 insertions(+)
---
diff --git a/data/gtk-style.css b/data/gtk-style.css
index 48c6b668..02bb23b0 100644
--- a/data/gtk-style.css
+++ b/data/gtk-style.css
@@ -9,6 +9,10 @@
     border: 1px solid @borders;
 }
 
+.live-thumbnail {
+    background: black;
+}
+
 .boxes-product-key-entry {
     font-family: monospace;
 }
diff --git a/data/ui/thumbnail.ui b/data/ui/thumbnail.ui
index ed7ae2c2..36d820fe 100644
--- a/data/ui/thumbnail.ui
+++ b/data/ui/thumbnail.ui
@@ -19,6 +19,9 @@
         <child>
           <object class="GtkImage" id="live_thumbnail">
             <property name="visible">True</property>
+            <style>
+              <class name="live-thumbnail"/>
+            </style>
           </object>
         </child>
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]