You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gpt4all/gpt4all-chat/qml/MyDirectoryField.qml

18 lines
394 B
QML

import QtCore
import QtQuick
import QtQuick.Controls
import QtQuick.Controls.Basic
import llm
TextField {
id: myDirectoryField
padding: 10
property bool isValid: LLM.directoryExists(text)
color: text === "" || isValid ? theme.textColor : theme.textErrorColor
background: Rectangle {
implicitWidth: 150
color: theme.backgroundDark
radius: 10
}
}