Skip to content
This repository has been archived by the owner on Mar 27, 2020. It is now read-only.

Commit

Permalink
Gtk-3.20: [GtkTooltip] Switch to asset-based drop-shadows from box-sh…
Browse files Browse the repository at this point in the history
…adows

Backport the recent changes from 3.2x/4.0.
  • Loading branch information
tista500 committed Aug 12, 2018
1 parent 5607dc9 commit 31283eb
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion gtk/sass/3.20/_common.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6029,8 +6029,27 @@ decoration {
}

tooltip.csd & {
// FIXME: Depth-2 drop-shadow via box-shadow property sometimes causes
// flickering on its reserved shadow-region, so use asset-based border
// images instead until we can find the fixes for the stem of this issue.
// This assets can't solve the unwanted flickering perfectly,
// but fake-shadows might be better than box-shadows...
margin: 0;
border-style: solid;
border-width: 10px;
border-radius: 2px;
box-shadow: $z-depth-2;
@if $variant == light {
border-image: -gtk-scaled(url("assets/osd-shadow.png"),
url("assets/osd-shadow@2.png"))
10 / 10px stretch;
}
@else {
border-image: -gtk-scaled(url("assets/osd-shadow-dark.png"),
url("assets/osd-shadow-dark@2.png"))
10 / 10px stretch;
}
box-shadow: none;
transition: none;
}

message-dialog.csd & {
Expand Down

0 comments on commit 31283eb

Please sign in to comment.