[gtksourceview] styleschemepreview: shrink checkmark image



commit 60ba58b9c312fbd42aa4f4fae0f9f6c784397794
Author: Christian Hergert <chergert redhat com>
Date:   Mon Oct 11 17:11:49 2021 -0700

    styleschemepreview: shrink checkmark image
    
    This makes things closer to the initial design.

 gtksourceview/GtkSourceView.css             | 2 +-
 gtksourceview/gtksourcestyleschemepreview.c | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/gtksourceview/GtkSourceView.css b/gtksourceview/GtkSourceView.css
index dbce7367..4484b3a7 100644
--- a/gtksourceview/GtkSourceView.css
+++ b/gtksourceview/GtkSourceView.css
@@ -158,6 +158,6 @@ GtkSourceStyleSchemePreview.selected image {
   border-radius: 9999px;
   background-color: @theme_selected_bg_color;
   color: @theme_selected_fg_color;
-  padding: 6px;
+  padding: 3px;
   margin: 3px;
 }
diff --git a/gtksourceview/gtksourcestyleschemepreview.c b/gtksourceview/gtksourcestyleschemepreview.c
index 654f7765..4fd4fc13 100644
--- a/gtksourceview/gtksourcestyleschemepreview.c
+++ b/gtksourceview/gtksourcestyleschemepreview.c
@@ -181,6 +181,7 @@ gtk_source_style_scheme_preview_constructed (GObject *object)
        label = g_object_new (GTK_TYPE_LABEL, NULL);
        self->image = g_object_new (GTK_TYPE_IMAGE,
                                    "icon-name", "object-select-symbolic",
+                                   "pixel-size", 8,
                                    "halign", GTK_ALIGN_END,
                                    "valign", GTK_ALIGN_END,
                                    "visible", FALSE,


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