diff --git a/.idea/compiler.xml b/.idea/compiler.xml
index fb7f4a8..b73660a 100644
--- a/.idea/compiler.xml
+++ b/.idea/compiler.xml
@@ -1,6 +1,6 @@
-
+
\ No newline at end of file
diff --git a/.idea/misc.xml b/.idea/misc.xml
index fc3302e..7faf647 100644
--- a/.idea/misc.xml
+++ b/.idea/misc.xml
@@ -1,7 +1,7 @@
-
+
diff --git a/build.gradle.kts b/build.gradle.kts
index fec7e16..dee1508 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -8,7 +8,7 @@ plugins {
}
group = "me.nickp0is0n"
-version = "0.1"
+version = "0.0.6"
repositories {
jcenter()
@@ -31,7 +31,13 @@ compose.desktop {
nativeDistributions {
targetFormats(TargetFormat.Dmg, TargetFormat.Msi, TargetFormat.Deb)
packageName = "EasyLocalize"
- packageVersion = "1.0.0"
+ packageVersion = "1.0.6"
+ copyright = "Copyright (c) 2021, Mykola Chaikovskyi"
+ macOS {
+ bundleID = "me.nickp0is0n.easylocalize"
+ dockName = "EasyLocalize"
+ iconFile.set(project.file("easylocalize_logo.icns"))
+ }
}
}
}
diff --git a/easylocalize_logo.icns b/easylocalize_logo.icns
new file mode 100644
index 0000000..70dcec0
Binary files /dev/null and b/easylocalize_logo.icns differ
diff --git a/src/main/kotlin/me/nickp0is0n/easylocalize/main.kt b/src/main/kotlin/me/nickp0is0n/easylocalize/main.kt
index 9ca0bc8..b6a62ef 100644
--- a/src/main/kotlin/me/nickp0is0n/easylocalize/main.kt
+++ b/src/main/kotlin/me/nickp0is0n/easylocalize/main.kt
@@ -4,7 +4,7 @@ import androidx.compose.ui.unit.IntSize
import me.nickp0is0n.easylocalize.ui.MainWindowView
fun main() = Window (
- title = "EasyLocalize 0.0.5 alpha",
+ title = "EasyLocalize 0.0.6 alpha",
resizable = false,
size = IntSize(780, 455)
) {
diff --git a/src/main/kotlin/me/nickp0is0n/easylocalize/ui/MainWindowController.kt b/src/main/kotlin/me/nickp0is0n/easylocalize/ui/MainWindowController.kt
index b9007b7..2badc0a 100644
--- a/src/main/kotlin/me/nickp0is0n/easylocalize/ui/MainWindowController.kt
+++ b/src/main/kotlin/me/nickp0is0n/easylocalize/ui/MainWindowController.kt
@@ -1,14 +1,9 @@
package me.nickp0is0n.easylocalize.ui
import androidx.compose.desktop.AppWindow
-import androidx.compose.desktop.LocalAppWindow
-import androidx.compose.material.AlertDialog
-import androidx.compose.material.Button
-import androidx.compose.material.Text
-import androidx.compose.runtime.Composable
+import androidx.compose.ui.window.Notifier
import me.nickp0is0n.easylocalize.models.LocalizedString
import me.nickp0is0n.easylocalize.utils.LocalizeExporter
-import me.nickp0is0n.easylocalize.utils.LocalizeParser
import java.awt.FileDialog
class MainWindowController {
diff --git a/src/main/kotlin/me/nickp0is0n/easylocalize/ui/MainWindowView.kt b/src/main/kotlin/me/nickp0is0n/easylocalize/ui/MainWindowView.kt
index 24405b2..78ea1b7 100644
--- a/src/main/kotlin/me/nickp0is0n/easylocalize/ui/MainWindowView.kt
+++ b/src/main/kotlin/me/nickp0is0n/easylocalize/ui/MainWindowView.kt
@@ -14,6 +14,7 @@ import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.RectangleShape
import androidx.compose.ui.unit.dp
+import androidx.compose.ui.window.Notifier
import me.nickp0is0n.easylocalize.models.LocalizedString
import me.nickp0is0n.easylocalize.utils.LocalizeParser
import java.awt.FileDialog
@@ -41,6 +42,8 @@ class MainWindowView {
Button (
onClick = {
controller.onExportButtonClick(stringList, window)
+ val notifier = Notifier()
+ notifier.notify("Success", "Localization file has been successfully exported.")
},
colors = ButtonDefaults.buttonColors(backgroundColor = Color(30, 144, 255)),
modifier = Modifier.padding(top = 10.dp)
@@ -145,22 +148,4 @@ class MainWindowView {
val stringFile = openDialog.files[0]
return parser.fromFile(stringFile)
}
-
- @Composable
- private fun showExportSuccessAlert() {
- AlertDialog(
- title = {
- Text("Success")
- },
- text = {
- Text("Translation file successfully exported!")
- },
- onDismissRequest = {},
- confirmButton = {
- Button(onClick = {}) {
- Text("OK")
- }
- }
- )
- }
}