Simple Mercies 1.2: X length warning and Daily Notepad
This commit is contained in:
@@ -157,7 +157,9 @@ fun PrayerCard(st: AppState, p: Prayer) {
|
||||
}
|
||||
Spacer(Modifier.height(12.dp))
|
||||
Row(Modifier.fillMaxWidth(), horizontalArrangement = Arrangement.spacedBy(6.dp)) {
|
||||
SqButton("Send", icon = Icons.Filled.Send, filled = true) { ShareKit.shareText(ctx, prayerMessage(p), "A prayer for you") }
|
||||
SqButton("Send", icon = Icons.Filled.Send, filled = true) {
|
||||
st.sendText(prayerMessage(p), "A prayer for you", Card(if (p.forWho.isBlank()) "A prayer for you" else "A prayer for ${p.forWho}", p.text, "Simple Mercies"))
|
||||
}
|
||||
SqButton("Picture", icon = Icons.Filled.Image) {
|
||||
st.open(Over.ShareCard(Card(if (p.forWho.isBlank()) "A prayer for you" else "A prayer for ${p.forWho}", p.text, "Simple Mercies"), ""))
|
||||
}
|
||||
@@ -188,7 +190,8 @@ fun PrayerEditor(st: AppState, id: Long?) {
|
||||
Spacer(Modifier.weight(1f))
|
||||
SqButton("Save & send", icon = Icons.Filled.Send, enabled = text.isNotBlank()) {
|
||||
st.store.savePrayer(id, who, text); st.back()
|
||||
ShareKit.shareText(ctx, prayerMessage(Prayer(0, who, text, 0, false, null, "")), "A prayer for you")
|
||||
st.sendText(prayerMessage(Prayer(0, who, text, 0, false, null, "")), "A prayer for you",
|
||||
Card(if (who.isBlank()) "A prayer for you" else "A prayer for ${who.trim()}", text.trim(), "Simple Mercies"))
|
||||
}
|
||||
SqButton("Save", icon = Icons.Filled.Check, filled = true, enabled = text.isNotBlank()) { st.store.savePrayer(id, who, text); st.back() }
|
||||
}
|
||||
@@ -255,6 +258,10 @@ fun SettingsScreen(st: AppState) {
|
||||
Label("The jar")
|
||||
ToggleRow("Shake to pull a mercy", p.shake, "Turn off if it goes off in your pocket") { p.shake = it }
|
||||
|
||||
Label("Sending to X (Twitter)")
|
||||
ToggleRow("I have a blue checkmark on X", p.xBlue,
|
||||
"Without one, X stops a post at ${XLimit.MAX} characters. Leave this off and Simple Mercies will warn you before sending something longer.") { p.xBlue = it }
|
||||
|
||||
Label("Your words")
|
||||
Small("Everything you write stays on this phone. Make a copy now and then so it's never lost.")
|
||||
Row(Modifier.padding(top = 8.dp), horizontalArrangement = Arrangement.spacedBy(8.dp)) {
|
||||
@@ -288,9 +295,9 @@ fun AboutScreen(st: AppState) {
|
||||
Heading("Simple Mercies", size = 34)
|
||||
Text("Notice the good. Do some good.", color = l.faint, fontFamily = Fonts.fell, fontStyle = FontStyle.Italic, fontSize = 18.sp)
|
||||
Sprig(Modifier.padding(vertical = 14.dp))
|
||||
Text("A gratitude jar, a daily kindness, and a place to write prayers and send them to the people you're praying for.\n\n" +
|
||||
Text("A gratitude jar, a daily kindness, a place to write prayers and send them to the people you're praying for, and a daily notepad for thoughts, to-dos and dreams.\n\n" +
|
||||
"No account. No ads. No tracking. No internet permission. Everything stays on your phone.\n\n" +
|
||||
"Fonts: IM Fell English and EB Garamond (SIL Open Font License). The linen and pressed-flower artwork was made for this app.\n\nVersion 1.1",
|
||||
"Fonts: IM Fell English and EB Garamond (SIL Open Font License). The linen and pressed-flower artwork was made for this app.\n\nVersion 1.2",
|
||||
color = l.ink, fontFamily = Fonts.body, fontSize = 18.sp, lineHeight = 26.sp, textAlign = TextAlign.Center)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user