Fix call window styling

This commit is contained in:
fiaxh 2023-04-22 19:47:32 +02:00
parent 83476d1cad
commit 03e367ecb8
2 changed files with 2 additions and 9 deletions

View file

@ -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;

View file

@ -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();
}