[gnome-software/wip/mcrha/image-runtime-warning] gtk-style.css: Change margin for adaptive-symbolic icon
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/wip/mcrha/image-runtime-warning] gtk-style.css: Change margin for adaptive-symbolic icon
- Date: Tue, 26 Oct 2021 11:37:05 +0000 (UTC)
commit 5e1359bb0614415b998436611fe209b0d3c3a02d
Author: Milan Crha <mcrha redhat com>
Date: Tue Oct 26 13:32:47 2021 +0200
gtk-style.css: Change margin for adaptive-symbolic icon
The margin is used to draw the icon rectangular, instead of square,
but gtk4 claims a runtime warning due to too large margin:
> Gtk GtkImage 0x889cf80 (image) reported min height -1942, but sizes must be >= 0
where the -1942 = (-999) + (-999) + 56. It's not needed to use such large
margin, especially when the code sets the image pixel size to 56, thus
split the pixel size evenly in the margin.
src/gtk-style.css | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/gtk-style.css b/src/gtk-style.css
index 1cf09f6bd..b15262566 100644
--- a/src/gtk-style.css
+++ b/src/gtk-style.css
@@ -744,8 +744,8 @@ app-context-bar.vertical box:not(:last-child) .context-tile {
* use this hack to make it zero-height and vertically centred. The
* vertical size group ensures that it does still actually have a
* height. */
- margin-top: -999px;
- margin-bottom: -999px;
+ margin-top: -28px;
+ margin-bottom: -28px;
}
.context-tile-title { font-weight: bold; }
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]