Skip to content

Commit 2de95a8

Browse files
committed
moved fixed events to lunar based events.
need more test for lunar based events. if accuracy is identical for available festival data or concisely tithi data then lunar based events works, no need to add fixed events every year. still need to refine events for adhik and kshaya lunar months.
1 parent f2f738b commit 2de95a8

File tree

5 files changed

+742
-770
lines changed

5 files changed

+742
-770
lines changed

qml/CalendarGrid.qml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ ColumnLayout {
106106
return str;
107107
}
108108

109-
font.pixelSize: 14
109+
font.pixelSize: 12
110110
color: theme ? theme.secondaryText : "black"
111111
wrapMode: Text.WordWrap
112112
horizontalAlignment: Text.AlignHCenter

qml/EventDisplay.qml

Lines changed: 2 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,7 @@ ColumnLayout {
1414

1515
// Components
1616

17-
// Title for the events section. Only visible if there are events.
18-
Label {
19-
text: "कार्यक्रम हरु"
20-
font.pixelSize: 18
21-
font.bold: true
22-
color: theme ? theme.accentText : "darkblue"
23-
Layout.alignment: Qt.AlignHCenter
24-
Layout.bottomMargin: 5
25-
visible: events.length > 0
26-
}
17+
2718

2819
//Label to display all events, joined by commas.
2920
Label {
@@ -35,29 +26,11 @@ ColumnLayout {
3526
}
3627
return "";
3728
}
38-
font.pixelSize: 16
29+
font.pixelSize: 12
3930
color: theme ? theme.primaryText : "black"
4031
wrapMode: Text.WordWrap
4132
horizontalAlignment: Text.AlignHCenter
4233
Layout.fillWidth: true
4334
visible: events.length > 0
4435
}
45-
46-
// Message to display if no events are found for the selected day.
47-
Label {
48-
text: "कुनै कार्यक्रम भेटिएन"
49-
font.pixelSize: 16
50-
font.italic: true
51-
color: theme ? theme.secondaryText : "grey"
52-
horizontalAlignment: Text.AlignHCenter
53-
Layout.fillWidth: true
54-
visible: events.length === 0
55-
}
56-
57-
// Bottom margin to the event section.
58-
Rectangle {
59-
height: 20
60-
color: "transparent"
61-
Layout.fillWidth: true
62-
}
6336
}

qml/PanchangaDetailDialog.qml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ Dialog {
114114
Flickable {
115115
anchors.fill: parent
116116
contentWidth: Math.min(parent.width * 0.96, 600)
117-
contentHeight: debugInfoText.paintedHeight
117+
contentHeight: parent.height
118118
clip: true
119119

120120
ScrollView {
@@ -126,7 +126,7 @@ Dialog {
126126
text: currentDebugInfo
127127
color: "white"
128128
font.family: "monospace"
129-
font.pointSize: 9
129+
font.pointSize: 8
130130
readOnly: true
131131
wrapMode: TextEdit.NoWrap
132132
textFormat: TextEdit.RichText

0 commit comments

Comments
 (0)