Commit 3fec4875 authored by kaniini's avatar kaniini

timeline widget: give links a better default color

parent 80474e64
......@@ -32,6 +32,7 @@ static void init_text_document (QTextDocument & doc, const QStyleOptionViewItem
QTextOption textOption (doc.defaultTextOption());
textOption.setWrapMode (QTextOption::WordWrap);
doc.setDefaultTextOption (textOption);
doc.setDefaultStyleSheet("a { color: palette(highlight); }");
doc.setTextWidth(option.widget->rect().width() - (AVATAR_ICON_SIZE + WORDWRAP_EDGE));
doc.setHtml (option.text);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment