[ubuntu] better colouring of texts

This commit is contained in:
Alberto Mardegan 2014-12-27 23:01:03 +01:00
parent 6ccbbb85e7
commit 052fb649f4
2 changed files with 2 additions and 4 deletions

View file

@ -86,15 +86,13 @@ Item {
right: parent.right
rightMargin: Theme.paddingLarge
}
color: Theme.secondaryColor
}
RescalingRichText {
id: itemView
width: parent.width
text: parseContent(root.content, root.attachments)
fontSize: Theme.fontSizeSmall
color: Theme.primaryColor
color: Theme.palette.selected.baseText
onLinkActivated: Qt.openUrlExternally(link)
}
}

View file

@ -34,7 +34,7 @@ Item {
property alias color: contentText.color
property real fontSize: Theme.fontSizeSmall
property string _RICHTEXT_STYLESHEET_PREAMBLE: "<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\"><style>a { text-decoration: none; color: '" + Theme.highlightColor + "' }</style></head><body>";
property string _RICHTEXT_STYLESHEET_PREAMBLE: "<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\"><style>a { text-decoration: none; color: 'blue' }</style></head><body>";
property string _RICHTEXT_STYLESHEET_APPENDIX: "</body></html>";
property real scaling: 1