[gtk: 1/2] Adwaita: Emoji picker adjustments
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk: 1/2] Adwaita: Emoji picker adjustments
- Date: Thu, 7 Nov 2019 11:57:08 +0000 (UTC)
commit 22d5b9bc41985ba24590eb836425d32e8c0b9c31
Author: Alex Monday <monday15 gmx com>
Date: Sun Nov 3 08:38:11 2019 +0000
Adwaita: Emoji picker adjustments
- Add margins for search entry;
- Increase side margins for emoji-section buttons box;
- Apply border-radius on hovered emoji;
- Adjust indication of hovered emoji-section button.
gtk/theme/Adwaita/_common.scss | 14 +++++++++++---
gtk/theme/Adwaita/gtk-contained-dark.css | 12 +++++++++---
gtk/theme/Adwaita/gtk-contained.css | 10 ++++++++--
3 files changed, 28 insertions(+), 8 deletions(-)
---
diff --git a/gtk/theme/Adwaita/_common.scss b/gtk/theme/Adwaita/_common.scss
index c7eb975045..19b6993274 100644
--- a/gtk/theme/Adwaita/_common.scss
+++ b/gtk/theme/Adwaita/_common.scss
@@ -4710,7 +4710,12 @@ stackswitcher.circular {
* Emoji *
********/
-popover.emoji-picker { padding-left: 0; padding-right: 0; }
+popover.emoji-picker {
+ padding-left: 0;
+ padding-right: 0;
+
+ entry.search { margin: 3px 5px 5px 5px; }
+}
button.emoji-section {
border-color: transparent;
@@ -4730,8 +4735,11 @@ button.emoji-section {
outline-offset: -5px;
+ &:first-child { margin-left: 7px; }
+ &:last-child { margin-right: 7px; }
+
&:backdrop:not(:checked) { border-color: transparent; }
- &:hover { border-color: $borders_color; }
+ &:hover { border-color: if($variant == 'light', $borders_color, transparentize($fg_color, .9)); }
&:checked { border-color: $selected_bg_color; }
label {
@@ -4747,10 +4755,10 @@ button.emoji-section {
popover.emoji-picker .emoji {
font-size: x-large;
padding: 6px;
- border-radius: 6px;
:hover {
background: $selected_bg_color;
+ border-radius: 6px;
}
}
diff --git a/gtk/theme/Adwaita/gtk-contained-dark.css b/gtk/theme/Adwaita/gtk-contained-dark.css
index a6654a0257..96998d9c70 100644
--- a/gtk/theme/Adwaita/gtk-contained-dark.css
+++ b/gtk/theme/Adwaita/gtk-contained-dark.css
@@ -2043,11 +2043,17 @@ stackswitcher.circular > button.circular, stackswitcher.circular > button.text-b
/********* Emoji * */
popover.emoji-picker { padding-left: 0; padding-right: 0; }
+popover.emoji-picker entry.search { margin: 3px 5px 5px 5px; }
+
button.emoji-section { border-color: transparent; border-width: 3px; border-style: none none solid;
border-radius: 0; margin: 2px 4px 2px 4px; padding: 3px 0 0; min-width: 32px; min-height: 28px; /* reset
props inherited from the button style */ background: none; box-shadow: none; text-shadow: none;
outline-offset: -5px; }
+button.emoji-section:first-child { margin-left: 7px; }
+
+button.emoji-section:last-child { margin-right: 7px; }
+
button.emoji-section:backdrop:not(:checked) { border-color: transparent; }
-button.emoji-section:hover { border-color: #1b1b1b; }
+button.emoji-section:hover { border-color: rgba(238, 238, 236, 0.1); }
button.emoji-section:checked { border-color: #15539e; }
@@ -2057,9 +2063,9 @@ button.emoji-section:hover label { opacity: 0.775; }
button.emoji-section:checked label { opacity: 1; }
-popover.emoji-picker .emoji { font-size: x-large; padding: 6px; border-radius: 6px; }
+popover.emoji-picker .emoji { font-size: x-large; padding: 6px; }
-popover.emoji-picker .emoji :hover { background: #15539e; }
+popover.emoji-picker .emoji :hover { background: #15539e; border-radius: 6px; }
popover.emoji-completion contents row box { border-spacing: 10px; padding: 2px 10px; }
diff --git a/gtk/theme/Adwaita/gtk-contained.css b/gtk/theme/Adwaita/gtk-contained.css
index 15bbbf4959..99b379af84 100644
--- a/gtk/theme/Adwaita/gtk-contained.css
+++ b/gtk/theme/Adwaita/gtk-contained.css
@@ -2059,8 +2059,14 @@ stackswitcher.circular > button.circular, stackswitcher.circular > button.text-b
/********* Emoji * */
popover.emoji-picker { padding-left: 0; padding-right: 0; }
+popover.emoji-picker entry.search { margin: 3px 5px 5px 5px; }
+
button.emoji-section { border-color: transparent; border-width: 3px; border-style: none none solid;
border-radius: 0; margin: 2px 4px 2px 4px; padding: 3px 0 0; min-width: 32px; min-height: 28px; /* reset
props inherited from the button style */ background: none; box-shadow: none; text-shadow: none;
outline-offset: -5px; }
+button.emoji-section:first-child { margin-left: 7px; }
+
+button.emoji-section:last-child { margin-right: 7px; }
+
button.emoji-section:backdrop:not(:checked) { border-color: transparent; }
button.emoji-section:hover { border-color: #cdc7c2; }
@@ -2073,9 +2079,9 @@ button.emoji-section:hover label { opacity: 0.775; }
button.emoji-section:checked label { opacity: 1; }
-popover.emoji-picker .emoji { font-size: x-large; padding: 6px; border-radius: 6px; }
+popover.emoji-picker .emoji { font-size: x-large; padding: 6px; }
-popover.emoji-picker .emoji :hover { background: #3584e4; }
+popover.emoji-picker .emoji :hover { background: #3584e4; border-radius: 6px; }
popover.emoji-completion contents row box { border-spacing: 10px; padding: 2px 10px; }
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]