summaryrefslogtreecommitdiffstats
path: root/src/gs-app-row.ui
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/gs-app-row.ui258
1 files changed, 258 insertions, 0 deletions
diff --git a/src/gs-app-row.ui b/src/gs-app-row.ui
new file mode 100644
index 0000000..8df9c8e
--- /dev/null
+++ b/src/gs-app-row.ui
@@ -0,0 +1,258 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+ <!-- interface-requires gtk+ 3.10 -->
+ <template class="GsAppRow" parent="GtkListBoxRow">
+ <style>
+ <class name="app"/>
+ </style>
+ <child>
+ <object class="GtkBox" id="box">
+ <property name="orientation">horizontal</property>
+ <style>
+ <class name="header"/>
+ </style>
+ <child>
+ <object class="GtkImage" id="image">
+ <property name="pixel_size">64</property>
+ <property name="valign">center</property>
+ <style>
+ <class name="icon-dropshadow"/>
+ </style>
+ </object>
+ </child>
+ <child>
+ <object class="GtkBox" id="name_box">
+ <property name="orientation">vertical</property>
+ <property name="valign">center</property>
+ <property name="hexpand">True</property>
+ <style>
+ <class name="title"/>
+ </style>
+ <child>
+ <object class="GtkLabel" id="name_label">
+ <property name="wrap">True</property>
+ <property name="xalign">0.0</property>
+ <property name="yalign">0.5</property>
+ <property name="ellipsize">end</property>
+ <property name="lines">3</property>
+ <property name="wrap-mode">word-char</property>
+ <style>
+ <class name="title"/>
+ </style>
+ </object>
+ </child>
+ <child>
+ <object class="GtkLabel" id="description_label">
+ <property name="visible" bind-source="GsAppRow" bind-property="show-description" bind-flags="sync-create"/>
+ <property name="valign">start</property>
+ <property name="vexpand">True</property>
+ <property name="wrap">True</property>
+ <property name="wrap-mode">word-char</property>
+ <property name="ellipsize">end</property>
+ <property name="lines">2</property>
+ <property name="xalign">0</property>
+ <style>
+ <class name="subtitle"/>
+ </style>
+ </object>
+ </child>
+ <child>
+ <object class="GtkBox" id="version_box">
+ <property name="orientation">horizontal</property>
+ <property name="spacing">4</property>
+ <child>
+ <object class="GtkLabel" id="version_current_label">
+ <property name="xalign">0.0</property>
+ <property name="yalign">0.5</property>
+ <property name="ellipsize">end</property>
+ <style>
+ <class name="subtitle"/>
+ </style>
+ </object>
+ </child>
+ <child>
+ <object class="GtkLabel" id="version_arrow_label">
+ <property name="xalign">0.0</property>
+ <property name="yalign">0.5</property>
+ <property name="ellipsize">end</property>
+ <property name="label">→</property>
+ <style>
+ <class name="version-arrow-label"/>
+ <class name="subtitle"/>
+ </style>
+ </object>
+ </child>
+ <child>
+ <object class="GtkLabel" id="version_update_label">
+ <property name="xalign">0.0</property>
+ <property name="yalign">0.5</property>
+ <property name="ellipsize">end</property>
+ <style>
+ <class name="subtitle"/>
+ </style>
+ </object>
+ </child>
+ </object>
+ </child>
+ <child>
+ <object class="GtkLabel" id="label_warning">
+ <property name="visible">False</property>
+ <property name="label">warning-text</property>
+ <property name="halign">start</property>
+ <property name="wrap">True</property>
+ <property name="xalign">0</property>
+ <style>
+ <class name="title"/>
+ <class name="warning"/>
+ </style>
+ </object>
+ </child>
+ <child>
+ <object class="GtkBox" id="system_updates_box">
+ <property name="orientation">horizontal</property>
+ <property name="spacing">4</property>
+ <property name="hexpand">True</property>
+ <property name="visible" bind-source="system_updates_label" bind-property="visible" bind-flags="sync-create"/>
+ <child>
+ <object class="GtkLabel" id="system_updates_label">
+ <property name="hexpand">True</property>
+ <property name="visible">False</property>
+ <property name="xalign">0.0</property>
+ <property name="yalign">0.5</property>
+ <property name="wrap">True</property>
+ <property name="wrap-mode">word-char</property>
+ <property name="ellipsize">end</property>
+ <property name="lines">2</property>
+ <style>
+ <class name="subtitle"/>
+ </style>
+ </object>
+ </child>
+ </object>
+ </child>
+ <child>
+ <object class="GtkLabel" id="label_app_size">
+ <property name="halign">start</property>
+ <property name="valign">center</property>
+ <property name="vexpand">True</property>
+ <property name="label">150 MB</property>
+ <style>
+ <class name="subtitle"/>
+ </style>
+ </object>
+ </child>
+ <child>
+ <object class="GsStarWidget" id="star">
+ <property name="visible">False</property>
+ <property name="halign">start</property>
+ <property name="icon-size">12</property>
+ </object>
+ </child>
+ </object>
+ </child>
+ <child>
+ <object class="GtkBox" id="box_tag">
+ <property name="orientation">vertical</property>
+ <property name="valign">center</property>
+ <child>
+ <object class="GtkBox" id="box_desc">
+ <property name="orientation">horizontal</property>
+ <property name="vexpand">True</property>
+ <child>
+ <object class="GtkLabel" id="label_origin">
+ <property name="xalign">0.0</property>
+ <property name="yalign">1.0</property>
+ <property name="halign">start</property>
+ <property name="hexpand">True</property>
+ <property name="ellipsize">end</property>
+ <style>
+ <class name="app-row-origin-text"/>
+ <class name="dim-label"/>
+ <class name="subtitle"/>
+ </style>
+ </object>
+ </child>
+ <child>
+ <object class="GtkBox" id="label_installed">
+ <property name="visible">False</property>
+ <property name="orientation">horizontal</property>
+ <property name="halign">end</property>
+ <property name="hexpand">True</property>
+ <property name="valign">end</property>
+ <property name="spacing">6</property>
+ <child>
+ <object class="GtkImage" id="installed-icon">
+ <property name="halign">center</property>
+ <property name="valign">center</property>
+ <property name="pixel-size">16</property>
+ <property name="icon-name">app-installed-symbolic</property>
+ <style>
+ <class name="success"/>
+ </style>
+ </object>
+ </child>
+ <child>
+ <object class="GtkLabel" id="installed-label">
+ <property name="valign">center</property>
+ <property name="label" translatable="yes" context="Single app">Installed</property>
+ <style>
+ <class name="caption"/>
+ <class name="subtitle"/>
+ </style>
+ </object>
+ </child>
+ </object>
+ </child>
+ </object>
+ </child>
+ </object>
+ </child>
+ <child>
+ <object class="GtkBox" id="vertical_box">
+ <property name="orientation">vertical</property>
+ <property name="halign">center</property>
+ <property name="valign">center</property>
+ <child>
+ <object class="GtkBox" id="button_box">
+ <property name="orientation">horizontal</property>
+ <property name="halign">end</property>
+ <property name="valign">center</property>
+ <child>
+ <object class="GtkRevealer" id="button_revealer">
+ <property name="reveal-child">True</property>
+ <child>
+ <object class="GsProgressButton" id="button">
+ <property name="visible">False</property>
+ <property name="halign">end</property>
+ <property name="show-icon" bind-source="GsAppRow" bind-property="is-narrow" bind-flags="sync-create"/>
+ <style>
+ <class name="list-button"/>
+ </style>
+ </object>
+ </child>
+ </object>
+ </child>
+ <child>
+ <object class="GtkSpinner" id="spinner">
+ <property name="visible">False</property>
+ <property name="margin_start">12</property>
+ <property name="margin_end">12</property>
+ <property name="halign">end</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkLabel" id="label">
+ <property name="visible">False</property>
+ <property name="margin_start">12</property>
+ <property name="margin_end">12</property>
+ <property name="halign">end</property>
+ </object>
+ </child>
+ </object>
+ </child>
+ </object>
+ </child>
+ </object>
+ </child>
+ </template>
+</interface>