Skip to content

Commit

Permalink
#50 center button content on emptystate widget
Browse files Browse the repository at this point in the history
  • Loading branch information
amka committed Jun 6, 2022
1 parent 58469c3 commit e33cbbf
Showing 1 changed file with 89 additions and 69 deletions.
158 changes: 89 additions & 69 deletions data/ui/window.ui
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,22 @@
<property name="action_name">app.get_screenshot</property>
<property name="height_request">40</property>
<style>
<class name="pill" />
<class name="pill"/>
</style>
<property name="child">
<object class="AdwButtonContent">
<property name="label" translatable="yes">Take a Screenshot</property>
<property name="icon-name">camera-photo-symbolic</property>
<object class="GtkBox">
<property name="halign">center</property>
<property name="spacing">6</property>
<child>
<object class="GtkImage">
<property name="icon-name">camera-photo-symbolic</property>
</object>
</child>
<child>
<object class="GtkLabel">
<property name="label" translatable="yes">Take a Screenshot</property>
</object>
</child>
</object>
</property>
</object>
Expand All @@ -76,13 +86,22 @@
<property name="action_name">app.preferences</property>
<property name="height_request">40</property>
<style>
<class name="pill" />
<class name="pill"/>
</style>
<property name="child">
<object class="AdwButtonContent">
<property name="label" translatable="yes">_Configure Languages</property>
<property name="icon-name">preferences-desktop-locale-symbolic</property>
<property name="use-underline">True</property>
<object class="GtkBox">
<property name="halign">center</property>
<property name="spacing">6</property>
<child>
<object class="GtkImage">
<property name="icon-name">preferences-desktop-locale-symbolic</property>
</object>
</child>
<child>
<object class="GtkLabel">
<property name="label" translatable="yes">Configure Languages</property>
</object>
</child>
</object>
</property>
</object>
Expand All @@ -100,11 +119,11 @@
<property name="name">extracted</property>
<property name="title">Extracted</property>
<property name="child">
<object class="GtkScrolledWindow" id="text_scrollview">
<property name="focusable">1</property>
<property name="hexpand">1</property>
<property name="vexpand">1</property>
</object>
<object class="GtkScrolledWindow" id="text_scrollview">
<property name="focusable">1</property>
<property name="hexpand">1</property>
<property name="vexpand">1</property>
</object>
</property>
</object>
</child>
Expand All @@ -117,70 +136,71 @@
<object class="GtkBox">
<property name="orientation">vertical</property>
<child>
<object class="GtkSeparator" />
<object class="GtkSeparator"/>
</child>
<child>
<object class="GtkBox">
<property name="margin-start">8</property>
<property name="margin-end">8</property>
<property name="margin-top">8</property>
<property name="margin-bottom">8</property>
<property name="spacing">8</property>
<child>
<object class="GtkButton" id="text_shot_btn">
<property name="action_name">app.get_screenshot</property>
<property name="focusable">1</property>
<property name="receives-default">1</property>
<property name="tooltip-markup" translatable="yes">Take a screenshot</property>
<style>
<class name="suggested-action" />
</style>
<property name="child">
<object class="AdwButtonContent">
<property name="label">Take a Screenshot</property>
<property name="icon-name">camera-photo-symbolic</property>
<property name="margin-start">8</property>
<property name="margin-end">8</property>
<property name="margin-top">8</property>
<property name="margin-bottom">8</property>
<property name="spacing">8</property>
<child>
<object class="GtkButton" id="text_shot_btn">
<property name="action_name">app.get_screenshot</property>
<property name="focusable">1</property>
<property name="receives-default">1</property>
<property name="tooltip-markup" translatable="yes">Take a screenshot</property>
<style>
<class name="suggested-action"/>
</style>
<property name="child">
<object class="AdwButtonContent">
<property name="label">Take a Screenshot</property>
<property name="icon-name">camera-photo-symbolic</property>
</object>
</property>
</object>
</property>
</object>
</child>
<child>
<object class="GtkBox">
<property name="hexpand">1</property>
</object>
</child>
<child>
<object class="GtkButton" id="text_clear_btn">
<property name="focusable">1</property>
<property name="receives-default">1</property>
<property name="tooltip-text" translatable="yes">Clear the extraction results</property>
<style>
<class name="flat" />
</style>
<property name="child">
<object class="AdwButtonContent">
<property name="icon-name">edit-clear-symbolic</property>
</child>
<child>
<object class="GtkBox">
<property name="hexpand">1</property>
</object>
</property>
</object>
</child>
<child>
<object class="GtkButton" id="text_copy_btn">
<property name="focusable">1</property>
<property name="receives-default">1</property>
<property name="tooltip-text" translatable="yes">Copy extracted text to clipboard</property>
<style>
<class name="flat" />
</style>
<property name="child">
<object class="AdwButtonContent">
<property name="icon-name">edit-copy-symbolic</property>
</child>
<child>
<object class="GtkButton" id="text_clear_btn">
<property name="focusable">1</property>
<property name="receives-default">1</property>
<property name="tooltip-text" translatable="yes">Clear the extraction results</property>
<style>
<class name="flat"/>
</style>
<property name="child">
<object class="AdwButtonContent">
<property name="icon-name">edit-clear-symbolic</property>
</object>
</property>
</object>
</property>
</child>
<child>
<object class="GtkButton" id="text_copy_btn">
<property name="focusable">1</property>
<property name="receives-default">1</property>
<property name="tooltip-text" translatable="yes">Copy extracted text to clipboard
</property>
<style>
<class name="flat"/>
</style>
<property name="child">
<object class="AdwButtonContent">
<property name="icon-name">edit-copy-symbolic</property>
</object>
</property>
</object>
</child>
</object>
</child>
</object>
</child>
</object>
</property>
</object>
</child>
Expand Down

0 comments on commit e33cbbf

Please sign in to comment.