[libadwaita/wip/exalm/status-page: 3/4] status-page: Set icon size with CSS
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libadwaita/wip/exalm/status-page: 3/4] status-page: Set icon size with CSS
- Date: Wed, 4 Aug 2021 12:40:42 +0000 (UTC)
commit 611c27aff4b6d5e17e8e261c031b6d7d77d0c6e3
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Wed Aug 4 00:07:50 2021 +0500
status-page: Set icon size with CSS
src/adw-status-page.ui | 1 -
src/stylesheet/widgets/_misc.scss | 2 ++
2 files changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/adw-status-page.ui b/src/adw-status-page.ui
index ccc93754..50ee4a94 100644
--- a/src/adw-status-page.ui
+++ b/src/adw-status-page.ui
@@ -21,7 +21,6 @@
<property name="valign">center</property>
<child>
<object class="GtkImage" id="image">
- <property name="pixel-size">128</property>
<binding name="visible">
<closure function="string_is_not_empty" type="gboolean">
<lookup name="icon-name">image</lookup>
diff --git a/src/stylesheet/widgets/_misc.scss b/src/stylesheet/widgets/_misc.scss
index 069b221a..7600d0cb 100644
--- a/src/stylesheet/widgets/_misc.scss
+++ b/src/stylesheet/widgets/_misc.scss
@@ -75,6 +75,8 @@ statuspage > scrolledwindow > viewport > box {
border-spacing: 12px;
> .icon {
+ -gtk-icon-size: 128px;
+
@if $contrast == 'normal' {
color: gtkalpha(currentColor, 0.5);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]