small changes and the beginning of a TextBackground.qml
This commit is contained in:
parent
9f4d426a8f
commit
7e6e8c71e0
4 changed files with 31 additions and 6 deletions
20
src/qml/presenter/TextBackground.qml
Normal file
20
src/qml/presenter/TextBackground.qml
Normal file
|
@ -0,0 +1,20 @@
|
|||
import QtQuick 2.13
|
||||
|
||||
Rectangle {
|
||||
// Used for
|
||||
property var control
|
||||
property bool errorCondition
|
||||
|
||||
color: Kirigami.Theme.backgroundColor
|
||||
implicitWidth: parent.width
|
||||
implicitHeight: parent.height
|
||||
radius: 10
|
||||
border.color: {
|
||||
if (control.enabled)
|
||||
return Kirigami.Theme.highlightColor
|
||||
else if (errorCondition)
|
||||
return Kirigami.Theme.negativeTextColor
|
||||
else
|
||||
return Kirigami.Theme.positiveColor
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue