You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
349 B
18 lines
349 B
import QtQuick 2.10
|
|
import QtQuick.Controls 2.3
|
|
import de.skycoder42.QtMvvm.Quick 1.1
|
|
|
|
Label {
|
|
id: _decorLabel
|
|
|
|
ColorHelper {
|
|
id: helper
|
|
}
|
|
|
|
property Item edit: _decorLabel.nextItemInFocusChain()
|
|
|
|
readonly property bool editHasFocus: edit && edit.focus
|
|
|
|
color: editHasFocus ? helper.highlight : helper.text
|
|
opacity: editHasFocus ? 1 : 0.5
|
|
}
|
|
|