Skip to content

Commit

Permalink
last changes to 1.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
DBChoco committed May 31, 2022
1 parent 733a954 commit 360e285
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 15 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,9 @@ On Salawat you can choose to play an Adhan or not, you can import your own audio
- [ ] Aur
- [ ] Fix bugs
- [ ] Fix bug that causes crash after Adhan is played (need more information about the cause)
- [ ] Weather
- [x] Weather
- [ ] Sunnah times
- [ ] DateFormat
- [x] DateFormat
- [x] Make progress bar display audio progress
- [x] Make progress bar squared
- Calculation methods
Expand Down
12 changes: 8 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>io.github.dbchoco</groupId>
<artifactId>Salawat</artifactId>
<version>1.0.3</version>
<version>1.3.0</version>
<name>Salawat</name>
<description>Salawat: Adhan app</description>
<organization>
Expand Down Expand Up @@ -159,13 +159,17 @@
<icoFile>src/main/resources/io/github/dbchoco/Salawat/images/icon.ico</icoFile>

<!-- exe creation properties -->
<headerType>console</headerType>
<headerType>gui</headerType>
<originalFilename>${name}-${version}.exe</originalFilename>

<!-- setup generation properties -->
<setupMode>installForCurrentUser</setupMode>
<setupMode>askTheUser</setupMode>
<disableRunAfterInstall>false</disableRunAfterInstall>
<createDesktopIconTask>false</createDesktopIconTask>
<disableDirPage>false</disableDirPage>
<disableProgramGroupPage>false</disableProgramGroupPage>
<disableFinishedPage>false</disableFinishedPage>
<disableRunAfterInstall>false</disableRunAfterInstall>

<!-- windows registry entries added during installation -->
<registry>
Expand All @@ -174,7 +178,7 @@
<key>HKCU:Software\Microsoft\Windows\CurrentVersion\Run</key>
<valueName>Salawat</valueName>
<valueType>REG_SZ</valueType>
<valueData>%USERPROFILE%\AppData\Local\Programs\Salawat\Salawat.exe</valueData>
<valueData>""{app}\{#MyAppExeName}""</valueData>
</entry>
</entries>
</registry>
Expand Down
5 changes: 4 additions & 1 deletion src/main/java/io/github/dbchoco/Salawat/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,10 @@ public void start(Stage stage) throws IOException, ClassNotFoundException {
stage.setWidth(UserSettings.windowWidth);
stage.setHeight(UserSettings.windowHeight);
}
else stage.setMaximized(true);
else{
stage.setWidth(1280);
stage.setHeight(720);
}
addStageSizeListener(stage);

playStartupSound();
Expand Down
10 changes: 6 additions & 4 deletions src/main/java/io/github/dbchoco/Salawat/app/MainTimer.java
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,6 @@ private void checkAdhan(){
int minutes = Main.getPrayerTimesCalculator().timeAfterCurrentPrayer().getMinutes();
int seconds = Main.getPrayerTimesCalculator().timeAfterCurrentPrayer().getSeconds();
if (hours == 00 && minutes <= 10){
if (AudioPlayer.getIsPlaying()){
Controllers.getTimeController().displayTimeLeft("adhan");
}
if (minutes == 0 && seconds <= 10){
if (!launchedAlerts){
if (UserSettings.enableAdhan){
Expand All @@ -93,7 +90,12 @@ private void checkAdhan(){
}
}
else {
Controllers.getTimeController().displayTimeLeft("now");
if (AudioPlayer.getIsPlaying()){
Controllers.getTimeController().displayTimeLeft("adhan");
}
else {
Controllers.getTimeController().displayTimeLeft("now");
}
}
}
else {
Expand Down
8 changes: 4 additions & 4 deletions src/main/resources/language_ar.properties
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ language= \u0627\u0644\u0644\u063A\u0629
timeformat= \u0634\u0643\u0644 \u0627\u0644\u0648\u0642\u062A
24hour= 24 \u0633\u0627\u0639\u0629
12hour= 12 \u0633\u0627\u0639\u0629
dateformat= Date format
ddmmyyyy= DD/MM/YYYY
mmddyyyy= MM/DD/YYYY
yyyymmdd = YYYY/MM/DD
dateformat= \u0635\u064A\u063A\u0629 \u0627\u0644\u062A\u0627\u0631\u064A\u062E
ddmmyyyy= \u064A \u064A/\u0634 \u0634/\u0639 \u0639 \u0639 \u0639
mmddyyyy= \u0634 \u0634/\u064A \u064A/\u0639 \u0639 \u0639 \u0639
yyyymmdd = \u0639 \u0639 \u0639 \u0639/\u0634 \u0634/\u064A \u064A
showSeconds = \u0639\u0631\u0636 \u0627\u0644\u062B\u0648\u0627\u0646\u064A
notifications = \u0625\u0634\u0639\u0627\u0631\u0627\u062A
notifCheck = \u062A\u0634\u063A\u064A\u0644 \u0627\u0644\u0625\u062E\u0637\u0627\u0631\u0627\u062A
Expand Down

0 comments on commit 360e285

Please sign in to comment.