[gnome-2048/arnaudb/wip/gtk4: 43/48] Make gameover-label better.




commit 013a8b2f9e033c359477700a053f974ae2ac6b35
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Thu Jul 16 17:59:14 2020 +0200

    Make gameover-label better.

 data/gnome-2048.css | 11 +++++++++++
 data/mainwindow.ui  |  3 +++
 2 files changed, 14 insertions(+)
---
diff --git a/data/gnome-2048.css b/data/gnome-2048.css
index d84cd77..bd49939 100644
--- a/data/gnome-2048.css
+++ b/data/gnome-2048.css
@@ -1,3 +1,14 @@
 .background-grid {
   background-color:#babdb6;
 }
+
+/*\
+* * gameover
+\*/
+
+.gameover-label {
+  font-family: "Bitstream Vera Sans"; /* same as Swell Foop */
+  font-weight: bold;
+  font-size: 28px;
+  color: black;
+}
diff --git a/data/mainwindow.ui b/data/mainwindow.ui
index 1e8dd37..fb40e6b 100644
--- a/data/mainwindow.ui
+++ b/data/mainwindow.ui
@@ -38,6 +38,9 @@
           <object class="GtkLabel" id="_gameover_label">
             <property name="visible">False</property>
             <property name="label" translatable="yes">Game Over</property>
+            <style>
+              <class name="gameover-label"/>
+            </style>
           </object>
         </child>
         <child type="overlay">


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