fix: Text color in rules viewer

This commit is contained in:
Petr Mironychev
2025-11-13 00:40:10 +01:00
parent fea9ecddc8
commit 8492ef29b2

View File

@ -223,24 +223,16 @@ Popup {
Layout.fillHeight: true Layout.fillHeight: true
clip: true clip: true
QQC.TextArea { TextEdit {
id: ruleContentArea id: ruleContentArea
readOnly: true readOnly: true
wrapMode: TextArea.Wrap
selectByMouse: true selectByMouse: true
wrapMode: Text.WordWrap
selectionColor: palette.highlight
color: palette.text color: palette.text
font.family: "monospace" font.family: "monospace"
font.pixelSize: 11 font.pixelSize: 11
background: Rectangle {
color: Qt.darker(palette.base, 1.02)
border.color: palette.mid
border.width: 1
radius: 2
}
placeholderText: qsTr("Select a rule file to view its content")
} }
} }
} }