Compare commits

...

2 commits

Author SHA1 Message Date
106a0b7b78
make buttons distinguishable and translatable 2024-08-08 14:33:41 +02:00
d29aa94f3b
clarify readme 2024-08-08 14:26:54 +02:00
4 changed files with 16 additions and 10 deletions

View file

@ -5,18 +5,15 @@ I'm making this to learn stuff please don't rely on this app
# Requirements
- Android 10 or newer (so 7 year old devices should be good)
- This app is optimized for phones and tablets \
although similar screens like auto or desktop should work \
no support for other form factor devices like wearables or tvs
# Features
- material you supported
- dashboard
home and instances icons are from font awesome
not much yet
### TODOs
- move todos to issues
- readme
- figure out the api
- gb gib mb mib
### Credits
home and instances icons are from font awesome

View file

@ -21,8 +21,10 @@ import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.automirrored.filled.KeyboardArrowRight
import androidx.compose.material3.AlertDialog
import androidx.compose.material3.Button
import androidx.compose.material3.ButtonDefaults
import androidx.compose.material3.Card
import androidx.compose.material3.Icon
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Text
import androidx.compose.material3.TextButton
import androidx.compose.runtime.Composable
@ -227,14 +229,17 @@ fun InstanceDeleteDialog(
TextButton(
onClick = { onConfirm() }
) {
Text("Confirm")
Text(stringResource(id = R.string.confirm))
}
},
dismissButton = {
TextButton(
onClick = { onClose() }
onClick = { onClose() },
colors = ButtonDefaults.textButtonColors().copy(
contentColor = MaterialTheme.colorScheme.error
)
) {
Text("Dismiss")
Text(stringResource(id = R.string.dismiss))
}
},
title = {

View file

@ -33,4 +33,6 @@
<string name="rent_on_website">Jeszcze nie możesz wynajmować z tej aplikacji</string>
<string name="instance_confirm_delete">Potwierdź usunięcie</string>
<string name="instance_confirm_delete_text">Instancja #%1$d (%2$s)</string>
<string name="dismiss">Anuluj</string>
<string name="confirm">Potwierdź</string>
</resources>

View file

@ -34,4 +34,6 @@
<string name="rent_on_website">You can\'t rent from this app yet</string>
<string name="instance_confirm_delete">Confirm deletion</string>
<string name="instance_confirm_delete_text">Instance #%1$d (%2$s)</string>
<string name="dismiss">Dismiss</string>
<string name="confirm">Confirm</string>
</resources>