[gnome-boxes/refactor-thumbs: 5/5] views: Make view style more consistent
- From: Felipe Borges <felipeborges src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes/refactor-thumbs: 5/5] views: Make view style more consistent
- Date: Tue, 4 Jan 2022 11:31:58 +0000 (UTC)
commit da4d6df4b7ab798c28d8bd701ecc81a73f152602
Author: Felipe Borges <felipeborges gnome org>
Date: Tue Jan 4 12:29:27 2022 +0100
views: Make view style more consistent
So both IconView and ListBox are using the "content" style.
The thumbnail background color colides with the ListView row background.
We might want to pick a unique (derived) color for thumbnails instead.
It could be a lighter or darker version of a color defined by the
theme.
data/gtk-style.css | 2 +-
data/ui/icon-view.ui | 5 +----
data/ui/list-view.ui | 5 +----
3 files changed, 3 insertions(+), 9 deletions(-)
---
diff --git a/data/gtk-style.css b/data/gtk-style.css
index 90b099c7..33fa7a41 100644
--- a/data/gtk-style.css
+++ b/data/gtk-style.css
@@ -13,7 +13,7 @@
}
.thumbnail {
- background: @theme_bg_color;
+ background: @theme_base_color;
color: @theme_fg_color;
border: 1px solid @borders;
}
diff --git a/data/ui/icon-view.ui b/data/ui/icon-view.ui
index 8067a705..e80c53c2 100644
--- a/data/ui/icon-view.ui
+++ b/data/ui/icon-view.ui
@@ -9,9 +9,6 @@
<child>
<object class="GtkBox">
<property name="visible">True</property>
- <style>
- <class name="view"/>
- </style>
<child>
<object class="GtkFlowBox" id="flowbox">
@@ -26,7 +23,7 @@
<signal name="child-activated" handler="on_child_activated"/>
<signal name="key-press-event" handler="on_key_press_event"/>
<style>
- <class name="boxes-list-box"/>
+ <class name="content"/>
</style>
</object>
</child>
diff --git a/data/ui/list-view.ui b/data/ui/list-view.ui
index 181d6de2..7f84b6e4 100644
--- a/data/ui/list-view.ui
+++ b/data/ui/list-view.ui
@@ -8,9 +8,6 @@
<child>
<object class="GtkBox">
<property name="visible">True</property>
- <style>
- <class name="view"/>
- </style>
<child>
<object class="HdyClamp">
@@ -30,7 +27,7 @@
<signal name="button-release-event" handler="on_button_press_event"/>
<signal name="key-press-event" handler="on_key_press_event"/>
<style>
- <class name="boxes-list-box"/>
+ <class name="content"/>
</style>
</object>
</child>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]