From 9080e84089e39306fcc530ee8beddada536786b0 Mon Sep 17 00:00:00 2001 From: jeffser Date: Wed, 22 May 2024 19:48:06 -0600 Subject: [PATCH] Autohide chat control buttons --- src/style.css | 7 +++++++ src/window.py | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/style.css b/src/style.css index c75a9a5..167f24a 100644 --- a/src/style.css +++ b/src/style.css @@ -10,3 +10,10 @@ .chat_row box { margin: 0; } +.chat_row button { + opacity: 0; + transition: opacity .05s; +} +.chat_row:hover button, .chat_row:selected button { + opacity: 1; +} diff --git a/src/window.py b/src/window.py index deeaf84..f90d072 100644 --- a/src/window.py +++ b/src/window.py @@ -817,7 +817,7 @@ class AlpacaWindow(Adw.ApplicationWindow): self.chat_list_box.remove_all() for name, content in self.chats['chats'].items(): chat_content = Gtk.Box( - spacing = 12, + spacing = 6, ) chat_row = Gtk.ListBoxRow( css_classes = ["chat_row"],