diff --git a/src/settingsview/components/SettingSpinBox.qml b/src/settingsview/components/SettingSpinBox.qml index 71c0d21c8750123d857773195b028f16d8eeb8f8..588cbc6ac7678b30d7bb5133f828cfa79dd9ed44 100644 --- a/src/settingsview/components/SettingSpinBox.qml +++ b/src/settingsview/components/SettingSpinBox.qml @@ -61,6 +61,7 @@ RowLayout { verticalAlignment: Text.AlignVCenter } + // TODO: use TextField SpinBox { id: spinBox @@ -68,19 +69,24 @@ RowLayout { Layout.preferredHeight: JamiTheme.preferredFieldHeight Layout.alignment: Qt.AlignCenter + font.family: "Monospace" font.pointSize: JamiTheme.buttonFontSize font.kerning: true from: root.bottomValue to: root.topValue - stepSize: root.step - up.indicator.width: (width < 200) ? (width / 5) : 40 - down.indicator.width: (width < 200) ? (width / 5) : 40 + editable: true + up.indicator.width: 0 + down.indicator.width: 0 + + textFromValue: function(value, locale) { + return Number(value) + } onValueModified: { root.valueField = value newValue() } } -} \ No newline at end of file +}