Skip to content

Commit 360e285

Browse files
author
DBChoco
committed
last changes to 1.3.0
1 parent 733a954 commit 360e285

File tree

5 files changed

+24
-15
lines changed

5 files changed

+24
-15
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,9 @@ On Salawat you can choose to play an Adhan or not, you can import your own audio
9292
- [ ] Aur
9393
- [ ] Fix bugs
9494
- [ ] Fix bug that causes crash after Adhan is played (need more information about the cause)
95-
- [ ] Weather
95+
- [x] Weather
9696
- [ ] Sunnah times
97-
- [ ] DateFormat
97+
- [x] DateFormat
9898
- [x] Make progress bar display audio progress
9999
- [x] Make progress bar squared
100100
- Calculation methods

pom.xml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>io.github.dbchoco</groupId>
88
<artifactId>Salawat</artifactId>
9-
<version>1.0.3</version>
9+
<version>1.3.0</version>
1010
<name>Salawat</name>
1111
<description>Salawat: Adhan app</description>
1212
<organization>
@@ -159,13 +159,17 @@
159159
<icoFile>src/main/resources/io/github/dbchoco/Salawat/images/icon.ico</icoFile>
160160

161161
<!-- exe creation properties -->
162-
<headerType>console</headerType>
162+
<headerType>gui</headerType>
163163
<originalFilename>${name}-${version}.exe</originalFilename>
164164

165165
<!-- setup generation properties -->
166-
<setupMode>installForCurrentUser</setupMode>
166+
<setupMode>askTheUser</setupMode>
167167
<disableRunAfterInstall>false</disableRunAfterInstall>
168168
<createDesktopIconTask>false</createDesktopIconTask>
169+
<disableDirPage>false</disableDirPage>
170+
<disableProgramGroupPage>false</disableProgramGroupPage>
171+
<disableFinishedPage>false</disableFinishedPage>
172+
<disableRunAfterInstall>false</disableRunAfterInstall>
169173

170174
<!-- windows registry entries added during installation -->
171175
<registry>
@@ -174,7 +178,7 @@
174178
<key>HKCU:Software\Microsoft\Windows\CurrentVersion\Run</key>
175179
<valueName>Salawat</valueName>
176180
<valueType>REG_SZ</valueType>
177-
<valueData>%USERPROFILE%\AppData\Local\Programs\Salawat\Salawat.exe</valueData>
181+
<valueData>""{app}\{#MyAppExeName}""</valueData>
178182
</entry>
179183
</entries>
180184
</registry>

src/main/java/io/github/dbchoco/Salawat/Main.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,10 @@ public void start(Stage stage) throws IOException, ClassNotFoundException {
6969
stage.setWidth(UserSettings.windowWidth);
7070
stage.setHeight(UserSettings.windowHeight);
7171
}
72-
else stage.setMaximized(true);
72+
else{
73+
stage.setWidth(1280);
74+
stage.setHeight(720);
75+
}
7376
addStageSizeListener(stage);
7477

7578
playStartupSound();

src/main/java/io/github/dbchoco/Salawat/app/MainTimer.java

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,6 @@ private void checkAdhan(){
6868
int minutes = Main.getPrayerTimesCalculator().timeAfterCurrentPrayer().getMinutes();
6969
int seconds = Main.getPrayerTimesCalculator().timeAfterCurrentPrayer().getSeconds();
7070
if (hours == 00 && minutes <= 10){
71-
if (AudioPlayer.getIsPlaying()){
72-
Controllers.getTimeController().displayTimeLeft("adhan");
73-
}
7471
if (minutes == 0 && seconds <= 10){
7572
if (!launchedAlerts){
7673
if (UserSettings.enableAdhan){
@@ -93,7 +90,12 @@ private void checkAdhan(){
9390
}
9491
}
9592
else {
96-
Controllers.getTimeController().displayTimeLeft("now");
93+
if (AudioPlayer.getIsPlaying()){
94+
Controllers.getTimeController().displayTimeLeft("adhan");
95+
}
96+
else {
97+
Controllers.getTimeController().displayTimeLeft("now");
98+
}
9799
}
98100
}
99101
else {

src/main/resources/language_ar.properties

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ language= \u0627\u0644\u0644\u063A\u0629
3232
timeformat= \u0634\u0643\u0644 \u0627\u0644\u0648\u0642\u062A
3333
24hour= 24 \u0633\u0627\u0639\u0629
3434
12hour= 12 \u0633\u0627\u0639\u0629
35-
dateformat= Date format
36-
ddmmyyyy= DD/MM/YYYY
37-
mmddyyyy= MM/DD/YYYY
38-
yyyymmdd = YYYY/MM/DD
35+
dateformat= \u0635\u064A\u063A\u0629 \u0627\u0644\u062A\u0627\u0631\u064A\u062E
36+
ddmmyyyy= \u064A \u064A/\u0634 \u0634/\u0639 \u0639 \u0639 \u0639
37+
mmddyyyy= \u0634 \u0634/\u064A \u064A/\u0639 \u0639 \u0639 \u0639
38+
yyyymmdd = \u0639 \u0639 \u0639 \u0639/\u0634 \u0634/\u064A \u064A
3939
showSeconds = \u0639\u0631\u0636 \u0627\u0644\u062B\u0648\u0627\u0646\u064A
4040
notifications = \u0625\u0634\u0639\u0627\u0631\u0627\u062A
4141
notifCheck = \u062A\u0634\u063A\u064A\u0644 \u0627\u0644\u0625\u062E\u0637\u0627\u0631\u0627\u062A

0 commit comments

Comments
 (0)