You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
886 B
33 lines
886 B
import QtQuick
|
|
import QtQuick.Controls.Material
|
|
import QtQuick.Layouts
|
|
import QtQuick.Controls.Material.impl
|
|
|
|
import Eden.Constants
|
|
import Eden.Config
|
|
|
|
BaseField {
|
|
contentItem: ComboBox {
|
|
id: control
|
|
enabled: enable
|
|
|
|
Layout.fillWidth: true
|
|
Layout.rightMargin: 10
|
|
|
|
font.pixelSize: 14
|
|
model: setting.combo
|
|
currentIndex: value
|
|
|
|
background: MaterialTextContainer {
|
|
implicitWidth: 120
|
|
implicitHeight: 40
|
|
|
|
outlineColor: (enabled
|
|
&& control.hovered) ? control.Material.primaryTextColor : control.Material.hintTextColor
|
|
focusedOutlineColor: control.Material.accentColor
|
|
controlHasActiveFocus: control.activeFocus
|
|
controlHasText: true
|
|
horizontalPadding: control.Material.textFieldHorizontalPadding
|
|
}
|
|
}
|
|
}
|