diff options
author | nana-4 <hnmaigo@gmail.com> | 2020-09-22 10:37:04 +0900 |
---|---|---|
committer | nana-4 <hnmaigo@gmail.com> | 2020-09-22 10:37:04 +0900 |
commit | 42be26f1b106b0f5bf7f924f9e403e81d4952d55 (patch) | |
tree | 08bc6201ca646ca369f91553797a0be2038c884a /gtk/theme | |
parent | f98055b0756c862e89cc784dd3358dedb9352a89 (diff) | |
download | gtk+-42be26f1b106b0f5bf7f924f9e403e81d4952d55.tar.gz |
Adwaita: Improve columnview styling
- Move padding from parent row to child cell.
- Align horizontal sizing of cell with header button.
- Properly support GtkColumnView:show-column-separators.
- Change cell height with and without .data-table.
Diffstat (limited to 'gtk/theme')
-rw-r--r-- | gtk/theme/Adwaita/_common.scss | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/gtk/theme/Adwaita/_common.scss b/gtk/theme/Adwaita/_common.scss index 35788a84c4..fe5faee0df 100644 --- a/gtk/theme/Adwaita/_common.scss +++ b/gtk/theme/Adwaita/_common.scss @@ -3116,6 +3116,33 @@ row { } } +columnview { + // move padding to child cells + > listview > row { + padding: 0; + + // align horizontal sizing with header buttons + > cell { + padding: 8px 6px; + + &:not(:last-child) { + border-right: 1px solid transparent; + } + } + } + + // make column separators visible when :show-column-separators is true + &.column-separators > listview > row > cell { + border-right-color: $_treeview_borders_color; + } + + // shrink vertically for .data-table + &.data-table > listview > row > cell { + padding-top: 2px; + padding-bottom: 2px; + } +} + /******************************************************** * Data Tables * * treeview like tables with individual focusable cells * |