[gtk] Adwaita: help fullcolor app icons
- From: Jakub Steiner <jimmac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk] Adwaita: help fullcolor app icons
- Date: Mon, 26 Nov 2018 16:34:55 +0000 (UTC)
commit 97d8676b401101a8f2dd5d96e2efd3b00a46b04f
Author: Jakub Steiner <jimmac gmail com>
Date: Mon Nov 26 17:33:28 2018 +0100
Adwaita: help fullcolor app icons
- draw a large dropshadow for aboutboxes
- draw an outline for low res
See issues #1434 and #1445.
gtk/theme/Adwaita/_common.scss | 18 +++++++++++++++++-
gtk/theme/Adwaita/gtk-contained-dark.css | 7 +++++++
gtk/theme/Adwaita/gtk-contained.css | 7 +++++++
3 files changed, 31 insertions(+), 1 deletion(-)
---
diff --git a/gtk/theme/Adwaita/_common.scss b/gtk/theme/Adwaita/_common.scss
index 41df74253c..baaf29582f 100644
--- a/gtk/theme/Adwaita/_common.scss
+++ b/gtk/theme/Adwaita/_common.scss
@@ -4574,6 +4574,22 @@ stackswitcher button.text-button.circular { // FIXME aggregate with buttons
padding: 0;
}
+/*************
+ * App Icons *
+ *************/
+/* Outline for low res icons */
+.lowres-icon {
+icon-shadow: 1px 1px rgba(0,0,0,0.3),
+ -1px -1px rgba(0,0,0,0.3),
+ -1px 1px rgba(0,0,0,0.3),
+ 1px -1px rgba(0,0,0,0.3);
+}
+
+/* Drapshadow for large icons */
+.icon-dropshadow {
+ icon-shadow: 0 2px 12px rgba(0,0,0,0.2),
+ 0 1px 2px rgba(0,0,0,0.7);
+}
/*********
* Emoji *
@@ -4635,4 +4651,4 @@ popover.emoji-completion contents row box {
popover.emoji-completion .emoji:hover {
background-color: $popover_hover_color;
-}
\ No newline at end of file
+}
diff --git a/gtk/theme/Adwaita/gtk-contained-dark.css b/gtk/theme/Adwaita/gtk-contained-dark.css
index 57ac4d3461..4f6444af90 100644
--- a/gtk/theme/Adwaita/gtk-contained-dark.css
+++ b/gtk/theme/Adwaita/gtk-contained-dark.css
@@ -1974,6 +1974,13 @@ stackswitcher button.text-button { min-width: 100px; }
stackswitcher button.circular, stackswitcher button.text-button.circular { min-width: 32px; min-height:
32px; padding: 0; }
+/************* App Icons * */
+/* Outline for low res icons */
+.lowres-icon { icon-shadow: 1px 1px rgba(0, 0, 0, 0.3), -1px -1px rgba(0, 0, 0, 0.3), -1px 1px rgba(0, 0, 0,
0.3), 1px -1px rgba(0, 0, 0, 0.3); }
+
+/* Drapshadow for large icons */
+.icon-dropshadow { icon-shadow: 0 2px 12px rgba(0, 0, 0, 0.2), 0 1px 2px rgba(0, 0, 0, 0.7); }
+
/********* Emoji * */
popover.emoji-picker { padding-left: 0; padding-right: 0; }
diff --git a/gtk/theme/Adwaita/gtk-contained.css b/gtk/theme/Adwaita/gtk-contained.css
index 2cc80dbbd7..21ec4d427e 100644
--- a/gtk/theme/Adwaita/gtk-contained.css
+++ b/gtk/theme/Adwaita/gtk-contained.css
@@ -1994,6 +1994,13 @@ stackswitcher button.text-button { min-width: 100px; }
stackswitcher button.circular, stackswitcher button.text-button.circular { min-width: 32px; min-height:
32px; padding: 0; }
+/************* App Icons * */
+/* Outline for low res icons */
+.lowres-icon { icon-shadow: 1px 1px rgba(0, 0, 0, 0.3), -1px -1px rgba(0, 0, 0, 0.3), -1px 1px rgba(0, 0, 0,
0.3), 1px -1px rgba(0, 0, 0, 0.3); }
+
+/* Drapshadow for large icons */
+.icon-dropshadow { icon-shadow: 0 2px 12px rgba(0, 0, 0, 0.2), 0 1px 2px rgba(0, 0, 0, 0.7); }
+
/********* Emoji * */
popover.emoji-picker { padding-left: 0; padding-right: 0; }
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]