screenshot-ui: Add a check icon to selected window

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1954>
This commit is contained in:
Ivan Molodetskikh 2021-12-17 08:58:00 +03:00 committed by Marge Bot
parent 4c198fe2c7
commit 1321bb7557
2 changed files with 20 additions and 0 deletions

View File

@ -113,6 +113,14 @@
border: 6px transparent;
}
.screenshot-ui-window-selector-check {
transition-duration: 200ms;
color: transparent;
border-radius: 99px;
border-width: 12px;
icon-size: 24px;
}
.screenshot-ui-window-selector-window {
&:hover {
.screenshot-ui-window-selector-window-border {
@ -124,6 +132,11 @@
border-color: $selected_bg_color;
background-color: transparentize($selected_bg_color, 0.8);
}
.screenshot-ui-window-selector-check {
color: white;
background-color: $selected_bg_color;
}
}
}

View File

@ -719,6 +719,13 @@ class UIWindowSelectorWindow extends St.Button {
});
this.add_child(this._border);
this._border.child = new St.Icon({
icon_name: 'object-select-symbolic',
style_class: 'screenshot-ui-window-selector-check',
x_align: Clutter.ActorAlign.CENTER,
y_align: Clutter.ActorAlign.CENTER,
});
this.connect('destroy', this._onDestroy.bind(this));
}