[gnome-maps/wip/mlundblad/rearrange-bubble-title-boxes: 2/2] placeView: Put title and native title in a sub box
- From: Marcus Lundblad <mlundblad src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps/wip/mlundblad/rearrange-bubble-title-boxes: 2/2] placeView: Put title and native title in a sub box
- Date: Wed, 3 Mar 2021 22:06:57 +0000 (UTC)
commit 2f4dc1d5d30847e33d9e0c1746b6d5f74192b80b
Author: Marcus Lundblad <ml update uu se>
Date: Wed Mar 3 22:35:07 2021 +0100
placeView: Put title and native title in a sub box
Avoids putting explicit margins on native title
and address to achieve smaller gap between
title and native title than the others.
Also looks better when there is no address.
data/ui/place-view.ui | 90 +++++++++++++++++++++++++++------------------------
1 file changed, 48 insertions(+), 42 deletions(-)
---
diff --git a/data/ui/place-view.ui b/data/ui/place-view.ui
index a5a41827..95fee9dc 100644
--- a/data/ui/place-view.ui
+++ b/data/ui/place-view.ui
@@ -30,66 +30,73 @@
<property name="can_focus">False</property>
<property name="orientation">vertical</property>
<property name="margin">18</property>
- <property name="spacing">6</property>
+ <property name="spacing">12</property>
<child>
<object class="GtkBox">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="orientation">horizontal</property>
- <property name="spacing">12</property>
+ <property name="orientation">vertical</property>
<child>
- <object class="HdyAvatar" id="contact-avatar">
- <property name="visible">False</property>
+ <object class="GtkBox">
+ <property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="show_initials">True</property>
- <property name="size">32</property>
+ <property name="orientation">horizontal</property>
+ <property name="spacing">12</property>
+ <child>
+ <object class="HdyAvatar" id="contact-avatar">
+ <property name="visible">False</property>
+ <property name="can_focus">False</property>
+ <property name="show_initials">True</property>
+ <property name="size">32</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkLabel" id="label-title">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="halign">start</property>
+ <property name="expand">True</property>
+ <property name="wrap">True</property>
+ <property name="max_width_chars">30</property>
+ <property name="xalign">0</property>
+ <style>
+ <class name="title-2"/>
+ </style>
+ </object>
+ </child>
+ <child>
+ <object class="GtkButton" id="send-to-button-alt">
+ <property name="visible">False</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">False</property>
+ <property name="tooltip-text" translatable="yes" comments="Translators: This is a
tooltip">Share location</property>
+ <child>
+ <object class="GtkImage">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="icon-name">send-to-symbolic</property>
+ <property name="pixel_size">16</property>
+ </object>
+ </child>
+ </object>
+ </child>
</object>
</child>
<child>
- <object class="GtkLabel" id="label-title">
- <property name="visible">True</property>
+ <object class="GtkLabel" id="native-name">
+ <property name="visible">False</property>
<property name="can_focus">False</property>
<property name="halign">start</property>
<property name="expand">True</property>
<property name="wrap">True</property>
<property name="max_width_chars">30</property>
<property name="xalign">0</property>
+ <property name="margin-top">6</property>
<style>
- <class name="title-2"/>
+ <class name="dim-label"/>
</style>
</object>
</child>
- <child>
- <object class="GtkButton" id="send-to-button-alt">
- <property name="visible">False</property>
- <property name="can_focus">True</property>
- <property name="receives_default">False</property>
- <property name="tooltip-text" translatable="yes" comments="Translators: This is a
tooltip">Share location</property>
- <child>
- <object class="GtkImage">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="icon-name">send-to-symbolic</property>
- <property name="pixel_size">16</property>
- </object>
- </child>
- </object>
- </child>
- </object>
- </child>
- <child>
- <object class="GtkLabel" id="native-name">
- <property name="visible">False</property>
- <property name="can_focus">False</property>
- <property name="halign">start</property>
- <property name="expand">True</property>
- <property name="wrap">True</property>
- <property name="max_width_chars">30</property>
- <property name="xalign">0</property>
- <property name="margin-bottom">6</property>
- <style>
- <class name="dim-label"/>
- </style>
</object>
</child>
<child>
@@ -100,7 +107,6 @@
<property name="xalign">0</property>
<property name="use_markup">True</property>
<property name="wrap">True</property>
- <property name="margin-bottom">6</property>
</object>
</child>
<child>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]