[geary: 1/3] Use a HdyTitleBar
- From: Michael Gratton <mjog src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geary: 1/3] Use a HdyTitleBar
- Date: Mon, 20 Jan 2020 21:20:58 +0000 (UTC)
commit 392c13472435b8e7957144218afc0ceba928ea04
Author: Adrien Plazas <kekun plazas laposte net>
Date: Thu Jan 16 14:12:03 2020 +0100
Use a HdyTitleBar
Also add the .sidebar style class to the separator to make it still take
the whole height. This will help dropping styling workarounds and ensure
animating the headerbars work well.
src/client/application/application-main-window.vala | 5 ++++-
ui/main-toolbar.ui | 3 +++
2 files changed, 7 insertions(+), 1 deletion(-)
---
diff --git a/src/client/application/application-main-window.vala
b/src/client/application/application-main-window.vala
index d605e027..97920ff6 100644
--- a/src/client/application/application-main-window.vala
+++ b/src/client/application/application-main-window.vala
@@ -1221,7 +1221,10 @@ public class Application.MainWindow :
this.main_toolbar.show_close_button = false;
this.main_layout.pack_start(main_toolbar, false, true, 0);
} else {
- set_titlebar(this.main_toolbar);
+ var titlebar = new Hdy.TitleBar();
+ titlebar.show();
+ titlebar.add(this.main_toolbar);
+ set_titlebar(titlebar);
}
// Status bar
diff --git a/ui/main-toolbar.ui b/ui/main-toolbar.ui
index 5cf9e4d8..83b7b978 100644
--- a/ui/main-toolbar.ui
+++ b/ui/main-toolbar.ui
@@ -89,6 +89,9 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="orientation">vertical</property>
+ <style>
+ <class name="sidebar"/>
+ </style>
</object>
<packing>
<property name="expand">False</property>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]