fix: link color

This commit is contained in:
Richard Ramos 2020-08-05 08:38:45 -04:00 committed by Pascal Precht
parent 5e7eefe553
commit 613c70c4a6
No known key found for this signature in database
GPG Key ID: 0EE28D8D6FD85D7D
5 changed files with 12 additions and 4 deletions

View File

@ -44,9 +44,11 @@ StyledTextEdit {
`p {`+
`white-space: pre-wrap;`+
`}`+
`a {`+
`color: ${isCurrentUser ? Style.current.white : Style.current.textColor};`+
`}`+
`a.mention {`+
`color: ${isCurrentUser ? Style.current.black : Style.current.white};`+
`font-weight: bold;`+
`color: ${isCurrentUser ? Style.current.cyan : Style.current.turquoise};`+
`}`+
`blockquote {`+
`margin: 0;`+

View File

@ -14,6 +14,7 @@ QtObject {
readonly property color black: "#000000"
readonly property color grey: "#EEF2F5"
readonly property color lightBlue: "#ECEFFC"
readonly property color cyan: "#00FFFF"
readonly property color blue: "#4360DF"
readonly property color transparent: "#00000000"
readonly property color darkGrey: "#939BA1"
@ -23,6 +24,7 @@ QtObject {
readonly property color red: "#FF2D55"
readonly property color lightRed: "#FFEAEE"
readonly property color green: "#4EBC60"
readonly property color turquoise: "#007b7d"
readonly property int xlPadding: 32
readonly property int bigPadding: 24

View File

@ -7,6 +7,7 @@ Theme {
property color black: "#000000"
property color grey: "#EEF2F5"
property color lightBlue: "#ECEFFC"
property color cyan: "#00FFFF"
property color blue: "#758EF0"
property color transparent: "#00000000"
property color darkGrey: "#838C91"
@ -16,6 +17,7 @@ Theme {
property color red: "#FC5F5F"
property color lightRed: "#FFEAEE"
property color green: "#4EBC60"
property color turquoise: "#007b7d"
property color background: "#141414"
property color border: "#252528"

View File

@ -7,6 +7,7 @@ Theme {
property color black: "#000000"
property color grey: "#EEF2F5"
property color lightBlue: "#ECEFFC"
property color cyan: "#00FFFF"
property color blue: "#4360DF"
property color transparent: "#00000000"
property color darkGrey: "#939BA1"
@ -16,6 +17,7 @@ Theme {
property color red: "#FF2D55"
property color lightRed: "#FFEAEE"
property color green: "#4EBC60"
property color turquoise: "#007b7d"
property color background: white
property color border: grey

View File

@ -245,7 +245,7 @@ FilterXSS.prototype.process = function(html) {
function getDefaultWhiteList() {
return {
a: ["target", "href", "title"],
a: ["target", "href", "title", "class"],
abbr: ["title"],
address: [],
area: ["shape", "coords", "href", "alt"],