FluentUI/src/controls/FluTextBox.qml

23 lines
433 B
QML
Raw Normal View History

2023-02-28 18:29:00 +08:00
import QtQuick 2.15
2023-03-02 12:20:16 +08:00
import QtQuick.Controls 2.15
2023-02-28 18:29:00 +08:00
import FluentUI 1.0
2023-02-26 23:47:07 +08:00
2023-03-02 12:20:16 +08:00
TextField{
id:input
width: 300
color: FluApp.isDark ? "#FFFFFF" : "#1A1A1A"
selectionColor: {
if(FluApp.isDark){
2023-03-06 12:09:06 +08:00
return FluTheme.primaryColor.lighter
2023-03-02 12:20:16 +08:00
}else{
2023-03-06 12:09:06 +08:00
return FluTheme.primaryColor.dark
2023-03-02 12:20:16 +08:00
}
}
selectByMouse: true
background: FluTextBoxBackground{
inputItem: input
}
2023-02-26 23:47:07 +08:00
}
2023-03-02 12:20:16 +08:00