diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-02-12 11:32:53 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-02-12 11:37:21 +0000 |
commit | 06e8c58acb6ba667f8fd8c5587a3b3037324971a (patch) | |
tree | 4a5808e1812b9ade9006bfe2e2a759430f4c5042 /vcl/source/control | |
parent | 1e52ec3951f3e9d687bdff20a6378cb2f4819a90 (diff) |
Related: rhbz#1287593 subissue 6, get suitable hyperlink colors for dark theme
Change-Id: Ieb5ed52fa8a9c26b3e839388a58cff295166eed9
Diffstat (limited to 'vcl/source/control')
-rw-r--r-- | vcl/source/control/fixedhyper.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/vcl/source/control/fixedhyper.cxx b/vcl/source/control/fixedhyper.cxx index da53f9a18824..7f940dd203cb 100644 --- a/vcl/source/control/fixedhyper.cxx +++ b/vcl/source/control/fixedhyper.cxx @@ -18,6 +18,7 @@ */ #include <vcl/fixedhyper.hxx> +#include <vcl/svapp.hxx> FixedHyperlink::FixedHyperlink(vcl::Window* pParent, WinBits nWinStyle) : FixedText(pParent, nWinStyle) @@ -35,8 +36,8 @@ void FixedHyperlink::Initialize() // to underline aFont.SetUnderline( LINESTYLE_SINGLE ); SetControlFont( aFont ); - // changes the color to light blue - SetControlForeground( Color( COL_LIGHTBLUE ) ); + // changes the color to link color + SetControlForeground( Application::GetSettings().GetStyleSettings().GetLinkColor() ); // calculates text len m_nTextLen = GetCtrlTextWidth( GetText() ); } |