import QtQuick 2.4 import QtQuick.Controls 2.12 as QtControls import QtQuick.Layouts 1.15 as QtLayouts import QtQuick.Dialogs 1.2 import "." QtLayouts.RowLayout { property var fontModel property color colorValue property string fontValue property bool boldValue property bool italicValue property int pxSizeValue QtControls.Label { text: i18n("Font style:") opacity: if (enabled) 1 else 0.4 } ColorButton { id: fontColorButton value: colorValue onValueChanged: { colorValue = value } } QtControls.ComboBox { id: fontFamilyComboBox QtLayouts.Layout.fillWidth: true QtLayouts.Layout.minimumWidth: units.gridUnit * 10 model: fontModel textRole: "text" currentIndex: fontValue onCurrentIndexChanged: { var current = model.get(currentIndex) if (current) { fontValue = current.value // appearancePage.configurationChanged() } } } QtControls.Button { id: boldCheckBox icon.name: "format-text-bold" checkable: true checked: boldValue onStateChanged: { boldValue = checked } } QtControls.Button { id: italicCheckBox icon.name: "format-text-italic" checkable: true checked: italicValue onStateChanged: { italicvalue = checked } } QtControls.SpinBox { id: fontSizeSpinBox from: 10 to: 350 value: pxSizeValue onValueChanged: { pxSizeValue = value } } QtControls.Label { text: i18n("px") opacity: if (enabled) 1 else 0.4 } }