Explorar o código

Added source code link

Vadik Sirekanyan %!s(int64=2) %!d(string=hai) anos
pai
achega
4d42d646a6

+ 4 - 0
app/src/fdroid/res/values/strings.xml

@@ -0,0 +1,4 @@
+<resources>
+    <string name="outln_source_code_title">GitLab</string>
+    <string name="outln_source_code_link">"https://gitlab.com/sirekanyan.org/outline"</string>
+</resources>

+ 6 - 0
app/src/main/java/org/sirekanyan/outline/ui/AboutDialog.kt

@@ -55,6 +55,12 @@ fun AboutDialogContent(onDismiss: () -> Unit) {
                     append("getoutline.org")
                     pop()
                 }
+                append("\n\nSource code of this app is open and available on ")
+                withStyle(SpanStyle(MaterialTheme.colorScheme.primary)) {
+                    pushStringAnnotation("link", stringResource(R.string.outln_source_code_link))
+                    append(stringResource(R.string.outln_source_code_title))
+                    pop()
+                }
             }
             val textColor = MaterialTheme.colorScheme.onSurfaceVariant
             val textStyle = MaterialTheme.typography.bodyMedium.copy(textColor)

+ 4 - 0
app/src/play/res/values/strings.xml

@@ -0,0 +1,4 @@
+<resources>
+    <string name="outln_source_code_title">GitHub</string>
+    <string name="outln_source_code_link">"https://github.com/sirekanian/outline"</string>
+</resources>