Skip to content

Commit

Permalink
UI: Change screen backgrounds from background to surface color (#276)
Browse files Browse the repository at this point in the history
### TL;DR
Updated screen backgrounds to use surface color instead of background color in the Trip Planner UI

### What changed?
Changed the background color property from `KrailTheme.colors.background` to `KrailTheme.colors.surface` in:
- SavedTripsScreen
- SearchStopScreen
- TimeTableScreen

### Why make this change?
Using the surface color provides better visual hierarchy and follows Material Design guidelines more closely, where surface colors are typically used for components that rest on top of the background
  • Loading branch information
ksharma-xyz authored Oct 31, 2024
1 parent ee6e638 commit 82ea0b1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ fun SavedTripsScreen(
Box(
modifier = modifier
.fillMaxSize()
.background(color = KrailTheme.colors.background)
.background(color = KrailTheme.colors.surface)
.statusBarsPadding(),
) {
Column {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ fun SearchStopScreen(
Column(
modifier = modifier
.fillMaxSize()
.background(color = KrailTheme.colors.background)
.background(color = KrailTheme.colors.surface)
.statusBarsPadding()
.imePadding(),
) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ fun TimeTableScreen(
Column(
modifier = modifier
.fillMaxSize()
.background(color = KrailTheme.colors.background),
.background(color = KrailTheme.colors.surface),
) {
TitleBar(
title = {
Expand Down

0 comments on commit 82ea0b1

Please sign in to comment.