From 9b5c8785619c58da7f00364f6cbf8074fe994656 Mon Sep 17 00:00:00 2001 From: Nishant Mishra Date: Thu, 18 Dec 2025 23:06:21 +0530 Subject: [PATCH] refactor(stats): extract strings into resources --- .../nsh07/pomodoro/ui/statsScreen/screens/LastMonthScreen.kt | 4 ++-- app/src/main/res/values/strings.xml | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/org/nsh07/pomodoro/ui/statsScreen/screens/LastMonthScreen.kt b/app/src/main/java/org/nsh07/pomodoro/ui/statsScreen/screens/LastMonthScreen.kt index 7121254..643daa5 100644 --- a/app/src/main/java/org/nsh07/pomodoro/ui/statsScreen/screens/LastMonthScreen.kt +++ b/app/src/main/java/org/nsh07/pomodoro/ui/statsScreen/screens/LastMonthScreen.kt @@ -300,11 +300,11 @@ fun SharedTransitionScope.LastMonthScreen( item { Text( - "Focus history calendar", + stringResource(R.string.focus_history_calendar), style = typography.headlineSmall ) Text( - "Focus history of the past month. Days of the previous month are marked with a different color. Click on a date for more info.", + stringResource(R.string.focus_history_calendar_desc), style = typography.bodySmall, color = colorScheme.onSurfaceVariant ) diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 2467e98..37aa7f9 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -118,4 +118,6 @@ Show chart Focus history heatmap Focus history of the past year. Deeper colors represent a longer duration. Cells are grouped by month. Tap on cells for more info. + Focus history calendar + Focus history of the past month. Days of the previous month are marked with a different color. Click on a date for more info. \ No newline at end of file