gpt4all/gpt4all-chat/qml/MyButton.qml

25 lines
624 B
QML
Raw Normal View History

2023-05-22 13:01:46 +00:00
import QtCore
import QtQuick
import QtQuick.Controls
import QtQuick.Controls.Basic
Button {
id: myButton
padding: 10
contentItem: Text {
text: myButton.text
horizontalAlignment: Text.AlignHCenter
color: myButton.enabled ? theme.textColor : theme.mutedTextColor
2023-05-22 13:01:46 +00:00
Accessible.role: Accessible.Button
Accessible.name: text
}
background: Rectangle {
opacity: .5
border.color: theme.backgroundLightest
border.width: 1
radius: 10
color: theme.backgroundLight
}
Accessible.role: Accessible.Button
Accessible.name: text
2023-05-22 13:01:46 +00:00
}