diff options
| author | Paul Buetow <paul@buetow.org> | 2026-04-15 22:08:57 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-04-15 22:08:57 +0300 |
| commit | 96869b8b01d33859f8070d5b3d42fb3a8e2b956d (patch) | |
| tree | 163110a08a0a66a1532f93bd2f9e80a642e464e4 /src/c | |
| parent | 36f485fa88e23c98a34fc8d7b293e8c20fbc7e1d (diff) | |
feat: blue background during countdown, green only on goal hit
Timer window now uses three distinct background states:
- Idle (no fast running): mint green
- Countdown (fast running, goal not reached): vivid cerulean blue with white text
- Goal hit: Islamic green with white text
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'src/c')
| -rw-r--r-- | src/c/fastforge.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/c/fastforge.c b/src/c/fastforge.c index 30e08a9..ebed4f6 100644 --- a/src/c/fastforge.c +++ b/src/c/fastforge.c @@ -244,12 +244,17 @@ static GColor theme_goal_text_color(void) { } static GColor theme_timer_background_color(bool goal_reached) { - return goal_reached ? theme_goal_background_color() - : theme_surface_background_color(); + if (goal_reached) return theme_goal_background_color(); + /* Blue background while countdown is active; mint green when idle (no fast). */ + if (fast_is_running()) return is_color_platform() ? GColorVividCerulean : GColorWhite; + return theme_surface_background_color(); } static GColor theme_timer_text_color(bool goal_reached) { - return goal_reached ? theme_goal_text_color() : GColorBlack; + if (goal_reached) return theme_goal_text_color(); + /* White text on blue countdown background for readability. */ + if (fast_is_running()) return is_color_platform() ? GColorWhite : GColorBlack; + return GColorBlack; } static GColor theme_progress_track_color(void) { |
