Skip to content

Commit 3f530cc

Browse files
committed
update to major version 2 with some refinements
1 parent 8306089 commit 3f530cc

File tree

4 files changed

+20
-8
lines changed

4 files changed

+20
-8
lines changed

qml/DayCell.qml

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ Rectangle {
5555
Label {
5656
text: tithi || ""
5757
font.pixelSize: 11
58-
color: theme && (tithi === "पूर्णिमा" || tithi === "अमावस्या") ? theme.purnimaText : (theme ? theme.secondaryText : "grey")
58+
color: theme && (tithi === "पूर्णिमा" || tithi === "अमावस्या") ? theme.purnimaText : theme ? theme.secondaryText : theme.primaryText
5959
elide: Text.ElideRight
6060
font.bold: tithi === "पूर्णिमा" || tithi === "अमावस्या"
6161
anchors.left: parent.left
@@ -70,14 +70,29 @@ Rectangle {
7070
Label { anchors.centerIn: parent; text: adDay || 0; font.pixelSize: 10; color: theme ? theme.adDayText : "blue" }
7171
}
7272

73-
Text {
73+
Item {
74+
width: 16
75+
height: 16
7476
visible: tithi === "पूर्णिमा" || tithi === "अमावस्या"
75-
text: tithi === "पूर्णिमा" ? "🌕" : "🌑"
76-
font.pixelSize: 14
7777
anchors.right: parent.right
7878
anchors.bottom: parent.bottom
7979
anchors.rightMargin: 4
8080
anchors.bottomMargin: 4
81+
82+
83+
Rectangle {
84+
anchors.fill: parent
85+
radius: width / 2
86+
color: tithi === "पूर्णिमा" ? "gold" : "black"
87+
border.width: 0.5
88+
border.color: {
89+
if (dayCell.theme && dayCell.theme.isDark) {
90+
return "white";
91+
} else {
92+
return "black";
93+
}
94+
}
95+
}
8196
}
8297

8398
MouseArea {

qml/InfoDialog.qml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ Dialog {
1313
height: Math.min(implicitHeight, parent.height * 0.9)
1414

1515
property var theme
16-
property string appVersion: "1.0"
1716

1817
background: Rectangle {
1918
color: theme ? theme.tertiaryBg : "lightgrey"

qml/Theme.qml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ QtObject {
1919
// === Calendar Specific ===
2020
readonly property color saturdayText: isDark ? "#fecaca" : "#F86262"
2121
readonly property color purnimaText: isDark ? "#fde68a" : "#92400e"
22-
readonly property color purnimaIconBg: isDark ? "#78350f" : "#fef3c7"
23-
readonly property color amavasyaIconBg: isDark ? "#1e293b" : "#e2e8f0"
2422

2523
// === Headers ===
2624
readonly property color headerBg: isDark ? "#0f172a" : "#ffffff"

resources/version.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.0
1+
2.0

0 commit comments

Comments
 (0)