Fix call window styling
This commit is contained in:
parent
83476d1cad
commit
03e367ecb8
|
@ -396,17 +396,13 @@ box.dino-input-error .chat-input-status.input-status-highlight-once {
|
||||||
text-shadow: 0 0 2px black;
|
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));
|
background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0));
|
||||||
border: 0;
|
border: 0;
|
||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dino-call-window .participant-header-bar button {
|
.dino-call-window .participant-header-bar button:hover:not(.close) {
|
||||||
background: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.dino-call-window .participant-header-bar button:hover {
|
|
||||||
background: rgba(255,255,255,0.15);
|
background: rgba(255,255,255,0.15);
|
||||||
border-color: rgba(255,255,255,0);
|
border-color: rgba(255,255,255,0);
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
|
|
|
@ -74,14 +74,11 @@ namespace Dino.Ui {
|
||||||
|
|
||||||
header_bar.show_title_buttons = is_highest_row;
|
header_bar.show_title_buttons = is_highest_row;
|
||||||
if (is_highest_row) {
|
if (is_highest_row) {
|
||||||
header_bar.add_css_class("call-header-background");
|
|
||||||
Gtk.Settings? gtk_settings = Gtk.Settings.get_default();
|
Gtk.Settings? gtk_settings = Gtk.Settings.get_default();
|
||||||
if (gtk_settings != null) {
|
if (gtk_settings != null) {
|
||||||
string[] buttons = gtk_settings.gtk_decoration_layout.split(":");
|
string[] buttons = gtk_settings.gtk_decoration_layout.split(":");
|
||||||
header_bar.decoration_layout = (is_start ? buttons[0] : "") + ":" + (is_end && buttons.length == 2 ? buttons[1] : "");
|
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();
|
reveal_or_hide_controls();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue