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 760996 - background in notebooks (and other places?) now white
background in notebooks (and other places?) now white
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Themes
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2016-01-22 17:23 UTC by Matthias Clasen
Modified: 2016-02-05 05:50 UTC
See Also:
GNOME target: 3.20
GNOME version: ---


Attachments
an affected application: office-runner (16.41 KB, image/png)
2016-01-30 18:01 UTC, Matthias Clasen
Details

Description Matthias Clasen 2016-01-22 17:23:51 UTC
I got this complaint from the anaconda team, but I am seeing similar things in evolution: patches of background that used to be gray now appear white. The anaconda guys were wondering if this is just the background in notebook pages.

See https://openqa.stg.fedoraproject.org/tests/4949/modules/disk_custom_ext3/steps/9/edit for an example
Comment 1 David Shea 2016-01-22 18:08:06 UTC
Maybe related, the "Available Space" and "Total Space" boxes in the example show another background color issue. Both of them have background colors set by adding a CssProvider with "GtkViewport { background-color: <color> }" to the style context of the viewport object (#db3279 for available, #60605b for total), but neither is working now.
Comment 2 Lapo Calamandrei 2016-01-22 18:48:58 UTC
I haven't yet reviewed the notebbo styling but that looks pretty much like app shipped CSS needing updates to reflect GTK+ changes
Comment 3 Matthias Clasen 2016-01-22 22:21:44 UTC
Try replacing GtkViewPort by viewport in that css fragment.
Comment 4 Matthias Clasen 2016-01-23 03:57:22 UTC
Also: whenever you set background-color, you should add background: none to prevent background-images from overriding your color. Or just set background: <your-color>;
Comment 5 Matthias Clasen 2016-01-24 15:35:21 UTC
Turns out background in notebooks has been white before (see the various notebook examples in gtk3-widget-factory, e.g. in 3.18).
Comment 6 David Shea 2016-01-25 20:27:42 UTC
(In reply to Matthias Clasen from comment #3)
> Try replacing GtkViewPort by viewport in that css fragment.

Thanks, that fixes the viewport colors. How do the other style selectors need to be changed? Anaconda has a handful of other rules with class name selectors, one on GtkTreeView (which is no longer working, now that I remembered to check), and the rest on anaconda's custom widgets.
Comment 7 Matthias Clasen 2016-01-25 20:35:25 UTC
(In reply to David Shea from comment #6)
> (In reply to Matthias Clasen from comment #3)
> > Try replacing GtkViewPort by viewport in that css fragment.
> 
> Thanks, that fixes the viewport colors. How do the other style selectors
> need to be changed? Anaconda has a handful of other rules with class name
> selectors, one on GtkTreeView (which is no longer working, now that I
> remembered to check), and the rest on anaconda's custom widgets.

Each widget documents its css names now, see. e.g. here for GtkViewport:

https://developer.gnome.org/gtk3/3.19/GtkViewport.html#GtkViewport.description

A quick (and not 100% reliable table can be found here:

https://wiki.gnome.org/Projects/GTK%2B/StyleClasses
Comment 8 Matthias Clasen 2016-01-30 18:01:57 UTC
Created attachment 320087 [details]
an affected application: office-runner
Comment 9 Lapo Calamandrei 2016-02-03 14:28:48 UTC
the office-runner and other hidden header notebook cases should be cured with commit a0363e5f0a10703a98ae14971fe13f8aed138aba,
not sure it's just that, so leaving this open, feel free to close if the issue is gone though.
Comment 10 Matthias Clasen 2016-02-05 05:50:42 UTC
can confirm office runner is fixed, the cases of white background in evolution too, Lets assume it is fixed