Skip to content

Commit 52cd0be

Browse files
committed
gnome-shell: Style the new screenshot UI
1 parent 5fe63a7 commit 52cd0be

File tree

1 file changed

+216
-0
lines changed

1 file changed

+216
-0
lines changed

common/gnome-shell/42/sass/_common.scss

Lines changed: 216 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2832,6 +2832,222 @@ $_dash_bottom_margin: 20px;
28322832
font-weight: bold;
28332833
}
28342834

2835+
//
2836+
// Screenshot UI
2837+
//
2838+
.icon-label-button-container {
2839+
spacing: 6px;
2840+
font-weight: normal;
2841+
@include fontsize($font-size * 0.9);
2842+
2843+
StIcon { icon-size: 32px;}
2844+
}
2845+
2846+
$_screenshot_ui_panel_padding: 15px;
2847+
2848+
.screenshot-ui-panel {
2849+
@extend %shell_osd;
2850+
border-radius: 3px;
2851+
padding: $_screenshot_ui_panel_padding;
2852+
// Reduce the bottom padding a little to accommodate the large capture button.
2853+
padding-bottom: $_screenshot_ui_panel_padding - 6px;
2854+
margin-bottom: 4em;
2855+
spacing: 10px;
2856+
}
2857+
2858+
.screenshot-ui-close-button {
2859+
@extend .window-close; // copy window close button
2860+
&.left { margin-left: 8px;}
2861+
&.right { margin-right: 8px;}
2862+
}
2863+
2864+
.screenshot-ui-type-button {
2865+
@extend %osd_button;
2866+
min-width: 48px;
2867+
padding: 10px 15px !important;
2868+
border-radius: 3px;
2869+
}
2870+
2871+
.screenshot-ui-capture-button {
2872+
width: 36px;
2873+
height: 36px;
2874+
border-radius: 99px;
2875+
border: 4px $_shell_fg_color;
2876+
padding: 4px;
2877+
2878+
.screenshot-ui-capture-button-circle {
2879+
background-color: $_shell_fg_color;
2880+
transition-duration: 200ms;
2881+
&:hover, &:focus {
2882+
background-color: $selected_bg_color;
2883+
color: $selected_fg_color;
2884+
}
2885+
border-radius: 99px;
2886+
}
2887+
2888+
&:hover, &:focus {
2889+
.screenshot-ui-capture-button-circle {
2890+
background-color: $selected_bg_color;
2891+
color: $selected_fg_color;
2892+
}
2893+
}
2894+
2895+
&:active {
2896+
.screenshot-ui-capture-button-circle {
2897+
background-color: darken($selected_bg_color, 10%);
2898+
}
2899+
}
2900+
2901+
&:cast {
2902+
.screenshot-ui-capture-button-circle {
2903+
background-color: $error_color;
2904+
}
2905+
&:hover, &:focus {
2906+
.screenshot-ui-capture-button-circle {
2907+
background-color: lighten($error_color, 10%);
2908+
}
2909+
}
2910+
&:active {
2911+
.screenshot-ui-capture-button-circle {
2912+
background-color: darken($error_color, 10%);
2913+
}
2914+
}
2915+
}
2916+
}
2917+
2918+
.screenshot-ui-shot-cast-container {
2919+
@extend %osd_button;
2920+
border-radius: 2px;
2921+
padding: 0;
2922+
spacing: 0;
2923+
}
2924+
2925+
.screenshot-ui-shot-cast-button {
2926+
padding: 5px 10px;
2927+
background-color: transparent;
2928+
color: $osd_fg_color;
2929+
2930+
&:checked {
2931+
background-color: $selected_bg_color;
2932+
color: $selected_fg_color;
2933+
}
2934+
2935+
&:first-child:ltr {
2936+
border-radius: 2px 0px 0px 2px;
2937+
}
2938+
&:last-child:ltr {
2939+
border-right-width: 0px;
2940+
border-radius: 0px 2px 2px 0px;
2941+
}
2942+
&:first-child:rtl {
2943+
border-left-width: 0px;
2944+
border-radius: 0px 2px 2px 0px;
2945+
}
2946+
&:last-child:rtl {
2947+
border-radius: 2px 0px 0px 2px;
2948+
}
2949+
2950+
StIcon { icon-size: 16px;}
2951+
}
2952+
2953+
.screenshot-ui-show-pointer-button {
2954+
@extend %osd_button;
2955+
border-radius: 99px;
2956+
padding: 10px !important;
2957+
StIcon { icon-size: 16px;}
2958+
}
2959+
2960+
.screenshot-ui-area-indicator-shade {
2961+
background-color: rgba(0,0,0,.3);
2962+
}
2963+
2964+
.screenshot-ui-area-selector {
2965+
.screenshot-ui-area-indicator-shade {
2966+
background-color: rgba(0,0,0,.5);
2967+
}
2968+
2969+
.screenshot-ui-area-indicator-selection {
2970+
border: 2px white;
2971+
}
2972+
}
2973+
2974+
.screenshot-ui-area-selector-handle {
2975+
border-radius: 99px;
2976+
background-color: white;
2977+
box-shadow: 0 1px 3px 2px rgba(0,0,0,0.2);
2978+
width: 24px;
2979+
height: 24px;
2980+
}
2981+
2982+
.screenshot-ui-window-selector {
2983+
background-color: $_system_bg_color;
2984+
2985+
.screenshot-ui-window-selector-window-container {
2986+
margin: 100px;
2987+
}
2988+
2989+
&:primary-monitor {
2990+
.screenshot-ui-window-selector-window-container {
2991+
// Make some room for the panel.
2992+
margin-bottom: 200px;
2993+
}
2994+
}
2995+
}
2996+
2997+
.screenshot-ui-window-selector-window-border {
2998+
transition-duration: 200ms;
2999+
border-radius: 3px;
3000+
border: 6px transparent;
3001+
}
3002+
3003+
.screenshot-ui-window-selector-check {
3004+
transition-duration: 200ms;
3005+
color: transparent;
3006+
border-radius: 99px;
3007+
border-width: 12px;
3008+
icon-size: 24px;
3009+
}
3010+
3011+
.screenshot-ui-window-selector-window {
3012+
&:hover {
3013+
.screenshot-ui-window-selector-window-border {
3014+
border-color: $selected_bg_color;
3015+
}
3016+
}
3017+
&:checked {
3018+
.screenshot-ui-window-selector-window-border {
3019+
border-color: $selected_bg_color;
3020+
background-color: transparent;
3021+
}
3022+
3023+
.screenshot-ui-window-selector-check {
3024+
color: $selected_fg_color;
3025+
background-color: $selected_bg_color;
3026+
}
3027+
}
3028+
}
3029+
3030+
.screenshot-ui-screen-selector {
3031+
transition-duration: 200ms;
3032+
background-color: rgba(0,0,0,.5);
3033+
3034+
&:hover { background-color: rgba(0,0,0,.3);}
3035+
&:active { background-color: rgba(0,0,0,.7);}
3036+
&:checked {
3037+
background-color: transparent;
3038+
border: 2px white;
3039+
}
3040+
}
3041+
3042+
.screenshot-ui-tooltip {
3043+
color: $osd_fg_color;
3044+
background-color: $osd_bg_color;
3045+
border-radius: 99px;
3046+
padding: 5px 10px;
3047+
text-align: center;
3048+
-y-offset: 24px;
3049+
}
3050+
28353051
//
28363052
// OpenWeather extension
28373053
//

0 commit comments

Comments
 (0)