Results 1 to 9 of 9

Thread: How to change hyperlink color?

  1. #1
    Join Date
    Dec 2007
    Location
    Tehran, Iran
    Beans
    70
    Distro
    Ubuntu Development Release

    How to change hyperlink color?

    Hello everyone
    I have been looking for a way to change the default hyperlink colour in gnome from blue to orange, no matter where I look can't find where to tweak this.
    If anyone knows how to please help.
    Thank you.

  2. #2
    Join Date
    Jan 2008
    Location
    /us/al/home/mb_webguy
    Beans
    2,339
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: How to change hyperlink color?

    Install the gnome-color-chooser package. This will allow you to easily change the colors used by Gnome for various things, including hyperlinks (at least in the most recent version).

  3. #3
    Join Date
    Dec 2007
    Location
    Tehran, Iran
    Beans
    70
    Distro
    Ubuntu Development Release

    Re: How to change hyperlink color?

    Thanks, I did try the latest gnome-color-chooser, but it did not change hyperlink colors in Evolution like I wanted it to. After looking around a bit more I was able to find out that gnome-colour-chooser basically modifies ~/.gtkrc-2.0 , after adding some stuff to this config file I was finally able to change most hyperlink colors. Here is the contents of mine:

    #--------------------------------------------------------
    style "default-style"
    {
    GtkWidget::link-color = "#acee00"
    GtkWidget::visited-link-color = "#ffc100"
    GtkHTML::alink_color = "#acee00"
    GtkHTML::link_color = "#acee00"
    GtkHTML::vlink_color = "#ffc100"
    GnomeHref::link_color = "#acee00"
    GtkIMHtml::hyperlink-color = "#acee00"
    GtkIMHtml::hyperlink-prelight-color = "#ffc100"
    }

    class "GtkWidget" style "default-style"
    #---------------------------------------------------------

    gnome-color-chooser only uses "GtkWidget::link-color" and "GtkWidget::visited-link-color" to change hyperlink colour but it seem evolution and some other applications use GtkHTML, GnomeHref or GtkIMHtml. Unfortunately look like Tomboy uses none of the above and is still displaying links in blue.
    Last edited by taqkavar; April 6th, 2009 at 12:52 AM.

  4. #4
    Join Date
    Jan 2009
    Beans
    9

    Re: How to change hyperlink color?

    Many thanks for that. Your fix has made a dark theme usable.

  5. #5
    Join Date
    Mar 2007
    Location
    Helsinki, Finland, Earth
    Beans
    234
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: How to change hyperlink color?

    It would appear that Tomboy has a class called Contrast.cs, which hard-codes a set of "appropriate" colors. Then, the NoteTag.cs class similarly hard-codes which colors to use for which note tags. I would think that people want more choice than this.

    Anyway, the default color for titles and links is Blue. I changed it to LightBlue. Deb package attached ( via Dropbox )

    Alternatively, go to the Tomboy website, and download the tarball. Extract it, and go to the Tomboy subdirectory. edit NoteTag.cs so that the colors are something that sounds appropriate, keeping Contrast.cs open for color name reference. Then save, and run the usual
    Code:
    ./configure --prefix=/usr && make && sudo make install
    in the extracted directory. If You never built tomboy before, you will need to
    Code:
    sudo apt-get build-dep tomboy
    to be able to get through ./configure.
    Last edited by Vermind; May 25th, 2009 at 09:15 PM. Reason: Attachment added.
    Vermind

  6. #6
    Join Date
    May 2010
    Beans
    3

    Re: How to change hyperlink color?

    Quote Originally Posted by taqkavar View Post
    Thanks, I did try the latest gnome-color-chooser, but it did not change hyperlink colors in Evolution like I wanted it to. After looking around a bit more I was able to find out that gnome-colour-chooser basically modifies ~/.gtkrc-2.0 , after adding some stuff to this config file I was finally able to change most hyperlink colors. Here is the contents of mine:

    #--------------------------------------------------------
    style "default-style"
    {
    GtkWidget::link-color = "#acee00"
    GtkWidget::visited-link-color = "#ffc100"
    GtkHTML::alink_color = "#acee00"
    GtkHTML::link_color = "#acee00"
    GtkHTML::vlink_color = "#ffc100"
    GnomeHref::link_color = "#acee00"
    GtkIMHtml::hyperlink-color = "#acee00"
    GtkIMHtml::hyperlink-prelight-color = "#ffc100"
    }

    class "GtkWidget" style "default-style"
    #---------------------------------------------------------

    gnome-color-chooser only uses "GtkWidget::link-color" and "GtkWidget::visited-link-color" to change hyperlink colour but it seem evolution and some other applications use GtkHTML, GnomeHref or GtkIMHtml. Unfortunately look like Tomboy uses none of the above and is still displaying links in blue.
    Thanks from me too: I also had the problem of a dark theme unusable (I'm in kde4 with QtCurve for gtk Apps)

  7. #7
    Join Date
    Dec 2006
    Location
    http://deviator.si
    Beans
    17

    Re: How to change hyperlink color?

    Quote Originally Posted by Vermind View Post
    It would appear that Tomboy has a class called Contrast.cs, which hard-codes a set of "appropriate" colors. Then, the NoteTag.cs class similarly hard-codes which colors to use for which note tags. I would think that people want more choice than this.
    i find it totally insane that these colors are hard-coded. any dark theme fails miserable with tomboy and renders it unusable.

  8. #8
    Join Date
    Jul 2007
    Location
    Poland
    Beans
    4,499
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: How to change hyperlink color?

    many devs lack foresight and if it works for them then it works for everyone, right? laziness can be another reason, hardcoding is simple, fooling around with gtk properties not so much

  9. #9
    Join Date
    Mar 2007
    Location
    Helsinki, Finland, Earth
    Beans
    234
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: How to change hyperlink color?

    Old thread.
    Nowadays some dark themes such as DarkRoom and DarkLooks essentially give up; they only use a dark background for non-input areas and use a light background with black text for input areas.
    I have learned to live with them, since it seems to be the only way. Also a lot of websites force a light background theme, and dark themes dont help there.

    I use the compiz negative plugin to read PDFs in negative, but websites generally don't look good in negative.

    Any ideas for websites?
    Vermind

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •