[gnome-builder] libide/plugins: tweak plugin info view



commit ea7d8534193f88b2196ef4d0754984275a2b248e
Author: Christian Hergert <chergert redhat com>
Date:   Wed Aug 17 21:34:34 2022 -0700

    libide/plugins: tweak plugin info view

 src/libide/plugins/ide-plugin-view.ui | 25 +++++++++++++++----------
 src/libide/tweaks/style.css           |  4 ++++
 2 files changed, 19 insertions(+), 10 deletions(-)
---
diff --git a/src/libide/plugins/ide-plugin-view.ui b/src/libide/plugins/ide-plugin-view.ui
index a90e6b583..3acd61b40 100644
--- a/src/libide/plugins/ide-plugin-view.ui
+++ b/src/libide/plugins/ide-plugin-view.ui
@@ -3,8 +3,8 @@
   <template class="IdePluginView" parent="GtkWidget">
     <child>
       <object class="GtkGrid">
-        <property name="margin-top">6</property>
-        <property name="margin-bottom">6</property>
+        <property name="margin-top">12</property>
+        <property name="margin-bottom">12</property>
         <property name="margin-start">6</property>
         <property name="margin-end">6</property>
         <property name="column-spacing">12</property>
@@ -13,7 +13,6 @@
           <object class="GtkLabel">
             <property name="xalign">0</property>
             <property name="hexpand">true</property>
-            <property name="margin-top">6</property>
             <property name="margin-bottom">6</property>
             <property name="selectable">true</property>
             <binding name="label">
@@ -30,7 +29,8 @@
         </child>
         <child>
           <object class="GtkLabel">
-            <property name="xalign">0</property>
+            <property name="margin-start">12</property>
+            <property name="xalign">1</property>
             <property name="label" translatable="yes">Authors</property>
             <style>
               <class name="dim-label"/>
@@ -59,7 +59,8 @@
         </child>
         <child>
           <object class="GtkLabel">
-            <property name="xalign">0</property>
+            <property name="margin-start">12</property>
+            <property name="xalign">1</property>
             <property name="label" translatable="yes">Version</property>
             <style>
               <class name="dim-label"/>
@@ -88,7 +89,8 @@
         </child>
         <child>
           <object class="GtkLabel">
-            <property name="xalign">0</property>
+            <property name="margin-start">12</property>
+            <property name="xalign">1</property>
             <property name="label" translatable="yes">Website</property>
             <style>
               <class name="dim-label"/>
@@ -100,15 +102,18 @@
           </object>
         </child>
         <child>
-          <object class="GtkLabel">
-            <property name="xalign">0</property>
-            <property name="hexpand">true</property>
-            <property name="selectable">true</property>
+          <object class="GtkLinkButton">
+            <property name="halign">start</property>
             <binding name="label">
               <lookup name="website" type="IdePlugin">
                 <lookup name="plugin">IdePluginView</lookup>
               </lookup>
             </binding>
+            <binding name="uri">
+              <lookup name="website" type="IdePlugin">
+                <lookup name="plugin">IdePluginView</lookup>
+              </lookup>
+            </binding>
             <layout>
               <property name="row">3</property>
               <property name="column">1</property>
diff --git a/src/libide/tweaks/style.css b/src/libide/tweaks/style.css
index 1e958d178..8f77d0a4f 100644
--- a/src/libide/tweaks/style.css
+++ b/src/libide/tweaks/style.css
@@ -12,3 +12,7 @@
 .IdeTweaksWindow .checkimage check:checked {
   -gtk-icon-source: -gtk-icontheme('object-select-symbolic');
 }
+.IdeTweaksWindow button.link {
+  padding: 0;
+  margin: 0;
+}


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