Skip to content

Commit 914deae

Browse files
committed
add more info to appinfo
1 parent 701c8f1 commit 914deae

2 files changed

Lines changed: 37 additions & 14 deletions

File tree

composeApp/build.gradle.kts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,9 @@ compose.desktop {
127127
mainClass = "neth.iecal.trease.MainKt"
128128

129129
nativeDistributions {
130+
linux {
131+
iconFile.set(project.file("composeApp/resources/drawable/grid.png"))
132+
}
130133
includeAllModules = false
131134
modules("java.instrument", "java.management", "jdk.unsupported")
132135
targetFormats(TargetFormat.Dmg, TargetFormat.Msi, TargetFormat.Deb,TargetFormat.AppImage)

composeApp/src/commonMain/kotlin/neth/iecal/trease/ui/dialogs/AppInfoDialog.kt

Lines changed: 34 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ fun AppInfoDialog(onDismiss: () -> Unit) {
3535
Dialog(onDismissRequest = { onDismiss() }) {
3636
Card(
3737
shape = RoundedCornerShape(24.dp),
38-
colors = CardDefaults.cardColors(containerColor = MaterialTheme.colorScheme.surface) ,
38+
colors = CardDefaults.cardColors(containerColor = MaterialTheme.colorScheme.surface),
3939
modifier = Modifier
4040
.fillMaxWidth()
4141
.padding(16.dp)
@@ -49,7 +49,7 @@ fun AppInfoDialog(onDismiss: () -> Unit) {
4949
horizontalAlignment = Alignment.CenterHorizontally,
5050
verticalArrangement = Arrangement.spacedBy(8.dp),
5151

52-
) {
52+
) {
5353
Column(horizontalAlignment = Alignment.CenterHorizontally) {
5454
Text(
5555
text = "Donate to Trease",
@@ -66,15 +66,16 @@ fun AppInfoDialog(onDismiss: () -> Unit) {
6666
Spacer(Modifier.size(8.dp))
6767

6868

69-
Text("I’m Nethical, the 17-year-old developer behind Digipaws, Questphone, and Trease.\n" +
70-
"\n" +
71-
"I was tired of seeing essential tools locked behind greedy paywalls, so I built these free, open-source alternatives to empower masses.\n" +
72-
"\n" +
73-
"Your support keeps me independent and ensures this software stays free forever.\n" +
74-
"\n" +
75-
"Support via: PayPal • Patreon • Crypto • Card (GitHub Sponsers) • UPI",
69+
Text(
70+
"I’m Nethical, the 17-year-old developer behind Digipaws, Questphone, and Trease.\n" +
71+
"\n" +
72+
"I was tired of seeing essential tools locked behind greedy paywalls, so I built these free, open-source alternatives to empower masses.\n" +
73+
"\n" +
74+
"Your support keeps me independent and ensures this software stays free forever.\n" +
75+
"\n" +
76+
"Support via: PayPal • Patreon • Crypto • Card (GitHub Sponsers) • UPI",
7677
textAlign = TextAlign.Center,
77-
)
78+
)
7879
Button(
7980
onClick = { uriHandler.openUri("https://digipaws.life/donate") },
8081
modifier = Modifier.fillMaxWidth(),
@@ -90,7 +91,7 @@ fun AppInfoDialog(onDismiss: () -> Unit) {
9091
style = MaterialTheme.typography.titleMedium,
9192
textAlign = TextAlign.Center,
9293

93-
)
94+
)
9495
}
9596

9697
Button(
@@ -108,7 +109,7 @@ fun AppInfoDialog(onDismiss: () -> Unit) {
108109
style = MaterialTheme.typography.titleMedium,
109110
textAlign = TextAlign.Center,
110111

111-
)
112+
)
112113
}
113114

114115
Spacer(Modifier.size(8.dp))
@@ -119,7 +120,7 @@ fun AppInfoDialog(onDismiss: () -> Unit) {
119120
style = MaterialTheme.typography.titleMedium,
120121
textAlign = TextAlign.Center,
121122

122-
)
123+
)
123124
OutlinedButton(
124125
onClick = { uriHandler.openUri("https://github.com/Trease-Focus/trease-artwork") },
125126
modifier = Modifier.fillMaxWidth(),
@@ -135,9 +136,28 @@ fun AppInfoDialog(onDismiss: () -> Unit) {
135136
style = MaterialTheme.typography.titleMedium,
136137
textAlign = TextAlign.Center,
137138

139+
)
140+
141+
142+
}
143+
OutlinedButton(
144+
onClick = { uriHandler.openUri("https://github.com/Trease-Focus/trease-app/releases") },
145+
modifier = Modifier.fillMaxWidth(),
146+
shape = RoundedCornerShape(12.dp),
147+
colors = ButtonDefaults.buttonColors(
148+
containerColor = MaterialTheme.colorScheme.primary,
149+
contentColor = MaterialTheme.colorScheme.onPrimary
138150
)
151+
) {
152+
Text(
153+
text = "Download Android and Desktop Variant",
154+
modifier = Modifier.padding(vertical = 6.dp),
155+
style = MaterialTheme.typography.titleMedium,
156+
textAlign = TextAlign.Center,
157+
158+
)
139159
}
140160
}
141161
}
142162
}
143-
}
163+
}

0 commit comments

Comments
 (0)