mirror of
https://github.com/developersu/ClearClock.git
synced 2025-05-15 03:30:26 +03:00
Config gui tweaks
This commit is contained in:
parent
5e7db336c8
commit
3010d2fd54
2 changed files with 12 additions and 24 deletions
|
@ -167,14 +167,12 @@ Item {
|
||||||
|
|
||||||
QtControls.SpinBox {
|
QtControls.SpinBox {
|
||||||
id: clockFontSizeSpinBox
|
id: clockFontSizeSpinBox
|
||||||
|
textFromValue: function(value, locale) {
|
||||||
|
return qsTr("%1px").arg(value);
|
||||||
|
}
|
||||||
from: 10
|
from: 10
|
||||||
to: 350
|
to: 350
|
||||||
}
|
}
|
||||||
|
|
||||||
QtControls.Label {
|
|
||||||
text: "px"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -242,16 +240,12 @@ Item {
|
||||||
|
|
||||||
QtControls.SpinBox {
|
QtControls.SpinBox {
|
||||||
id: dayFontSizeSpinBox
|
id: dayFontSizeSpinBox
|
||||||
|
textFromValue: function(value, locale) {
|
||||||
|
return qsTr("%1px").arg(value);
|
||||||
|
}
|
||||||
from: 10
|
from: 10
|
||||||
to: 350
|
to: 350
|
||||||
}
|
}
|
||||||
|
|
||||||
QtControls.Label {
|
|
||||||
text: "px"
|
|
||||||
opacity: if (enabled) 1
|
|
||||||
else 0.4
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -339,16 +333,12 @@ Item {
|
||||||
|
|
||||||
QtControls.SpinBox {
|
QtControls.SpinBox {
|
||||||
id: dateFontSizeSpinBox
|
id: dateFontSizeSpinBox
|
||||||
|
textFromValue: function(value, locale) {
|
||||||
|
return qsTr("%1px").arg(value);
|
||||||
|
}
|
||||||
from: 10
|
from: 10
|
||||||
to: 350
|
to: 350
|
||||||
}
|
}
|
||||||
|
|
||||||
QtControls.Label {
|
|
||||||
text: "px"
|
|
||||||
opacity: if (enabled) 1
|
|
||||||
else 0.4
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -47,23 +47,21 @@ QtLayouts.RowLayout {
|
||||||
|
|
||||||
QtControls.Button {
|
QtControls.Button {
|
||||||
id: clockBoldCheckBox
|
id: clockBoldCheckBox
|
||||||
// ToolTip.text: i18n("Bold text")
|
|
||||||
icon.name: "format-text-bold"
|
icon.name: "format-text-bold"
|
||||||
checkable: true
|
checkable: true
|
||||||
// Accessible.name: ToolTip.text
|
|
||||||
}
|
}
|
||||||
|
|
||||||
QtControls.Button {
|
QtControls.Button {
|
||||||
id: clockItalicCheckBox
|
id: clockItalicCheckBox
|
||||||
// ToolTip.text: i18n("Italic text")
|
|
||||||
icon.name: "format-text-italic"
|
icon.name: "format-text-italic"
|
||||||
checkable: true
|
checkable: true
|
||||||
// Accessible.name: ToolTip.text
|
|
||||||
}
|
}
|
||||||
|
|
||||||
QtControls.SpinBox {
|
QtControls.SpinBox {
|
||||||
id: clockFontSizeSpinBox
|
id: clockFontSizeSpinBox
|
||||||
|
textFromValue: function(value, locale) {
|
||||||
|
return qsTr("%1px").arg(value);
|
||||||
|
}
|
||||||
from: 10
|
from: 10
|
||||||
to: 350
|
to: 350
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue