Kaaveh / ComposeNews

A playground about best practices, using updated libraries and solutions in the Android world!
Apache License 2.0
322 stars 53 forks source link

Refactor/dynamic UI enhancements #82

Closed mhmd-android closed 1 year ago

mhmd-android commented 1 year ago

I have made the following enhancements in this pull request:

  1. Added conditional coloring for the Card component based on the system theme. When not using a dark theme, the Card now uses the background color from MaterialTheme, and in dark mode, it utilizes the surfaceVariant color for a consistent and adaptive UI experience.

  2. Implemented dynamic navigation bar appearance adjustment based on the app's theme. In non-dark themes, the navigation bars now have a light appearance, matching the app's background color. This change enhances the user interface's consistency and adaptability.

Dark and Light snap :

App

Please review and merge if these changes meet the project's requirements. Thank you!

Kaaveh commented 1 year ago

@mhmd-android Excellent as always! 😍🌟 Also feel free to look at project table task. There is an old task for swipe to delete item.