[libadwaita/wip/exalm/halign-fixes: 8/10] demo: Remove unnecessary haligns
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libadwaita/wip/exalm/halign-fixes: 8/10] demo: Remove unnecessary haligns
- Date: Sat, 27 Nov 2021 21:31:29 +0000 (UTC)
commit e53ba1e2bc6bbe6bbe37712ae060361f112e461c
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Sun Nov 28 01:42:36 2021 +0500
demo: Remove unnecessary haligns
Fix a typo in process.
demo/adw-demo-window.ui | 7 ++-----
demo/adw-style-demo-window.ui | 11 ++++-------
2 files changed, 6 insertions(+), 12 deletions(-)
---
diff --git a/demo/adw-demo-window.ui b/demo/adw-demo-window.ui
index 33851e48..636f7b48 100644
--- a/demo/adw-demo-window.ui
+++ b/demo/adw-demo-window.ui
@@ -589,7 +589,6 @@
<child>
<object class="AdwAvatar" id="avatar">
<property name="valign">center</property>
- <property name="halign">center</property>
<property name="size" bind-source="avatar_size"
bind-property="value" bind-flags="sync-create"></property>
<property name="show-initials"
bind-source="avatar_show_initials" bind-property="state" bind-flags="sync-create"/>
<property name="text" bind-source="avatar_text"
bind-property="text" bind-flags="sync-create"/>
@@ -598,8 +597,7 @@
<child>
<object class="GtkLabel">
<property name="label" translatable="yes">Avatar</property>
- <property name="halign">center</property>
- <property name="xalign">0</property>
+ <property name="xalign">0.5</property>
<property name="wrap">True</property>
<property name="wrap-mode">word-char</property>
<property name="justify">center</property>
@@ -1034,8 +1032,7 @@
<child>
<object class="GtkLabel">
<property name="label"
translatable="yes">Animations</property>
- <property name="halign">center</property>
- <property name="xalign">0</property>
+ <property name="xalign">0.5</property>
<property name="wrap">True</property>
<property name="wrap-mode">word-char</property>
<property name="justify">center</property>
diff --git a/demo/adw-style-demo-window.ui b/demo/adw-style-demo-window.ui
index 814acd6e..9929264a 100644
--- a/demo/adw-style-demo-window.ui
+++ b/demo/adw-style-demo-window.ui
@@ -731,7 +731,7 @@ The "card" style class can be used to achieve the same style with GtkBox or simi
<object class="GtkImage">
<property name="icon-name">org.gnome.Boxes</property>
<property name="pixel-size">128</property>
- <property name="halign">center</property>
+ <property name="valign">end</property>
<property name="tooltip-text">icon-dropshadow</property>
<style>
<class name="icon-dropshadow"/>
@@ -745,8 +745,7 @@ The "card" style class can be used to achieve the same style with GtkBox or simi
<child>
<object class="GtkLabel">
<property name="label">128</property>
- <property name="halign">center</property>
- <property name="valign">end</property>
+ <property name="xalign">0.5</property>
<layout>
<property name="column">0</property>
<property name="row">1</property>
@@ -757,7 +756,6 @@ The "card" style class can be used to achieve the same style with GtkBox or simi
<object class="GtkImage">
<property name="icon-name">org.gnome.Boxes</property>
<property name="pixel-size">64</property>
- <property name="halign">center</property>
<property name="valign">end</property>
<property name="tooltip-text">icon-dropshadow</property>
<style>
@@ -772,7 +770,7 @@ The "card" style class can be used to achieve the same style with GtkBox or simi
<child>
<object class="GtkLabel">
<property name="label">64</property>
- <property name="halign">center</property>
+ <property name="xalign">0.5</property>
<layout>
<property name="column">1</property>
<property name="row">1</property>
@@ -783,7 +781,6 @@ The "card" style class can be used to achieve the same style with GtkBox or simi
<object class="GtkImage">
<property name="icon-name">org.gnome.Boxes</property>
<property name="pixel-size">32</property>
- <property name="halign">center</property>
<property name="valign">end</property>
<property name="tooltip-text">lowres-icon</property>
<style>
@@ -798,7 +795,7 @@ The "card" style class can be used to achieve the same style with GtkBox or simi
<child>
<object class="GtkLabel">
<property name="label">32</property>
- <property name="halign">center</property>
+ <property name="xalign">0.5</property>
<layout>
<property name="column">2</property>
<property name="row">1</property>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]