From b221c865961536dc7391aac5619622f15ae59af8 Mon Sep 17 00:00:00 2001 From: frosty Date: Wed, 26 Aug 2026 07:38:40 -0400 Subject: fix: fixed message input and titlebar --- main/data/main_window.ui | 4 +++- main/data/style.css | 18 ++++++++++-------- main/src/ui/main_window.vala | 5 +++++ 3 files changed, 18 insertions(+), 9 deletions(-) diff --git a/main/data/main_window.ui b/main/data/main_window.ui index 8ca1b704..806db779 100644 --- a/main/data/main_window.ui +++ b/main/data/main_window.ui @@ -28,7 +28,7 @@ - + 6 6 6 @@ -39,12 +39,14 @@ True + center Search conversations False + center dino-open-menu-symbolic diff --git a/main/data/style.css b/main/data/style.css index 64394cae..c84551e6 100644 --- a/main/data/style.css +++ b/main/data/style.css @@ -9,18 +9,15 @@ statuspage { opacity: 0.5; } -window.dino-main headerbar.dino-chat-headerbar { +window.dino-main headerbar.dino-chat-headerbar, +window.dino-main .dino-conversation-list-toolbar { min-height: 44px; } -window.dino-main headerbar.dino-chat-headerbar > windowhandle > box { - padding-top: 5px; - padding-bottom: 5px; -} - +window.dino-main headerbar.dino-chat-headerbar > windowhandle > box, window.dino-main .dino-conversation-list-toolbar { - padding-top: 5px; - padding-bottom: 5px; + padding-top: 0; + padding-bottom: 0; } window.dino-main .dino-conversation undershoot, @@ -308,6 +305,11 @@ window.dino-main box.dino-chatinput.activatable:focus-within { outline-color: color-mix(in srgb, var(--accent-color) 50%, transparent); } +.dino-chatinput textview, +.dino-chatinput textview text { + background: none; +} + .dino-unread-line label { color: @theme_selected_bg_color; } diff --git a/main/src/ui/main_window.vala b/main/src/ui/main_window.vala index e18e0de3..cb873370 100644 --- a/main/src/ui/main_window.vala +++ b/main/src/ui/main_window.vala @@ -16,6 +16,7 @@ public class MainWindow : Gtk.ApplicationWindow { [GtkChild] public SearchEntry conversation_search_entry; [GtkChild] public MenuButton menu_button; + [GtkChild] private unowned Box conversation_list_toolbar; [GtkChild] public Adw.HeaderBar conversation_headerbar; [GtkChild] public Adw.WindowTitle conversation_window_title; @@ -53,6 +54,10 @@ public class MainWindow : Gtk.ApplicationWindow { this.add_css_class("dino-main"); + var header_size_group = new SizeGroup(SizeGroupMode.VERTICAL); + header_size_group.add_widget(conversation_list_toolbar); + header_size_group.add_widget(conversation_headerbar); + ((Widget)this).realize.connect(restore_window_size); conversation_selector.init(stream_interactor); -- cgit v1.3