GNOME Bugzilla – Bug 709629
Use :link and :visited for link colors
Last modified: 2013-11-04 16:13:24 UTC
Created attachment 256720 [details] [review] Adds :link and :visited states to the css parser Links in various widgets are currenly styled via -GtkWidget-link-color and -GtkWidget-visited-link-color. I have prepared a series of patches that makes it possible to style links via normal css pseudo classes and also ports GtkLabel, GtkLinkButton and GtkAboutDialog to using it. Grepping for link-color reveals a few part which still need love like the docs in gtklabel.c, the style properties in gtkwidget.c and the gtk-win32-base.css.
Created attachment 256721 [details] [review] port GtkLabel to use :link and :visited
Created attachment 256722 [details] [review] Port GtkLinkButton to use :link and :visited
Created attachment 256723 [details] [review] Port GtkAboutDialog to use :link and :visited
Created attachment 256724 [details] [review] Port Adwaita to use :link This is just the current behavior where all links look the same everywhere and have the same color when visited.
Created attachment 257384 [details] [review] Adwaita: Use :link and :visited instead of the -GtkWidget equivaltents Well, the old patch was obviously missing the :visited style.
Created attachment 257619 [details] [review] Port GtkLinkButton to use :link and :visited This patch sets the visited link color in _set_visited instead of in notify::visited