This repository has been archived by the owner on Mar 27, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 235
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Gtk-3.20: [GtkTooltip] Switch to asset-based drop-shadows from box-sh…
…adows Backport the recent changes from 3.2x/4.0.
- Loading branch information
Showing
1 changed file
with
20 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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/[email protected]")) | ||
10 / 10px stretch; | ||
} | ||
@else { | ||
border-image: -gtk-scaled(url("assets/osd-shadow-dark.png"), | ||
url("assets/[email protected]")) | ||
10 / 10px stretch; | ||
} | ||
box-shadow: none; | ||
transition: none; | ||
} | ||
|
||
message-dialog.csd & { | ||
|