Config gui tweaks

This commit is contained in:
qewer33 2021-12-23 18:26:04 +03:00
parent 5e7db336c8
commit 3010d2fd54
2 changed files with 12 additions and 24 deletions

View file

@ -167,14 +167,12 @@ Item {
QtControls.SpinBox {
id: clockFontSizeSpinBox
textFromValue: function(value, locale) {
return qsTr("%1px").arg(value);
}
from: 10
to: 350
}
QtControls.Label {
text: "px"
}
}
}
@ -242,16 +240,12 @@ Item {
QtControls.SpinBox {
id: dayFontSizeSpinBox
textFromValue: function(value, locale) {
return qsTr("%1px").arg(value);
}
from: 10
to: 350
}
QtControls.Label {
text: "px"
opacity: if (enabled) 1
else 0.4
}
}
}
@ -339,16 +333,12 @@ Item {
QtControls.SpinBox {
id: dateFontSizeSpinBox
textFromValue: function(value, locale) {
return qsTr("%1px").arg(value);
}
from: 10
to: 350
}
QtControls.Label {
text: "px"
opacity: if (enabled) 1
else 0.4
}
}
}
}

View file

@ -47,23 +47,21 @@ QtLayouts.RowLayout {
QtControls.Button {
id: clockBoldCheckBox
// ToolTip.text: i18n("Bold text")
icon.name: "format-text-bold"
checkable: true
// Accessible.name: ToolTip.text
}
QtControls.Button {
id: clockItalicCheckBox
// ToolTip.text: i18n("Italic text")
icon.name: "format-text-italic"
checkable: true
// Accessible.name: ToolTip.text
}
QtControls.SpinBox {
id: clockFontSizeSpinBox
textFromValue: function(value, locale) {
return qsTr("%1px").arg(value);
}
from: 10
to: 350
}