After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 779074 - style selectionmode checkboxes for flowbox
style selectionmode checkboxes for flowbox
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Themes
3.22.x
Other All
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks: 690623 774914
 
 
Reported: 2017-02-22 15:43 UTC by Jakub Steiner
Modified: 2017-03-02 11:41 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Adwaita: style selectionmode checks for flowbox (13.12 KB, patch)
2017-02-22 16:52 UTC, Jakub Steiner
none Details | Review
Adwaita: style selectionmode checks for flowbox (13.21 KB, patch)
2017-02-22 16:53 UTC, Jakub Steiner
accepted-commit_now Details | Review
Adwaita: style selectionmode checks for flowbox tiles (11.48 KB, patch)
2017-03-02 11:40 UTC, Jakub Steiner
committed Details | Review

Description Jakub Steiner 2017-02-22 15:43:17 UTC
In relation to bug #779073, the flowbox styling, it would be nice to use the selectionmode assets for flow box as well.
Comment 1 Jakub Steiner 2017-02-22 16:52:14 UTC
Created attachment 346464 [details] [review]
Adwaita: style selectionmode checks for flowbox

Few irks a certain italian might find unacceptable:

- asset based rather than drawn with css machinery
- non-checked active pixmap seems to be blank
  (checkbox-active-selectionmode.png). Couldn't figure out why.
Comment 2 Jakub Steiner 2017-02-22 16:53:58 UTC
Created attachment 346465 [details] [review]
Adwaita: style selectionmode checks for flowbox

Few irks a certain italian might find unacceptable:

- asset based rather than drawn with css machinery
- non-checked active pixmap seems to be blank
  (checkbox-active-selectionmode.png). Couldn't figure out why.
- original selector has style a .check class, rather
  than the class node in the flowbox
Comment 3 Lapo Calamandrei 2017-02-22 17:40:25 UTC
I thought I had those styled already (big style class or something), or maybe I didn't push, lemme check that out before pushing.
Comment 4 Debarshi Ray 2017-02-22 19:30:23 UTC
I'd just point out that the GtkIconView/GtkTreeView based content-views (still used by Documents and other applications) are not using a GtkCheckButton. They are using a custom GtkCellRenderer, and those work with the "check" style class.

On the other hand, Photos uses the GtkFlowBox based content-view and it uses a GtkCheckButton with the usual "checkbutton check" CSS nodes.

It would be nice to retain support for both scenarios until all applications have been ported.
Comment 5 Matthias Clasen 2017-03-01 20:17:00 UTC
Review of attachment 346465 [details] [review]:

please, just push theme fixes that you and the Italian agree on
Comment 6 Matthias Clasen 2017-03-01 20:17:10 UTC
Review of attachment 346465 [details] [review]:

please, just push theme fixes that you and the Italian agree on
Comment 7 Debarshi Ray 2017-03-02 07:14:25 UTC
(In reply to Jakub Steiner from comment #2)
> Created attachment 346465 [details] [review] [review]
> Adwaita: style selectionmode checks for flowbox
> 
> Few irks a certain italian might find unacceptable:
>
> [...]
>
> - original selector has style a .check class, rather
>   than the class node in the flowbox

The original selector used the "check" CSS style class because the GtkIconView/GtkTreeView based content-views (still used by Documents and other applications) are not using a GtkCheckButton. They are using a custom GtkCellRenderer from libgd. We need to retain compatibility for a while. See comment 4.
Comment 8 Debarshi Ray 2017-03-02 07:14:57 UTC
I can confirm that this patch has the desired effect on the GtkFlowBox-based gnome-photos.
Comment 9 Jakub Steiner 2017-03-02 11:40:33 UTC
Created attachment 347051 [details] [review]
Adwaita: style selectionmode checks for flowbox tiles

- continue being asset based rather than drawn by CSS
- using node 'check' rather than style '.check'
Comment 10 Jakub Steiner 2017-03-02 11:40:55 UTC
Attachment 347051 [details] pushed as fc81dc1 - Adwaita: style selectionmode checks for flowbox tiles