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

31 lines
678 B
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
contentItem: Text {
text: parent.text
color: control.textColor
font.pixelSize: parent.font.pixelSize
}
width: parent.width
background: Rectangle {
opacity: enabled ? 1 : 0.3
color: control.down ? appTheme.style.delegatePressedColor : appTheme.style.delegateBackgroundColor
radius: height * 0.3
Behavior on color {
ColorAnimation {
duration: 200
}
}
}
}