some refactorage

This commit is contained in:
ouwou
2021-02-21 01:47:21 -05:00
parent c5bc3455b1
commit 5209d495d2
7 changed files with 104 additions and 90 deletions

View File

@@ -328,7 +328,7 @@ CompleterEntry::CompleterEntry(const Glib::ustring &completion, int index)
void CompleterEntry::SetTextColor(int color) {
if (m_text == nullptr) return;
const auto cur = m_text->get_text();
m_text->set_markup("<span color=\"#" + IntToCSSColor(color) + "\">" + Glib::Markup::escape_text(cur) + "</span>");
m_text->set_markup("<span color='#" + IntToCSSColor(color) + "'>" + Glib::Markup::escape_text(cur) + "</span>");
}
void CompleterEntry::SetText(const Glib::ustring &text) {