Skip to content

Commit

Permalink
Improvement: Gnome-shell - entry border color
Browse files Browse the repository at this point in the history
  • Loading branch information
thekomer committed Oct 18, 2022
1 parent 32b231f commit 89f97f3
Show file tree
Hide file tree
Showing 6 changed files with 155 additions and 157 deletions.
15 changes: 9 additions & 6 deletions gnome-shell/_colors.scss
Original file line number Diff line number Diff line change
@@ -1,30 +1,33 @@
$base_color: #101320;
$bg_color: #0e111d;
$main_dark: darken($bg_color, 5%);
$base_color: lighten($bg_color, 3%);
$main_dark: mix($base_color, darken($bg_color, 8%), 30%);
$gray: lighten($bg_color, 20%);
$fg_color: #bfc3cd;
$text_color: $fg_color;
$dracula: #161925;
$topbar_color: lighten($fg_color, 40%);

$lime: #71f79f;
$red: #FF0000;
$purple: #c74ded;
$blue: #7cb7ff;
$cyan: #00c1e4;
$yellow: #FFD400;
$orange: #ff6a00;
$g1: #ff3300;
$g2: #ffa100;
$theme_color: $orange;

$selected_fg_color: #ffffff;
$selected_bg_color: $orange;
$selected_bg_color: $theme_color;
$selected_borders_color: darken($selected_bg_color, 10%);
$borders_color: darken($base_color, 3%);
$borders_color: transparentize(white, 0.95);
$borders_edge: transparentize(white, 0.9);
$link_color: #7cb7ff;
$link_color: $blue;
$link_visited_color: transparentize($link_color,0.5);
$top_hilight: $borders_edge;
$top_highlight: transparentize(white, 0.9);
$bottom_highlight: transparentize(black, 0.9);
$top_hilight: $top_highlight;

$headerbar_color: mix($base_color, darken($bg_color, 8%), 30%);

Expand Down
21 changes: 11 additions & 10 deletions gnome-shell/_common.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ stage {
/* Buttons */
.button {
@include button(normal);
border-radius: 4px;
border-width: 0;
padding: 4px 32px;
border-radius: 0.5em;
border-width: 1px;
padding: 0.4em 2em; //4px 32px;
&:focus { @include button(focus); }
&:insensitive { @include button(insensitive); }
&:active { @include button(active); }
Expand All @@ -31,10 +31,10 @@ stage {
}

.modal-dialog-linked-button {
padding: 10px;
padding: 10px; margin: 3px;
border: 1px solid $borders_color;
color: $fg_color;
background: $main_dark;
background: $base_color;
text-shadow: none;
icon-shadow: none;
box-shadow: none;
Expand All @@ -46,23 +46,24 @@ stage {
@include button(focus);
&:hover {
@include button(focus);
color: white;
}
}
&:hover {
@include button(hover);
}

&:first-child { border-radius: 0px 0px 0px 2px; }
&:last-child { border-radius: 0px 0px 2px 0px; }
&:first-child:last-child { border-radius: 0px 0px 2px 2px; }
&:first-child { border-radius: 0.5em 0px 0px 0.5em; }
&:last-child { border-radius: 0px 0.5em 0.5em 0px; }
&:first-child:last-child { border-radius: 0.5em; }
}

/* Entries */
StEntry {
@include entry(normal);
border-radius: 2px;
border-radius: 1em;
padding: 4px;
border-width: 0;
border-width: 1px;
color: $fg_color;
//&:hover { @include entry(hover);}
&:focus { @include entry(focus,$fc:transparentize($fg_color,0.5));}
Expand Down
5 changes: 2 additions & 3 deletions gnome-shell/_drawing.scss
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@
// use the default one
//
// possible $t values:
// normal, focus, insensitive
// normal, focus, hover, insensitive
//

@if $t==normal {
background-color: lighten($base_color, 5%);
background-color: lighten($base_color, 4%);
border-color: $borders_color;

@include _shadows($depth);
Expand Down Expand Up @@ -145,7 +145,6 @@
color: $fg_color;
background-color: lighten(mix($bg_color, $base_color, 15%), 4%);
box-shadow: none;
border: 1px solid $borders_color;
text-shadow: 0 1px black;
icon-shadow: 0 1px black;
border: 1px solid $borders_color;
Expand Down
Loading

0 comments on commit 89f97f3

Please sign in to comment.