This repository has been archived on 2024-06-03. You can view files and clone it, but cannot push or open issues or pull requests.
app/qml/components/SmoothItemDelegate.qml
Dorian Zedler eeb939ed26 - added 'disconnect' functionality for base station
- made IP->adress of base station editable
- some cleanup
2019-03-29 23:42:56 +01:00

56 lines
1.1 KiB
QML

import QtQuick 2.0
import QtQuick.Controls 2.2
ItemDelegate {
id: control
text: ""
font.pixelSize: options_stack.text_pixelSize
property color textColor: appTheme.style.textColor
opacity: enabled ? 1 : 0.2
contentItem: Text {
visible: false
}
Text {
anchors {
verticalCenter: parent.verticalCenter
left: parent.left
leftMargin: control.width * 0.02
right: parent.right
rightMargin: control.rightPadding
}
text: control.text
color: appTheme.style.textColor
fontSizeMode: Text.Fit
font.pixelSize: control.height * 0.4
minimumPixelSize: 0
}
width: parent.width
background: Rectangle {
color: control.down ? appTheme.style.delegatePressedColor : appTheme.style.delegateBackgroundColor
radius: height * 0.3
Behavior on color {
ColorAnimation {
duration: 200
}
}
}
Behavior on opacity {
NumberAnimation {
duration: 200
}
}
}