Skip to content

Commit

Permalink
v2.1.0 fixes #13
Browse files Browse the repository at this point in the history
  • Loading branch information
yousefvand committed Jun 19, 2024
1 parent f3e49dd commit ebf0747
Show file tree
Hide file tree
Showing 2 changed files with 69 additions and 77 deletions.
144 changes: 68 additions & 76 deletions org.kde.plasma.persian-calendar/contents/ui/GeneralConfig.qml
Original file line number Diff line number Diff line change
Expand Up @@ -6,89 +6,81 @@ import org.kde.kirigami as Kirigami
import org.kde.plasma.core 2.0 as PlasmaCore
import org.kde.plasma.components 3.0 as PlasmaComponents

Item
{
id: configRoot
Item {
id: configRoot

signal configurationChanged
signal configurationChanged

property alias cfg_widgetWidth: widgetWidth.value
property alias cfg_showTooltip: showTooltip.checked
property alias cfg_updateInterval: updateInterval.value
property alias cfg_mainText: mainText.text
property alias cfg_tooltipText: tooltipText.text
property alias cfg_persianDateLabel: persianDateLabel.height
property alias cfg_widgetWidth: widgetWidthSpinBox.value
property alias cfg_mainText: mainTextField.text
property alias cfg_tooltipText: tooltipTextField.text
property alias cfg_persianDateLabel: persianDateLabel.height
property alias cfg_showTooltip: showTooltipCheckBox.checked
property alias cfg_updateInterval: updateIntervalSpinBox.value

anchors.centerIn: parent
anchors.centerIn: parent

ColumnLayout
{
ColumnLayout {
RowLayout {
Label { text: "Widget width" }
SpinBox {
id: widgetWidthSpinBox
from: 10
to: 10000
editable: true
stepSize: 10
// suffix: ""
}
}

RowLayout
{
id: widgetWidth
Label { text: "Widget width" }
SpinBox
{
id: widgetWidth
from: 10
to: 10000
editable: true
stepSize: 10
// suffix: ""
}
}
RowLayout {
Label { text: "Main" }
TextField {
id: mainTextField
Layout.fillWidth: true
placeholderText: "HTML & CSS are supported"
text: ""
}
}

RowLayout
{
id: showTooltip
CheckBox
{
id: showTooltip
checked: true
text: "Show tooltip"
}
}
RowLayout {
Label { text: "Tooltip" }
TextField {
id: tooltipTextField
Layout.fillWidth: true
placeholderText: "HTML & CSS are supported"
text: ""
}
}

RowLayout
{
id: updateInterval
Label { text: "Update Interval (seconds)" }
SpinBox
{
id: updateInterval
from: 1
to: 86399
editable: true
stepSize: 10
suffix: " s"
}
}
RowLayout {
Label { text: "Persian Date Label Height" }
TextField {
id: persianDateLabel
Layout.fillWidth: true
placeholderText: "Enter height value"
text: ""
}
}

RowLayout
{
id: mainText
Label { text: "Main" }
TextField
{
id: mainText
Layout.fillWidth: true
placeholderText: "HTML & CSS are supported"
text: ""
}
}
RowLayout {
CheckBox {
id: showTooltipCheckBox
checked: true
text: "Show tooltip"
}
}

RowLayout
{
id: tooltipText
Label { text: "Tooltip" }
TextField
{
id: tooltipText
Layout.fillWidth: true
placeholderText: "HTML & CSS are supported"
text: ""
}
RowLayout {
Label { text: "Update Interval (seconds)" }
SpinBox {
id: updateIntervalSpinBox
from: 1
to: 1000 // Reduced range for testing
editable: true
stepSize: 10
// suffix: " s" // Commented out for testing
}
}
}
}
}
}
2 changes: 1 addition & 1 deletion org.kde.plasma.persian-calendar/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"Id": "org.kde.plasma.persian-calendar",
"License": "GPL",
"Name": "Persian Calendar",
"Version": "2.0.2",
"Version": "2.1.0",
"Website": "https://github.com/yousefvand/plasmoid-persian-calendar"
},
"X-Plasma-API-Minimum-Version": "6.0",
Expand Down

0 comments on commit ebf0747

Please sign in to comment.