OSK variables and key rounding
- generate the OSK key colors from variables in _colors.scss without changing the design - add hover and active colors for all key, not only letter keys - use $button_radius for the OSK keys, buttons and entries (no value change for the latter) https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/610
This commit is contained in:
parent
14d7897a93
commit
915415d919
@ -25,8 +25,10 @@ $cakeisalie: "This stylesheet is generated, DO NOT EDIT";
|
|||||||
|
|
||||||
/* GLOBALS */
|
/* GLOBALS */
|
||||||
|
|
||||||
$panel-corner-radius: 6px;
|
|
||||||
$medium_radius: 9px;
|
$modal_radius: 9px;
|
||||||
|
$button_radius: 5px;
|
||||||
|
$panel-corner-radius: $button_radius + 1;
|
||||||
|
|
||||||
$_trough_color: transparentize($fg_color, 0.9);
|
$_trough_color: transparentize($fg_color, 0.9);
|
||||||
$_bubble_borders_color: lighten($borders_color, if($variant=='light', 0%, 5%));
|
$_bubble_borders_color: lighten($borders_color, if($variant=='light', 0%, 5%));
|
||||||
@ -46,7 +48,7 @@ stage {
|
|||||||
|
|
||||||
/* Buttons */
|
/* Buttons */
|
||||||
.button, %button {
|
.button, %button {
|
||||||
border-radius: 5px;
|
border-radius: $button_radius;
|
||||||
border-width: 1px;
|
border-width: 1px;
|
||||||
min-height: 22px;
|
min-height: 22px;
|
||||||
padding: 4px 32px;
|
padding: 4px 32px;
|
||||||
@ -68,21 +70,21 @@ stage {
|
|||||||
border-top: 1px solid $_bubble_borders_color;
|
border-top: 1px solid $_bubble_borders_color;
|
||||||
|
|
||||||
&:first-child {
|
&:first-child {
|
||||||
border-radius: 0px 0px 0px $medium_radius;
|
border-radius: 0px 0px 0px $modal_radius;
|
||||||
}
|
}
|
||||||
&:last-child {
|
&:last-child {
|
||||||
border-right-width: 0px;
|
border-right-width: 0px;
|
||||||
border-radius: 0px 0px $medium_radius 0px;
|
border-radius: 0px 0px $modal_radius 0px;
|
||||||
}
|
}
|
||||||
&:first-child:last-child {
|
&:first-child:last-child {
|
||||||
border-right-width: 0px;
|
border-right-width: 0px;
|
||||||
border-radius: 0px 0px $medium_radius $medium_radius;
|
border-radius: 0px 0px $modal_radius $modal_radius;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Entries */
|
/* Entries */
|
||||||
StEntry {
|
StEntry {
|
||||||
border-radius: 5px;
|
border-radius: $button_radius;
|
||||||
padding: 4px;
|
padding: 4px;
|
||||||
border-width: 1px;
|
border-width: 1px;
|
||||||
color: $fg_color;
|
color: $fg_color;
|
||||||
@ -192,7 +194,7 @@ StScrollBar {
|
|||||||
.flashspot { background-color: white; }
|
.flashspot { background-color: white; }
|
||||||
|
|
||||||
.modal-dialog {
|
.modal-dialog {
|
||||||
border-radius: 9px;
|
border-radius: $modal_radius;
|
||||||
@extend %bubble-panel;
|
@extend %bubble-panel;
|
||||||
.modal-dialog-content-box {
|
.modal-dialog-content-box {
|
||||||
padding: 24px;
|
padding: 24px;
|
||||||
@ -589,7 +591,7 @@ StScrollBar {
|
|||||||
}
|
}
|
||||||
.popup-menu-boxpointer,
|
.popup-menu-boxpointer,
|
||||||
.candidate-popup-boxpointer {
|
.candidate-popup-boxpointer {
|
||||||
-arrow-border-radius: $medium_radius;
|
-arrow-border-radius: $button_radius+4;
|
||||||
-arrow-background-color: $bg_color;
|
-arrow-background-color: $bg_color;
|
||||||
-arrow-border-width: 1px;
|
-arrow-border-width: 1px;
|
||||||
-arrow-border-color: if($variant=='light', transparentize(black, 0.6), $borders_color);
|
-arrow-border-color: if($variant=='light', transparentize(black, 0.6), $borders_color);
|
||||||
@ -1518,7 +1520,7 @@ StScrollBar {
|
|||||||
|
|
||||||
%icon_tile {
|
%icon_tile {
|
||||||
color: $osd_fg_color;
|
color: $osd_fg_color;
|
||||||
border-radius: $medium_radius;
|
border-radius: $button_radius+4;
|
||||||
padding: 6px;
|
padding: 6px;
|
||||||
border: 1px solid transparent;
|
border: 1px solid transparent;
|
||||||
transition-duration: 100ms;
|
transition-duration: 100ms;
|
||||||
@ -1625,7 +1627,7 @@ StScrollBar {
|
|||||||
font-size: 11pt;
|
font-size: 11pt;
|
||||||
width: 34em;
|
width: 34em;
|
||||||
margin: 5px;
|
margin: 5px;
|
||||||
border-radius: $medium-radius;
|
border-radius: $modal_radius;
|
||||||
border: if($variant == 'light', none, $_bubble_borders_color);
|
border: if($variant == 'light', none, $_bubble_borders_color);
|
||||||
min-height: 64px;
|
min-height: 64px;
|
||||||
box-shadow: 0 1px 2px transparentize(black, 0.7);
|
box-shadow: 0 1px 2px transparentize(black, 0.7);
|
||||||
@ -1777,30 +1779,36 @@ StScrollBar {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.keyboard-key {
|
.keyboard-key {
|
||||||
background-color: #393f3f;
|
$_key_bg: opacify(lighten($osd_bg_color, 9%), 1);
|
||||||
|
background-color: $_key_bg;
|
||||||
min-height: 1.2em;
|
min-height: 1.2em;
|
||||||
min-width: 1.2em;
|
min-width: 1.2em;
|
||||||
font-size: 16pt;
|
font-size: 16pt;
|
||||||
border-radius: 3px;
|
border-radius: $button_radius;
|
||||||
border: 1px solid #464d4d;
|
border: 1px solid $osd_outer_borders_color;
|
||||||
color: #e5e5e5;
|
color: $osd_fg_color;
|
||||||
&:focus { @include button(focus); }
|
&:focus { @include button(focus); }
|
||||||
&:hover,&:checked { @include button(hover); }
|
&:hover, &:checked { background-color: lighten($_key_bg, 3%); }
|
||||||
&:active { @include button(active);}
|
&:active { background-color: darken($_key_bg, 2%); }
|
||||||
&:grayed { //FIXME
|
&:grayed { //FIXME
|
||||||
background-color: $osd_bg_color;
|
background-color: $osd_bg_color;
|
||||||
color: $osd_fg_color;
|
color: $osd_fg_color;
|
||||||
border-color: $osd_borders_color;
|
border-color: $osd_borders_color;
|
||||||
}
|
}
|
||||||
&.default-key {
|
&.default-key {
|
||||||
border-color: #2d3232;
|
$_default_key_bg: opacify($osd_bg_color, 1);
|
||||||
background-color: #1d2020;
|
border-color: $osd_outer_borders_color;
|
||||||
|
background-color: $_default_key_bg;
|
||||||
background-size: 20px;
|
background-size: 20px;
|
||||||
|
&:hover, &:checked { background-color: lighten($_default_key_bg, 3%); }
|
||||||
|
&:active { background-color: darken($_default_key_bg, 2%); }
|
||||||
}
|
}
|
||||||
&.enter-key {
|
&.enter-key {
|
||||||
border-color: #005684;
|
border-color: lighten($selected_bg_color, 5%);
|
||||||
background-color: #006098;
|
background-color: $selected_bg_color;
|
||||||
background-image: url("resource:///org/gnome/shell/theme/key-enter.svg");
|
background-image: url("resource:///org/gnome/shell/theme/key-enter.svg");
|
||||||
|
&:hover, &:checked { background-color: lighten($selected_bg_color, 3%); }
|
||||||
|
&:active { background-color: darken($selected_bg_color, 2%); }
|
||||||
}
|
}
|
||||||
&.shift-key-lowercase {
|
&.shift-key-lowercase {
|
||||||
background-image: url("resource:///org/gnome/shell/theme/key-shift.svg");
|
background-image: url("resource:///org/gnome/shell/theme/key-shift.svg");
|
||||||
@ -1839,8 +1847,8 @@ StScrollBar {
|
|||||||
|
|
||||||
.emoji-panel {
|
.emoji-panel {
|
||||||
.keyboard-key:latched {
|
.keyboard-key:latched {
|
||||||
border-color: #005684;
|
border-color: lighten($selected_bg_color, 5%);
|
||||||
background-color: #006098;
|
background-color: $selected_bg_color;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1904,7 +1912,7 @@ StScrollBar {
|
|||||||
|
|
||||||
StEntry {
|
StEntry {
|
||||||
@extend %search_entry;
|
@extend %search_entry;
|
||||||
border-radius: 5px;
|
border-radius: $button_radius;
|
||||||
@if $variant=='dark' {
|
@if $variant=='dark' {
|
||||||
$_gdm_entry_bg: transparentize(lighten(desaturate(#241f31, 20%), 2%), 0.5);
|
$_gdm_entry_bg: transparentize(lighten(desaturate(#241f31, 20%), 2%), 0.5);
|
||||||
background-color: $_gdm_entry_bg;
|
background-color: $_gdm_entry_bg;
|
||||||
|
Loading…
Reference in New Issue
Block a user