[gnome-shell-sass] screenshot: Move close button to the panel
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell-sass] screenshot: Move close button to the panel
- Date: Mon, 14 Feb 2022 22:47:22 +0000 (UTC)
commit 5c05d400136929886ead9220851b53ebd3b99e23
Author: Ivan Molodetskikh <yalterz gmail com>
Date: Wed Feb 2 20:22:20 2022 +0300
screenshot: Move close button to the panel
CSS and JS adapted from the Overview window close buttons, but with some
style tweaks requested by the designers.
Since the screenshot UI is long-lived (it's created once at startup,
rather than every time it's opened), we need to refresh the close button
position, as it can change at runtime. Subscribing to preference changes
seems to be skipped for bindings generation in Mutter, but simply
refreshing upon opening the UI should do the job.
Closes https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/4997
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2147>
widgets/_screenshot.scss | 25 +++++++++++++++++--------
1 file changed, 17 insertions(+), 8 deletions(-)
---
diff --git a/widgets/_screenshot.scss b/widgets/_screenshot.scss
index 870333e..1113606 100644
--- a/widgets/_screenshot.scss
+++ b/widgets/_screenshot.scss
@@ -28,17 +28,26 @@ $screenshot_ui_button_red: #e01b24;
.screenshot-ui-close-button {
background-color: $osd_bg_color;
+ color: $osd_fg_color;
border-radius: 99px;
- width: 64px;
- height: 64px;
- margin: 64px;
+ padding: 6px;
+ height: 30px;
+ width: 30px;
+ box-shadow: -1px 1px 5px 0px rgba(0,0,0,0.5);
+ margin-top: 8px;
- &:hover, &:focus { background-color: $hover_bg_color; }
- &:active { background-color: $active_bg_color; }
- &:checked { background-color: darken($osd_bg_color, 5%); }
+ &.left { margin-left: 8px; }
+ &.right { margin-right: 8px; }
- StIcon {
- icon-size: $base_icon_size * 2;
+ & StIcon { icon-size: 24px; }
+
+ &:hover {
+ background-color: lighten($osd_bg_color, 15%);
+ }
+
+ &:active {
+ color: transparentize($osd_fg_color, 0.2);
+ background-color: darken($osd_bg_color, 5%);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]