Skip to content

Commit

Permalink
Added source code link
Browse files Browse the repository at this point in the history
  • Loading branch information
sirekanian committed Dec 31, 2023
1 parent 384be52 commit 4d42d64
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/src/fdroid/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -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 changes: 6 additions & 0 deletions app/src/main/java/org/sirekanyan/outline/ui/AboutDialog.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 4 additions & 0 deletions app/src/play/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -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>

0 comments on commit 4d42d64

Please sign in to comment.