[gtk/list-styles] Adwaita: style rich-list and data-table
- From: Jakub Steiner <jimmac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/list-styles] Adwaita: style rich-list and data-table
- Date: Thu, 6 Aug 2020 09:57:15 +0000 (UTC)
commit 3206df9122333ad360920fbefd82f883604865bf
Author: Jakub Steiner <jimmac gmail com>
Date: Thu Aug 6 11:55:04 2020 +0200
Adwaita: style rich-list and data-table
- style special list types
- add navigation-sidebar too
https://gitlab.gnome.org/GNOME/gtk/-/issues/2929
gtk/theme/Adwaita/_common.scss | 26 ++++++++++++++++++++++++--
1 file changed, 24 insertions(+), 2 deletions(-)
---
diff --git a/gtk/theme/Adwaita/_common.scss b/gtk/theme/Adwaita/_common.scss
index b33455d539..c815ba8448 100644
--- a/gtk/theme/Adwaita/_common.scss
+++ b/gtk/theme/Adwaita/_common.scss
@@ -3058,7 +3058,7 @@ separator {
* Lists *
*********/
listview,
-list {
+list, .rich-list {
color: $text_color;
background-color: $base_color;
border-color: $borders_color;
@@ -3112,6 +3112,25 @@ row {
}
}
+/********************************************************
+ * Data Tables *
+ * treeview like tables with individual focusable cells *
+ * https://gitlab.gnome.org/GNOME/gtk/-/issues/2929 *
+ ********************************************************/
+
+ .data-table row:not(:selected) cell editablelabel:not(.editing):focus-within {
+ outline: 2px solid $focus_border_color;
+ }
+
+ .data-table row:not(:selected) cell editablelabel.editing:focus-within {
+ outline: 2px solid $selected_bg_color;
+ }
+
+ .data-table row:not(:selected) cell editablelabel.editing text selection {
+ color: $selected_fg_color;
+ background-color: $selected_bg_color;
+ }
+
/*********************
* App Notifications *
@@ -3353,7 +3372,10 @@ row image.sidebar-icon { opacity: $_placesidebar_icons_opacity; } // dim the sid
// see bug #786613 for details
// on this oddity
-placessidebar {
+/* this should be more generic, only using .navigation-sidebar
+ https://gitlab.gnome.org/GNOME/gtk/-/issues/2929
+*/
+placessidebar, .navigation-sidebar {
> scrolledwindow.frame { border-style: none; }
row {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]