@@ -23,6 +23,7 @@ import androidx.compose.foundation.layout.Column
2323import androidx.compose.foundation.layout.Row
2424import androidx.compose.foundation.layout.Spacer
2525import androidx.compose.foundation.layout.fillMaxWidth
26+ import androidx.compose.foundation.layout.height
2627import androidx.compose.foundation.layout.padding
2728import androidx.compose.foundation.layout.width
2829import androidx.compose.foundation.rememberScrollState
@@ -86,7 +87,7 @@ fun SettingsDialog(
8687 onDismissRequest = { onDismiss() },
8788 title = {
8889 Text (
89- text = stringResource(R . string.settings_title),
90+ text = stringResource(string.settings_title),
9091 style = MaterialTheme .typography.titleLarge
9192 )
9293 },
@@ -96,7 +97,7 @@ fun SettingsDialog(
9697 when (settingsUiState) {
9798 Loading -> {
9899 Text (
99- text = stringResource(R . string.loading),
100+ text = stringResource(string.loading),
100101 modifier = Modifier .padding(vertical = 16 .dp)
101102 )
102103 }
@@ -131,33 +132,33 @@ private fun SettingsPanel(
131132 onChangeThemeBrand : (themeBrand: ThemeBrand ) -> Unit ,
132133 onChangeDarkThemeConfig : (darkThemeConfig: DarkThemeConfig ) -> Unit
133134) {
134- SettingsDialogSectionTitle (text = stringResource(R . string.theme))
135+ SettingsDialogSectionTitle (text = stringResource(string.theme))
135136 Column (Modifier .selectableGroup()) {
136137 SettingsDialogThemeChooserRow (
137- text = stringResource(R . string.brand_default),
138+ text = stringResource(string.brand_default),
138139 selected = settings.brand == DEFAULT ,
139140 onClick = { onChangeThemeBrand(DEFAULT ) }
140141 )
141142 SettingsDialogThemeChooserRow (
142- text = stringResource(R . string.brand_android),
143+ text = stringResource(string.brand_android),
143144 selected = settings.brand == ANDROID ,
144145 onClick = { onChangeThemeBrand(ANDROID ) }
145146 )
146147 }
147148 SettingsDialogSectionTitle (text = " Dark mode preference" )
148149 Column (Modifier .selectableGroup()) {
149150 SettingsDialogThemeChooserRow (
150- text = stringResource(R . string.dark_mode_config_system_default),
151+ text = stringResource(string.dark_mode_config_system_default),
151152 selected = settings.darkThemeConfig == FOLLOW_SYSTEM ,
152153 onClick = { onChangeDarkThemeConfig(FOLLOW_SYSTEM ) }
153154 )
154155 SettingsDialogThemeChooserRow (
155- text = stringResource(R . string.dark_mode_config_light),
156+ text = stringResource(string.dark_mode_config_light),
156157 selected = settings.darkThemeConfig == LIGHT ,
157158 onClick = { onChangeDarkThemeConfig(LIGHT ) }
158159 )
159160 SettingsDialogThemeChooserRow (
160- text = stringResource(R . string.dark_mode_config_dark),
161+ text = stringResource(string.dark_mode_config_dark),
161162 selected = settings.darkThemeConfig == DARK ,
162163 onClick = { onChangeDarkThemeConfig(DARK ) }
163164 )
@@ -210,15 +211,22 @@ private fun LegalPanel() {
210211 ) {
211212 Row {
212213 TextLink (
213- text = stringResource(R . string.privacy_policy),
214+ text = stringResource(string.privacy_policy),
214215 url = PRIVACY_POLICY_URL
215216 )
216217 Spacer (Modifier .width(16 .dp))
217218 TextLink (
218- text = stringResource(R . string.licenses),
219+ text = stringResource(string.licenses),
219220 url = LICENSES_URL
220221 )
221222 }
223+ Spacer (Modifier .height(16 .dp))
224+ Row {
225+ TextLink (
226+ text = stringResource(string.brand_guidelines),
227+ url = BRAND_GUIDELINES_URL
228+ )
229+ }
222230 }
223231 }
224232}
@@ -274,3 +282,4 @@ fun PreviewSettingsDialogLoading() {
274282/* ktlint-disable max-line-length */
275283private const val PRIVACY_POLICY_URL = " https://policies.google.com/privacy"
276284private const val LICENSES_URL = " https://github.com/android/nowinandroid/blob/main/app/LICENSES.md#open-source-licenses-and-copyright-notices"
285+ private const val BRAND_GUIDELINES_URL = " https://developer.android.com/distribute/marketing-tools/brand-guidelines"
0 commit comments