diff options
author | fiaxh <git@lightrise.org> | 2023-04-22 19:47:32 +0200 |
---|---|---|
committer | fiaxh <git@lightrise.org> | 2023-04-22 19:52:28 +0200 |
commit | 03e367ecb88fe142a6244b397ca32531160ccbb0 (patch) | |
tree | a7313b9680f8757af479c6050f637eecae98fd46 | |
parent | 83476d1cadf7c2bddc79c2e44b6b4e28192f8f18 (diff) | |
download | dino-03e367ecb88fe142a6244b397ca32531160ccbb0.tar.gz dino-03e367ecb88fe142a6244b397ca32531160ccbb0.zip |
Fix call window styling
-rw-r--r-- | main/data/style.css | 8 | ||||
-rw-r--r-- | main/src/ui/call_window/participant_widget.vala | 3 |
2 files changed, 2 insertions, 9 deletions
diff --git a/main/data/style.css b/main/data/style.css index deac24fe..af1c58fa 100644 --- a/main/data/style.css +++ b/main/data/style.css @@ -396,17 +396,13 @@ box.dino-input-error .chat-input-status.input-status-highlight-once { text-shadow: 0 0 2px black; } -.dino-call-window .call-header-background { +.dino-call-window .participant-header-bar { background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0)); border: 0; border-radius: 0; } -.dino-call-window .participant-header-bar button { - background: none; -} - -.dino-call-window .participant-header-bar button:hover { +.dino-call-window .participant-header-bar button:hover:not(.close) { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0); box-shadow: none; diff --git a/main/src/ui/call_window/participant_widget.vala b/main/src/ui/call_window/participant_widget.vala index 8ec1f5ea..bed64c30 100644 --- a/main/src/ui/call_window/participant_widget.vala +++ b/main/src/ui/call_window/participant_widget.vala @@ -74,14 +74,11 @@ namespace Dino.Ui { header_bar.show_title_buttons = is_highest_row; if (is_highest_row) { - header_bar.add_css_class("call-header-background"); Gtk.Settings? gtk_settings = Gtk.Settings.get_default(); if (gtk_settings != null) { string[] buttons = gtk_settings.gtk_decoration_layout.split(":"); header_bar.decoration_layout = (is_start ? buttons[0] : "") + ":" + (is_end && buttons.length == 2 ? buttons[1] : ""); } - } else { - header_bar.remove_css_class("call-header-background"); } reveal_or_hide_controls(); } |