diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2020-12-17 01:40:02 -0500 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2020-12-17 01:40:02 -0500 |
commit | 58d0424dfc47e99c9c21396819a2234df158b4d0 (patch) | |
tree | 19c0b48efcfa0b04b1a31a59477c35f7f4724155 /components/chatmessage.cpp | |
parent | 315a4a8df80b922bbb8132c625803443c031dfd3 (diff) | |
download | abaddon-portaudio-58d0424dfc47e99c9c21396819a2234df158b4d0.tar.gz abaddon-portaudio-58d0424dfc47e99c9c21396819a2234df158b4d0.zip |
abstract away settings some more
Diffstat (limited to 'components/chatmessage.cpp')
-rw-r--r-- | components/chatmessage.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/components/chatmessage.cpp b/components/chatmessage.cpp index 5a076c6..5a883b7 100644 --- a/components/chatmessage.cpp +++ b/components/chatmessage.cpp @@ -622,7 +622,7 @@ void ChatMessageItemContainer::HandleCustomEmojis(Gtk::TextView *tv) { } void ChatMessageItemContainer::HandleEmojis(Gtk::TextView *tv) { - static bool emojis = Abaddon::Get().GetSettings().GetSettingBool("gui", "emojis", true); + static bool emojis = Abaddon::Get().GetSettings().GetShowEmojis(); if (emojis) { HandleStockEmojis(tv); HandleCustomEmojis(tv); @@ -712,8 +712,7 @@ void ChatMessageItemContainer::HandleLinks(Gtk::TextView *tv) { Glib::ustring text = GetText(buf); // i'd like to let this be done thru css like .message-link { color: #bitch; } but idk how - auto &settings = Abaddon::Get().GetSettings(); - static auto link_color = settings.GetSettingString("misc", "linkcolor", "rgba(40, 200, 180, 255)"); + static auto link_color = Abaddon::Get().GetSettings().GetLinkColor(); int startpos = 0; Glib::MatchInfo match; |