mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-29 17:28:41 -04:00
Added links colors with settings feature
This commit is contained in:
parent
5361bed037
commit
5abefa4664
23 changed files with 170 additions and 18 deletions
|
@ -33,6 +33,7 @@
|
|||
#include "util/HandleRichText.h"
|
||||
#include "gui/RetroShareLink.h"
|
||||
#include "util/imageutil.h"
|
||||
#include "gui/settings/rsharesettings.h"
|
||||
|
||||
#include <retroshare/rspeers.h>
|
||||
|
||||
|
@ -44,6 +45,10 @@ MimeTextEdit::MimeTextEdit(QWidget *parent)
|
|||
mForceCompleterShowNextKeyEvent = false;
|
||||
highliter = new RsSyntaxHighlighter(this);
|
||||
mOnlyPlainText = false;
|
||||
|
||||
linkColor = Settings->getLinkColor();
|
||||
QString sheet = QString::fromLatin1("a { text-decoration: underline; color: %1 }").arg(linkColor.name());
|
||||
document()->setDefaultStyleSheet(sheet);
|
||||
}
|
||||
|
||||
bool MimeTextEdit::canInsertFromMimeData(const QMimeData* source) const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue