[gtk+] Adwaita: Use scaled icons for checks and bullets
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Adwaita: Use scaled icons for checks and bullets
- Date: Sat, 28 Oct 2017 19:23:37 +0000 (UTC)
commit 99d3d31314666b836be45d8adea1f17cee8d3cdd
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Oct 28 15:22:24 2017 -0400
Adwaita: Use scaled icons for checks and bullets
This gives us crip rendering on hidpi screens.
gtk/theme/Adwaita/_common.scss | 12 ++++++++----
1 files changed, 8 insertions(+), 4 deletions(-)
---
diff --git a/gtk/theme/Adwaita/_common.scss b/gtk/theme/Adwaita/_common.scss
index b1d3c9b..4198532 100644
--- a/gtk/theme/Adwaita/_common.scss
+++ b/gtk/theme/Adwaita/_common.scss
@@ -2745,18 +2745,22 @@ radio {
check {
border-radius: 3px;
- &:checked { -gtk-icon-source: -gtk-recolor(url("assets/check-symbolic.symbolic.png")); }
+ &:checked { -gtk-icon-source: -gtk-scaled(-gtk-recolor(url("assets/check-symbolic.symbolic.png")),
+ -gtk-recolor(url("assets/check 2-symbolic symbolic png"))); }
- &:indeterminate { -gtk-icon-source: -gtk-recolor(url("assets/dash-symbolic.symbolic.png")); }
+ &:indeterminate { -gtk-icon-source: -gtk-scaled(-gtk-recolor(url("assets/dash-symbolic.symbolic.png")),
+ -gtk-recolor(url("assets/dash 2-symbolic symbolic png")));
}
}
%radio,
radio {
border-radius: 100%;
- &:checked { -gtk-icon-source: -gtk-recolor(url("assets/bullet-symbolic.symbolic.png")); }
+ &:checked { -gtk-icon-source: -gtk-scaled(-gtk-recolor(url("assets/bullet-symbolic.symbolic.png")),
+ -gtk-recolor(url("assets/bullet 2-symbolic symbolic png"))); }
- &:indeterminate { -gtk-icon-source: -gtk-recolor(url("assets/dash-symbolic.symbolic.png")); }
+ &:indeterminate { -gtk-icon-source: -gtk-scaled(-gtk-recolor(url("assets/dash-symbolic.symbolic.png")),
+ -gtk-recolor(url("assets/dash 2-symbolic symbolic png")));
}
}
// ANIMATION:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]