[gnome-shell-sass] windowPreview: Overhaul chrome style
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell-sass] windowPreview: Overhaul chrome style
- Date: Wed, 3 Feb 2021 12:19:28 +0000 (UTC)
commit 15ecbbc0c1c748da53ad52e8fa7db4cd803134fa
Author: Florian Müllner <fmuellner gnome org>
Date: Fri Jan 8 12:11:06 2021 +0100
windowPreview: Overhaul chrome style
- increase close button size
- use custom close icon that's better suited
for the non-default 24pxp size
- use translucent light gray for both close button
and window caption
https://gitlab.gnome.org/Teams/Design/os-mockups/-/issues/81
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1605>
widgets/_window-picker.scss | 27 +++++++++++++++------------
1 file changed, 15 insertions(+), 12 deletions(-)
---
diff --git a/widgets/_window-picker.scss b/widgets/_window-picker.scss
index a39af15..d157b91 100644
--- a/widgets/_window-picker.scss
+++ b/widgets/_window-picker.scss
@@ -3,7 +3,10 @@
$window_picker_spacing: $base_spacing; // 6px
$window_picker_padding: $base_padding * 2; // 12px
-$window_close_button_size: 24px;
+$window_thumbnail_chrome_color: transparentize($osd_fg_color, 0.4);
+$window_thumbnail_chrome_border: transparentize($osd_bg_color, 0.7);
+
+$window_close_button_size: 30px;
$window_close_button_padding: 3px;
// Window picker
@@ -14,31 +17,31 @@ $window_close_button_padding: 3px;
// Window titles
.window-caption {
- color: $osd_fg_color;
- background-color: $osd_bg_color;
- border:1px solid $osd_outer_borders_color;
- border-radius: $base_border_radius + 1;
+ color: $osd_bg_color;
+ background-color: $window_thumbnail_chrome_color;
+ border-radius: 99px;
+ border: 1px solid $window_thumbnail_chrome_border;
padding: $base_padding $base_padding * 2;
- font-weight: bold;
- @include fontsize($base_font_size + 1);
}
// Close button
.window-close {
- background-color: $selected_bg_color;
- color: $selected_fg_color;
- border: none;
+ background-color: $window_thumbnail_chrome_color;
+ color: $osd_bg_color;
+ border: 1px solid $window_thumbnail_chrome_border;
border-radius: $window_close_button_size * 0.5 + $window_close_button_padding * 2;
padding: $window_close_button_padding;
height: $window_close_button_size;
width: $window_close_button_size;
box-shadow: -1px 1px 5px 0px rgba(0,0,0,0.5);
+ & StIcon { icon-size: 24px; }
+
&:hover {
- background-color: lighten($selected_bg_color, 5%);
+ background-color: lighten($window_thumbnail_chrome_color, 5%);
}
&:active {
- background-color: darken($selected_bg_color, 5%);
+ background-color: darken($window_thumbnail_chrome_color, 5%);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]