-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
UI: Refine DateTime selector layout and formatting (#407)
### TL;DR Updated the date/time selector UI with improved layout and styling ### What changed? - Removed colons from "Leave" and "Arrive" text labels - Added "Select Date" and "Select Time" headers to their respective sections - Adjusted spacing and padding throughout the date/time selector components - Improved the journey time options layout with consistent spacing - Enhanced the time picker vertical layout and density - Added system bar padding to the main screen - Removed dividers between sections for a cleaner look - Fixed time picker state updates to properly handle reset conditions ### How to test? 1. Open the trip planner 2. Navigate to the date/time selector screen 3. Verify the new headers are visible 4. Check that the spacing between components looks consistent 5. Confirm the time picker is properly sized and usable 6. Test that "Leave Now" resets correctly when modifying time/date values 7. Verify the system bars don't overlap with content ### Why make this change? The updates improve the visual hierarchy and usability of the date/time selector screen by adding clear section headers, consistent spacing, and better component organization. The changes also fix issues with the time picker state management and system bar handling.
- Loading branch information
1 parent
7ead212
commit 8e18ca5
Showing
6 changed files
with
72 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
...ner/ui/src/commonMain/kotlin/xyz/ksharma/krail/trip/planner/ui/components/PlanTripCard.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package xyz.ksharma.krail.trip.planner.ui.components | ||
|
||
import androidx.compose.runtime.Composable | ||
import androidx.compose.ui.Modifier | ||
|
||
@Composable | ||
fun PlanTripCard(modifier: Modifier = Modifier) { | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters