diff options
Diffstat (limited to '')
-rw-r--r-- | src/gs-app-tile.ui | 129 |
1 files changed, 129 insertions, 0 deletions
diff --git a/src/gs-app-tile.ui b/src/gs-app-tile.ui new file mode 100644 index 0000000..8333843 --- /dev/null +++ b/src/gs-app-tile.ui @@ -0,0 +1,129 @@ +<?xml version="1.0" encoding="UTF-8"?> +<interface> + <!-- interface-requires gtk+ 3.10 --> + <template class="GsAppTile" parent="GtkButton"> + <property name="hexpand">True</property> + <!-- This is the minimum (sic!) width of a tile when the GtkFlowBox parent container switches to 3 columns --> + <property name="preferred-width">270</property> + <style> + <class name="card"/> + </style> + <child> + <object class="GtkStack" id="stack"> + + <child> + <object class="GtkStackPage"> + <property name="name">waiting</property> + <property name="child"> + <object class="GtkImage" id="waiting"> + <property name="halign">center</property> + <property name="valign">center</property> + <property name="pixel-size">16</property> + <property name="icon-name">content-loading-symbolic</property> + <style> + <class name="dim-label"/> + </style> + </object> + </property> + </object> + </child> + + <child> + <object class="GtkStackPage"> + <property name="name">content</property> + <property name="child"> + <object class="GtkOverlay" id="overlay"> + <property name="halign">fill</property> + <property name="valign">fill</property> + <child type="overlay"> + <object class="AdwBin"> + <property name="visible">False</property> + <property name="halign">start</property> + <property name="valign">start</property> + <property name="margin-top">58</property> + <property name="margin-start">12</property> + <style> + <class name="installed-overlay-box"/> + </style> + <child> + <object class="GtkLabel" id="installed-label"> + <property name="label" translatable="yes" context="Single app">Installed</property> + <property name="margin-start">16</property> + <property name="margin-end">16</property> + <property name="margin-top">4</property> + <property name="margin-bottom">4</property> + </object> + </child> + </object> + </child> + <child> + <object class="GtkGrid" id="grid"> + <property name="margin-top">14</property> + <property name="margin-bottom">15</property> + <property name="margin-start">17</property> + <property name="margin-end">17</property> + <property name="row-spacing">3</property> + <property name="column-spacing">12</property> + <child> + <object class="GtkImage" id="image"> + <property name="width-request">64</property> + <property name="height-request">64</property> + <style> + <class name="icon-dropshadow"/> + </style> + <layout> + <property name="column">0</property> + <property name="row">0</property> + <property name="column-span">1</property> + <property name="row-span">3</property> + </layout> + </object> + </child> + <child> + <object class="GtkLabel" id="name"> + <property name="ellipsize">end</property> + <property name="xalign">0.0</property> + <attributes> + <attribute name="weight" value="bold"/> + </attributes> + <style> + <class name="app-tile-label"/> + </style> + <layout> + <property name="column">1</property> + <property name="row">0</property> + <property name="column-span">1</property> + <property name="row-span">1</property> + </layout> + </object> + </child> + <child> + <object class="GtkLabel" id="summary"> + <property name="ellipsize">end</property> + <property name="xalign">0.0</property> + <property name="yalign">0.0</property> + <property name="lines">2</property> + <property name="vexpand">True</property> + <property name="single-line-mode">True</property> + <style> + <class name="app-tile-label"/> + </style> + <layout> + <property name="column">1</property> + <property name="row">2</property> + <property name="column-span">1</property> + <property name="row-span">1</property> + </layout> + </object> + </child> + </object> + </child> + </object> + </property> + </object> + </child> + + </object> + </child> + </template> +</interface> |