Skip to content

Commit

Permalink
Improvement: GTK3&4 - tooltip rounded corners
Browse files Browse the repository at this point in the history
  • Loading branch information
thekomer committed Feb 17, 2022
1 parent 86b2e18 commit 98a67cc
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 10 deletions.
3 changes: 1 addition & 2 deletions gtk-3.0/_colors.scss
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ $suggested_color: if($variant == 'light', $selected_bg_color, darken($selected_b

$window_border_color: mix($headerbar_color, $selected_bg_color, 70%);
$window_border_backdrop_color: mix($headerbar_color, $fg_color, 92%);
$tooltip_borders_color: mix($headerbar_color, $fg_color, 92%);

$osd_fg_color: #fefefe;
$osd_text_color: white;
Expand All @@ -78,8 +79,6 @@ $osd_borders_color: transparentize(black, 0.85);

$base_hover_color: transparentize($fg_color, 0.95);

//$tooltip_borders_color: transparentize(white, 0.95);
$tooltip_borders_color: mix($headerbar_color, $fg_color, 92%);
$shadow_color: transparentize(black, 0.9);
$shadow_color: if($variant == 'light', transparentize(black, 0.9), transparentize(white, 0.9));

Expand Down
4 changes: 2 additions & 2 deletions gtk-3.0/gtk-dark.css
Original file line number Diff line number Diff line change
Expand Up @@ -4634,13 +4634,13 @@ searchbar {
tooltip {
padding: 4px;
/* not working */
border-radius: 5px;
border-radius: 0.6em;
box-shadow: none;
text-shadow: 0 1px black; }
tooltip.background {
background-color: rgba(0, 0, 0, 0.8);
background-clip: padding-box;
border: 1px solid #15161b; }
border: 1px solid #27292f; }
tooltip decoration {
background-color: transparent; }
tooltip * {
Expand Down
4 changes: 2 additions & 2 deletions gtk-3.0/gtk.css
Original file line number Diff line number Diff line change
Expand Up @@ -4634,13 +4634,13 @@ searchbar {
tooltip {
padding: 4px;
/* not working */
border-radius: 5px;
border-radius: 0.6em;
box-shadow: none;
text-shadow: 0 1px black; }
tooltip.background {
background-color: rgba(0, 0, 0, 0.8);
background-clip: padding-box;
border: 1px solid #15161b; }
border: 1px solid #27292f; }
tooltip decoration {
background-color: transparent; }
tooltip * {
Expand Down
2 changes: 1 addition & 1 deletion gtk-3.0/widgets/_tooltips.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ tooltip {
}

padding: 4px; /* not working */
border-radius: 5px;
border-radius: 0.6em;//5px;
box-shadow: none; // otherwise it gets inherited by windowframe.csd
text-shadow: 0 1px black;

Expand Down
2 changes: 1 addition & 1 deletion gtk-4.0/gtk-dark.css
Original file line number Diff line number Diff line change
Expand Up @@ -4574,7 +4574,7 @@ searchbar {
tooltip {
padding: 4px;
/* not working */
border-radius: 5px;
border-radius: 0.6em;
box-shadow: none;
text-shadow: 0 1px black; }
tooltip.background {
Expand Down
2 changes: 1 addition & 1 deletion gtk-4.0/gtk.css
Original file line number Diff line number Diff line change
Expand Up @@ -4574,7 +4574,7 @@ searchbar {
tooltip {
padding: 4px;
/* not working */
border-radius: 5px;
border-radius: 0.6em;
box-shadow: none;
text-shadow: 0 1px black; }
tooltip.background {
Expand Down
2 changes: 1 addition & 1 deletion gtk-4.0/widgets/_tooltips.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ tooltip {
}

padding: 4px; /* not working */
border-radius: 5px;
border-radius: 0.6em;//5px;
box-shadow: none; // otherwise it gets inherited by windowframe.csd
text-shadow: 0 1px black;

Expand Down

0 comments on commit 98a67cc

Please sign in to comment.