@@ -8,12 +8,14 @@ import androidx.compose.foundation.layout.Row
88import androidx.compose.foundation.layout.Spacer
99import androidx.compose.foundation.layout.fillMaxSize
1010import androidx.compose.foundation.layout.fillMaxWidth
11+ import androidx.compose.foundation.layout.height
1112import androidx.compose.foundation.layout.width
1213import androidx.compose.foundation.rememberScrollState
1314import androidx.compose.foundation.verticalScroll
1415import androidx.compose.material.icons.Icons
1516import androidx.compose.material.icons.automirrored.outlined.ArrowBack
1617import androidx.compose.material.icons.outlined.Person
18+ import androidx.compose.material.icons.outlined.Star
1719import androidx.compose.material3.Icon
1820import androidx.compose.material3.IconButton
1921import androidx.compose.material3.Text
@@ -105,6 +107,40 @@ fun SettingsScreen(navController: NavController, modifier: Modifier) {
105107 )
106108 }
107109 }
110+
111+ Spacer (modifier = modifier.height(16 .dp))
112+
113+ // Link to source code
114+ Row (
115+ modifier = modifier
116+ .fillMaxWidth(0.9f )
117+ .clickable(
118+ onClick = {
119+ // Open the repo website
120+ val intent = Intent (Intent .ACTION_VIEW , Uri .parse(" https://github.com/tobiasvonderheidt/hips" ))
121+ currentLocalContext.startActivity(intent)
122+ }
123+ )
124+ ) {
125+ Icon (
126+ imageVector = Icons .Outlined .Star ,
127+ contentDescription = " Link to the source code of this app"
128+ )
129+
130+ Spacer (modifier = modifier.width(16 .dp))
131+
132+ Column {
133+ Text (
134+ text = " Source Code" ,
135+ fontSize = 18 .sp,
136+ fontWeight = FontWeight .Bold
137+ )
138+
139+ Text (
140+ text = " github.com/tobiasvonderheidt/hips"
141+ )
142+ }
143+ }
108144 }
109145}
110146
0 commit comments