[gnome-tetravex] Improve Scores dialog.



commit 8e553fb1a7d9bbf9d302e713a360c451e1bcceee
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Fri Oct 11 17:52:11 2019 +0200

    Improve Scores dialog.
    
    Add a bit padding.

 src/score-dialog.vala |  2 ++
 src/tetravex.css      | 22 ++++++++++++++++++++++
 2 files changed, 24 insertions(+)
---
diff --git a/src/score-dialog.vala b/src/score-dialog.vala
index 0aafd92..e36093a 100644
--- a/src/score-dialog.vala
+++ b/src/score-dialog.vala
@@ -24,6 +24,8 @@ private class ScoreDialog : Dialog
     {
         Object (use_header_bar: /* true */ 1);
 
+        get_style_context ().add_class ("score-dialog");
+
         this.history = history;
         history.entry_added.connect (entry_added_cb);
         this.selected_entry = selected_entry;
diff --git a/src/tetravex.css b/src/tetravex.css
index cdf373a..74b58a3 100644
--- a/src/tetravex.css
+++ b/src/tetravex.css
@@ -41,3 +41,25 @@ button.rounded-button {
   border-radius:       9999px;
   -gtk-outline-radius: 9999px;
 }
+
+/*\
+* * Scores dialog
+\*/
+
+.score-dialog treeview:dir(ltr) {
+  padding-left: 0.3rem;
+  padding-right: 0.6rem;
+}
+.score-dialog treeview:dir(rtl) {
+  padding-left: 0.6rem;
+  padding-right: 0.3rem;
+}
+
+.score-dialog treeview > header > button {
+  padding-left:0.6rem;
+  padding-right:0.6rem;
+}
+
+/*\
+* * the end
+\*/


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