Skip to content

Commit 4d5af99

Browse files
eriedclaude
andcommitted
ExternalGpsSection: match Flic section's headline font
Drops the inlined titleMedium Text in favor of the existing SectionHeader helper (headlineMedium, primary colour, search-highlight aware). The helper was file-private to SettingsScreen.kt; relaxed to internal so sibling settings components can reuse it without duplicating the style. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent e0807b9 commit 4d5af99

2 files changed

Lines changed: 2 additions & 6 deletions

File tree

app/src/main/java/com/eried/eucplanet/ui/settings/ExternalGpsSection.kt

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,7 @@ fun ExternalGpsSection(viewModel: ExternalGpsViewModel = hiltViewModel()) {
4949
val sample by viewModel.currentSample.collectAsState()
5050

5151
Column(verticalArrangement = Arrangement.spacedBy(8.dp)) {
52-
Text(
53-
stringResource(R.string.section_external_gps),
54-
style = MaterialTheme.typography.titleMedium,
55-
color = MaterialTheme.colorScheme.primary
56-
)
52+
SectionHeader(stringResource(R.string.section_external_gps))
5753
HintText(stringResource(R.string.external_gps_caption), small = true)
5854

5955
if (pairedAddress == null) {

app/src/main/java/com/eried/eucplanet/ui/settings/SettingsScreen.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1355,7 +1355,7 @@ private fun AnnounceSwitchSetting(
13551355
}
13561356

13571357
@Composable
1358-
private fun SectionHeader(title: String) {
1358+
internal fun SectionHeader(title: String) {
13591359
val query = LocalSettingsSearchQuery.current
13601360
Text(
13611361
text = highlightMatches(title, query),

0 commit comments

Comments
 (0)