-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrating to Material Components for Android
- Loading branch information
Showing
12 changed files
with
110 additions
and
47 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,21 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<color name="colorPrimary">#2F3D46</color> | ||
<color name="colorPrimaryDark">#191B1B</color> | ||
<color name="colorOnPrimary">#FFFFFF</color> | ||
<color name="colorPrimaryVariant">#191B1B</color> | ||
|
||
<!-- bg color for FAB --> | ||
<color name="colorAccent">#157CAD</color> | ||
<color name="colorSecondary">#DFA031</color> | ||
<color name="colorPrimaryInverse">#1593cd</color> | ||
|
||
<color name="textColorPrimary">#FF1593CD</color> | ||
<!-- default color for FAB or radio button, or link href... --> | ||
<color name="colorSecondary">#1593cd</color> | ||
<color name="colorOnSecondary">#FFFFFF</color> | ||
|
||
<color name="colorSurface">@color/colorPrimary</color> | ||
<color name="colorOnSurface">#FFFFFF</color> | ||
|
||
<color name="secondaryTextColor">#66FFFFFF</color> | ||
<color name="colorSurfaceInverse">@color/m3_sys_color_dark_inverse_surface</color> | ||
<color name="colorOnSurfaceInverse">@color/m3_sys_color_dark_inverse_on_surface</color> | ||
|
||
<color name="textColorPrimary">#FF1593CD</color> | ||
<color name="textColorSecondary">#66FFFFFF</color> | ||
</resources> |
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 |
---|---|---|
@@ -1,14 +1,24 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<color name="colorPrimary">#1593cd</color> | ||
<color name="colorPrimaryDark">#09658f</color> | ||
<color name="colorOnPrimary">#FFFFFF</color> | ||
<color name="colorPrimaryVariant">#09658f</color> | ||
|
||
<!-- bg color for FAB --> | ||
<color name="colorAccent">#138ac1</color> | ||
<color name="colorSecondary">#ffab00</color> | ||
<color name="colorPrimaryInverse">#1593cd</color> | ||
|
||
<!-- default color for FAB or radio button, or link href... --> | ||
<color name="colorSecondary">#1593cd</color> | ||
<color name="colorOnSecondary">#FFFFFF</color> | ||
|
||
<color name="colorSurface">#FFFFFF</color> | ||
<color name="colorOnSurface">#1593cd</color> | ||
|
||
<color name="colorSurfaceInverse">@color/m3_sys_color_light_inverse_surface</color> | ||
<color name="colorOnSurfaceInverse">@color/m3_sys_color_light_inverse_on_surface</color> | ||
|
||
<!--<color name="textColorPrimary">#3F51B5</color>--> | ||
<color name="textColorPrimary">#FF1593CD</color> | ||
<color name="textColorSecondary">#66000000</color> | ||
|
||
<color name="secondaryTextColor">#4D000000</color> | ||
<!-- unused colors --> | ||
<color name="altColorSecondary">#DFA031</color> | ||
</resources> |
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 |
---|---|---|
@@ -1,14 +1,49 @@ | ||
<resources> | ||
|
||
<!-- Base application theme. --> | ||
<style name="AppTheme" parent="@style/Theme.AppCompat.DayNight.DarkActionBar"> | ||
<style name="AppTheme" parent="@style/Theme.MaterialComponents.DayNight.DarkActionBar"> | ||
<!-- Customize your theme here. --> | ||
<item name="colorPrimary">@color/colorPrimary</item> | ||
<item name="colorPrimaryDark">@color/colorPrimaryDark</item> | ||
<item name="colorAccent">@color/colorAccent</item> | ||
<item name="colorOnPrimary">@color/colorOnPrimary</item> | ||
|
||
<item name="colorSecondary">@color/colorSecondary</item> | ||
<item name="colorOnSecondary">@color/colorOnSecondary</item> | ||
|
||
<item name="colorSurface">@color/colorSurface</item> | ||
<!-- <item name="colorOnSurface">?attr/colorOnSurface</item>--> | ||
|
||
<item name="android:navigationBarColor">@color/colorPrimary</item> | ||
<item name="android:statusBarColor">@color/colorPrimaryVariant</item> | ||
|
||
<!-- See layout in file : mtrl_layout_snackbar --> | ||
<item name="snackbarStyle">@style/Custom.Snackbar</item> | ||
<!-- See layout in file : mtrl_layout_snackbar_include --> | ||
<item name="snackbarTextViewStyle">@style/Custom.SnackbarText</item> | ||
<item name="snackbarButtonStyle">@style/Custom.SnackbarButton</item> | ||
</style> | ||
|
||
<!-- See : https://stackoverflow.com/questions/32425191/style-snackbar-in-theme-app#58607153 --> | ||
<style name="Custom.Snackbar" parent="Widget.MaterialComponents.Snackbar"> | ||
<!-- Default attr with M3 : ?attr/colorSurfaceInverse --> | ||
<item name="backgroundTint">@color/colorSurfaceInverse</item> | ||
</style> | ||
|
||
<style name="Custom.SnackbarText" parent="Widget.MaterialComponents.Snackbar.TextView"> | ||
<!-- Default attr with M3 : ?attr/colorOnSurfaceInverse --> | ||
<item name="android:textColor">@color/colorOnSurfaceInverse</item> | ||
</style> | ||
|
||
<style name="Custom.SnackbarButton" parent="Widget.MaterialComponents.Button.TextButton.Snackbar"> | ||
<!-- Default attr with M3 : ?attr/colorPrimaryInverse --> | ||
<item name="android:textColor">@color/colorPrimaryInverse</item> | ||
</style> | ||
|
||
<style name="Custom.ThemeOverlay.MaterialAlertDialog" parent="ThemeOverlay.MaterialComponents.MaterialAlertDialog"> | ||
<item name="buttonBarPositiveButtonStyle">@style/Custom.Widget.Button.Dialog</item> | ||
</style> | ||
|
||
<style name="Custom.Widget.Button.Dialog" parent="Widget.MaterialComponents.Button.TextButton.Dialog"> | ||
<item name="android:textColor">@color/colorPrimaryInverse</item> | ||
</style> | ||
|
||
</resources> |
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