[gnome-clocks] Stopwatch: rounded buttons



commit c947a7b50b9509a50de90394bfac080ee9107d8b
Author: Tobias Bernard <tbernard gnome org>
Date:   Sun Feb 16 07:59:14 2020 +0000

    Stopwatch: rounded buttons

 data/css/gnome-clocks.css | 8 ++++++++
 data/ui/stopwatch.ui      | 4 ++++
 2 files changed, 12 insertions(+)
---
diff --git a/data/css/gnome-clocks.css b/data/css/gnome-clocks.css
index d1af87c..fd0ee6f 100644
--- a/data/css/gnome-clocks.css
+++ b/data/css/gnome-clocks.css
@@ -299,3 +299,11 @@ spinbutton.clocks-timer-label button {
     color: black;
 }
 
+.pill-button {
+    border-radius: 9999px;
+    -gtk-outline-radius: 9999px;
+}
+.pill-button:focus {
+    -gtk-outline-radius: 9999px;
+}
+
diff --git a/data/ui/stopwatch.ui b/data/ui/stopwatch.ui
index e6a1049..5ed7320 100644
--- a/data/ui/stopwatch.ui
+++ b/data/ui/stopwatch.ui
@@ -170,10 +170,12 @@
                     <property name="can_focus">True</property>
                     <property name="receives_default">True</property>
                     <property name="width_request">120</property>
+                    <property name="margin_left">6</property>
                     <signal name="clicked" handler="on_start_btn_clicked" swapped="no"/>
                     <style>
                       <class name="suggested-action"/>
                       <class name="large-button"/>
+                      <class name="pill-button"/>
                     </style>
                   </object>
                   <packing>
@@ -190,8 +192,10 @@
                     <property name="receives_default">True</property>
                     <signal name="clicked" handler="on_clear_btn_clicked" swapped="no"/>
                     <property name="width_request">120</property>
+                    <property name="margin_right">6</property>
                     <style>
                       <class name="large-button"/>
+                      <class name="pill-button"/>
                     </style>
                   </object>
                   <packing>


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