[gnome-builder/wip/gtk4-port: 937/1774] libide/gui: make checkimage css helpers more reusable
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/gtk4-port: 937/1774] libide/gui: make checkimage css helpers more reusable
- Date: Mon, 11 Jul 2022 22:31:29 +0000 (UTC)
commit e8580f97d500c8ba840a67944955424f65fef9da
Author: Christian Hergert <chergert redhat com>
Date: Tue May 10 11:21:40 2022 -0700
libide/gui: make checkimage css helpers more reusable
They can be used outside of preferences if we make this more generic.
src/libide/gui/ide-preferences-window.c | 2 +-
src/libide/gui/style.css | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/libide/gui/ide-preferences-window.c b/src/libide/gui/ide-preferences-window.c
index 4f76bdf37..36acecdf9 100644
--- a/src/libide/gui/ide-preferences-window.c
+++ b/src/libide/gui/ide-preferences-window.c
@@ -1286,7 +1286,7 @@ ide_preferences_window_check (const char *page_name,
"valign", GTK_ALIGN_CENTER,
"can-target", FALSE,
NULL);
- gtk_widget_add_css_class (child, "preferences-check");
+ gtk_widget_add_css_class (child, "checkimage");
row = g_object_new (ADW_TYPE_ACTION_ROW,
"title", title_esc,
"subtitle", subtitle_esc,
diff --git a/src/libide/gui/style.css b/src/libide/gui/style.css
index 6a4d971ca..2e1e5be90 100644
--- a/src/libide/gui/style.css
+++ b/src/libide/gui/style.css
@@ -9,7 +9,7 @@ window.preferences list.boxed-list.style-variant button {
window.preferences list.boxed-list.style-variant button:checked {
border-color: @theme_selected_bg_color;
}
-window.preferences list check {
+.checkimage check {
background: none;
outline: none;
box-shadow: none;
@@ -18,7 +18,7 @@ window.preferences list check {
-gtk-icon-source: none;
-gtk-icon-size: 18px;
}
-window.preferences list check:checked {
+.checkimage check:checked {
-gtk-icon-source: -gtk-icontheme('object-select-symbolic');
}
stylevariantpreview widget.wallpaper {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]