diff --git a/src/style.css b/src/style.css index 00f18f2..a768783 100644 --- a/src/style.css +++ b/src/style.css @@ -6,3 +6,16 @@ .message-text-view { background-color: #EBEBEB; } +.chat_row box.header { + font-size: 14px; +} +.chat_row box { + margin: 0; +} +.chat_row button { + opacity: 0; + transition: opacity .05s; +} +.chat_row:hover button { + opacity: 1; +} diff --git a/src/window.py b/src/window.py index 87864a2..154a7a6 100644 --- a/src/window.py +++ b/src/window.py @@ -995,35 +995,6 @@ class AlpacaWindow(Adw.ApplicationWindow): def __init__(self, **kwargs): super().__init__(**kwargs) GtkSource.init() - #CSS - css_provider = Gtk.CssProvider() - css_provider.load_from_data(b""" - .chat_row:not(:selected) { - - } - .chat_row:not(:selected):hover { - - } - .chat_row box.header { - font-size: 14px; - } - .chat_row box { - margin: 0; - } - .chat_row button { - opacity: 0; - transition: opacity .05s; - } - .chat_row:hover button { - opacity: 1; - } - """) - display = Gdk.Display.get_default() - Gtk.StyleContext.add_provider_for_display( - display, css_provider, Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION - ) - - self.set_help_overlay(self.shortcut_window) self.get_application().set_accels_for_action("win.show-help-overlay", ['slash']) self.get_application().create_action('send', lambda *_: self.send_message(self), ['Return'])