Commit 166879f
committed
refactor: rename and expand DiscoveryPlatform UI resources
- Rename `DiscoveryPlatformIconMapper.kt` to `DiscoveryPlatformUiResources.kt` to reflect its broader purpose.
- Add `DiscoveryPlatform.toLabel()` extension function to provide localized and formatted display names for platforms.
- Update `HomeRoot` to use the new `toLabel()` function for platform selection UI.
- Adjust platform selection chip styling in the home screen, including smaller icon sizes and refined padding/spacing.1 parent a664e0a commit 166879f
2 files changed
Lines changed: 30 additions & 7 deletions
File tree
- core/presentation/src/commonMain/kotlin/zed/rainxch/core/presentation/utils
- feature/home/presentation/src/commonMain/kotlin/zed/rainxch/home/presentation
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
Lines changed: 5 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| 73 | + | |
73 | 74 | | |
74 | 75 | | |
75 | 76 | | |
| |||
429 | 430 | | |
430 | 431 | | |
431 | 432 | | |
432 | | - | |
| 433 | + | |
433 | 434 | | |
434 | | - | |
| 435 | + | |
435 | 436 | | |
436 | 437 | | |
437 | 438 | | |
438 | 439 | | |
439 | 440 | | |
440 | | - | |
| 441 | + | |
441 | 442 | | |
442 | 443 | | |
443 | 444 | | |
| |||
501 | 502 | | |
502 | 503 | | |
503 | 504 | | |
504 | | - | |
505 | | - | |
506 | | - | |
507 | | - | |
| 505 | + | |
508 | 506 | | |
509 | 507 | | |
510 | 508 | | |
| |||
0 commit comments