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 662334 - Dark themes don't work well
Dark themes don't work well
Status: RESOLVED FIXED
Product: gnome-contacts
Classification: Core
Component: general
3.12.x
Other Linux
: Normal normal
: ---
Assigned To: GNOME Contacts maintainer(s)
GNOME Contacts maintainer(s)
available
: 687012 697607 699051 734615 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2011-10-20 20:53 UTC by Micah Nordland
Modified: 2017-06-26 15:42 UTC
See Also:
GNOME target: ---
GNOME version: 3.11/3.12


Attachments
Patch to fix the css (1.63 KB, patch)
2011-11-02 01:37 UTC, Amanda Cameron
rejected Details | Review
Address field fix (343 bytes, text/css)
2014-08-15 00:46 UTC, Cody Opel
  Details
Postal + Notes CSS fixes for Adwaita Dark (1.19 KB, patch)
2014-09-12 02:46 UTC, David Goerger
none Details | Review
postal, notes CSS take2 (1.53 KB, patch)
2014-09-13 17:33 UTC, David Goerger
none Details | Review

Description Micah Nordland 2011-10-20 20:53:36 UTC
Hi, I've been checking out gnome-contacts, and while I like the app, it just doesn't play nice with my dark theme. Any dark theme I've tried has always had a white background in the contacts pane, and white text as well, because that is the color for dark themes. The rest of the app themes nicely.
Comment 1 Matthias Clasen 2011-10-21 19:04:46 UTC
The one theme that is relevant here is highcontrast-inverse, and gnome-contacts does in fact have several outright bugs in that theme.
Comment 2 Micah Nordland 2011-10-21 19:06:22 UTC
The dark version of Adwaita also does this.
Comment 3 Matthias Clasen 2011-10-21 19:10:11 UTC
The lowcontrast theme also shows themability issues
Comment 4 Amanda Cameron 2011-11-02 01:37:04 UTC
Created attachment 200470 [details] [review]
Patch to fix the css

Sorry for the bad formatting in the name, but I'm a bit rusty with git's format-patch :P

This fixes this bug for the most part, the X in a circle is prettymuch invisible ( At least, in adawata-dark ) but it's at least readable
Comment 5 Micah Nordland 2011-11-11 00:37:14 UTC
Where do I apply this to check?
Comment 6 Matthias Clasen 2011-11-11 13:06:26 UTC
Thanks, I tried this patch, and it works great with most a11y themes. low contrast and highcontrast-inverse work flawlessly now. However, with highcontrast, the main page becomes all black, instead of black-on-white as is probably intended.
Comment 7 Alexander Larsson 2012-01-20 13:08:19 UTC
This isn't quite right
The plan is to move all the custom css to the adwaita theme, as realistically it is adwaita specific. This will fix most of the issues with other themes, although there might be other issues hidden by this.
Comment 8 Guillaume Ayoub 2012-10-01 11:58:54 UTC
This bug is not fixed in gnome-contacts-3.6.0. Any news about this? Is there anything we can do to help?
Comment 9 Allan Day 2012-11-14 09:35:51 UTC
(In reply to comment #8)
> This bug is not fixed in gnome-contacts-3.6.0. Any news about this? Is there
> anything we can do to help?

You could talk to the theme developers about moving the CSS to Adwaita. CC'ing a couple of them now...
Comment 10 Lapo Calamandrei 2012-11-14 11:37:54 UTC
My plan was integrating in adwaita contacts css cleaning it up a bit, but I hit a nice performance bug which is blocking me, as soon as it gets sorted out (so I can actually try working on the theme for it w/o waiting for ages) I'll start once again.
Comment 11 Guillaume Ayoub 2013-04-25 15:21:43 UTC
(In reply to comment #10)
> My plan was integrating in adwaita contacts css cleaning it up a bit, but I hit
> a nice performance bug which is blocking me, as soon as it gets sorted out (so
> I can actually try working on the theme for it w/o waiting for ages) I'll start
> once again.

Is that performance bug fixed in 3.8?
Comment 12 Erick Perez Castellanos 2013-04-26 14:58:45 UTC
*** Bug 687012 has been marked as a duplicate of this bug. ***
Comment 13 Erick Perez Castellanos 2013-04-26 15:06:09 UTC
*** Bug 697607 has been marked as a duplicate of this bug. ***
Comment 14 Erick Perez Castellanos 2013-06-05 12:44:18 UTC
*** Bug 699051 has been marked as a duplicate of this bug. ***
Comment 15 Bastian Ilsø 2013-10-20 15:34:20 UTC
Can confirm this bug in GNOME 3.10 - any news?
Comment 16 Fran Diéguez 2013-10-21 17:46:06 UTC
Yes, in GNOME 3.10 this bug is already present.
Comment 17 Britt Yazel 2014-03-31 07:13:00 UTC
This bug continues on in Gnome 3.12. There seems to be no change in this bug in the last 2-3 versions of Gnome. It seems that Gnome-contacts is not as high traffic of an application as the others.
Comment 18 Allan Day 2014-04-08 11:11:33 UTC
If someone wants to take this on, they will need to review what custom CSS there is for contacts, and work on Adwaita so that stock theme does everything we need it to.
Comment 19 Erick Perez Castellanos 2014-08-11 13:02:36 UTC
I've made progress on this.
This has landed on master here: https://git.gnome.org/browse/gnome-contacts/commit/?id=05cdb1cd6bd679a8d8db51e3869c5a833dba1063
Comment 20 Erick Perez Castellanos 2014-08-11 14:19:48 UTC
*** Bug 734615 has been marked as a duplicate of this bug. ***
Comment 21 Erick Perez Castellanos 2014-08-11 14:31:01 UTC
Review of attachment 200470 [details] [review]:

CSS code has changed much since this patch was made
Comment 22 Cody Opel 2014-08-15 00:46:20 UTC
Created attachment 283423 [details]
Address field fix

I was working on this and found out that most of the issues are fixed upstream with the latest git build.

The only thing I noticed so far is that in the contact editor the address & notes field don't use the default system theme.

In the attachment is what I used to correct the issue for the address field, but I haven't figured out the notes field yet.
Comment 23 Erick Perez Castellanos 2014-08-15 14:43:39 UTC
Can you format this patch properly against master?

(In reply to comment #22)
> Created an attachment (id=283423) [details]
> Address field fix
> 
> I was working on this and found out that most of the issues are fixed upstream
> with the latest git build.
> 
> The only thing I noticed so far is that in the contact editor the address &
> notes field don't use the default system theme.
> 
> In the attachment is what I used to correct the issue for the address field,
> but I haven't figured out the notes field yet.
Comment 24 David Goerger 2014-09-12 02:46:55 UTC
Created attachment 285978 [details] [review]
Postal + Notes CSS fixes for Adwaita Dark

I decided to try my hand at this. This includes a modified version of Cody's patch for postal addresses (borders and :focus seem to have since been added to master, so I omitted these), as well as a fix for Notes styled on the code for postal. Actually, the CSS is the same for .contacts-postal-entry and .contacts-text-entry (new CSS class in this patch); maybe it would make more sense to change .contacts-postal-entry to something more generic, and use that class for both? I'm leaving .contacts-text-entry as a separate class for now in case textboxes (notes) and textfields (postal) should be styled differently in GTK+, I've no experience there.

This is my first patch, gotten by `git diff > patch.diff`. Please let me know if this isn't the proper way, thanks!
Comment 25 Jean-François Fortin Tam 2014-09-12 14:19:40 UTC
Hi David, not a maintainer of this project, just sharing the info since you asked: the correct way to make and share a patch is to create a commit in your local branch, and then you do git format-patch thecommit_or_serie_of_commits and it will spit out .patch files for you, with the correct authorship metadata. You can then attach that patch file to bugzilla and people can cherry-pick that into their tree and push it.
Comment 26 David Goerger 2014-09-13 17:33:29 UTC
Created attachment 286140 [details] [review]
postal, notes CSS take2

Jean-François, thank you! Attached is my (hopefully) correct patch. I was able to build this off master, and the postal and notes fields colors appear correctly on my Fedora 20 x86_64 machine (GNOME 3.12 copr), using both the default (light) Adwaita and dark Adwaita variants.

After reviewing the .contacts-postal-entry code, I decided the :nth-child attribute won't probably make much sense for Notes, so I renamed my new CSS class from .contacts-text-entry to .contacts-notes-entry, to keep naming separate and schemes consistent.
Comment 27 Erick Perez Castellanos 2014-09-16 17:34:26 UTC
(In reply to comment #26)
> Created an attachment (id=286140) [details] [review]
> postal, notes CSS take2
> 
> Jean-François, thank you! Attached is my (hopefully) correct patch. I was able
> to build this off master, and the postal and notes fields colors appear
> correctly on my Fedora 20 x86_64 machine (GNOME 3.12 copr), using both the
> default (light) Adwaita and dark Adwaita variants.
> 
> After reviewing the .contacts-postal-entry code, I decided the :nth-child
> attribute won't probably make much sense for Notes, so I renamed my new CSS
> class from .contacts-text-entry to .contacts-notes-entry, to keep naming
> separate and schemes consistent.

I'll review the patch, and hopefully, for 3.14.1 we will have it. Too late on the schedule for having in it now. Thxs for your work tho
Comment 28 Erick Perez Castellanos 2014-09-29 16:06:41 UTC
Review of attachment 286140 [details] [review]:

::: data/ui/style.css
@@ +86,3 @@
  border-radius: 0 0 0 0;
  border-width: 1px 1px 0 1px;
+ background-color: @theme_base_color;

Which background-color takes the entry by default?
Since there's no hardcoded color specified, shouldn't the entry take the expected background-color?

@@ +101,3 @@
+ border-radius: 0 0 0 0;
+ border-width: 1px 1px 0 1px;
+ background-color: @theme_base_color;

Same here
Comment 29 David Goerger 2014-09-29 23:22:41 UTC
> Since there's no hardcoded color specified, shouldn't the entry
> take the expected background-color?

Huh, indeed. I upgraded to Fedora 21 alpha last night (GNOME 3.14), have only the official Fedora GNOME Contacts binary installed, and the colors appear correct for every field. This definitely wasn't the case when I built it a few weeks ago against Fedora 20's GTK 3.12---the background color for these fields was coming through as a bright white, with white-colored text when I entered contact details, which is to say: it was not remotely usable without specifying the background color as in the patch. I guess it came as part of the 3.14 theming / Adwaita improvements? Contacts 3.14 looks gorgeous.

I've only tested with Adwaita's dark variant, but for Adwaita, I think this bug is finally resolved(!). :)
Comment 30 Erick Perez Castellanos 2014-09-30 12:47:49 UTC
(In reply to comment #29)
> > Since there's no hardcoded color specified, shouldn't the entry
> > take the expected background-color?
> 
> Huh, indeed. I upgraded to Fedora 21 alpha last night (GNOME 3.14), have only
> the official Fedora GNOME Contacts binary installed, and the colors appear
> correct for every field. This definitely wasn't the case when I built it a few
> weeks ago against Fedora 20's GTK 3.12---the background color for these fields
> was coming through as a bright white, with white-colored text when I entered
> contact details, which is to say: it was not remotely usable without specifying
> the background color as in the patch. I guess it came as part of the 3.14
> theming / Adwaita improvements? Contacts 3.14 looks gorgeous.
> 
> I've only tested with Adwaita's dark variant, but for Adwaita, I think this bug
> is finally resolved(!). :)

Thxs, I would like some confirmation from Matthias and Allan before closing it
Comment 31 Guillaume Ayoub 2017-06-26 14:09:03 UTC
I think that you can safely close this old issue, Gnome-Contacts now works very well with Adwaita dark.
Comment 32 Niels De Graef 2017-06-26 15:42:50 UTC
Indeed, I don't see any problems anymore with the dark theme.
If anyone still has problems with the latest Contacts, please open a new bug.