-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Material 3 Rededign and Material You Theming
- Loading branch information
1 parent
2ab8354
commit e35951e
Showing
14 changed files
with
131 additions
and
97 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
11 changes: 11 additions & 0 deletions
11
app/src/main/java/ru/karasevm/privatednstoggle/PrivateDNSApp.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,11 @@ | ||
package ru.karasevm.privatednstoggle | ||
|
||
import android.app.Application | ||
import com.google.android.material.color.DynamicColors | ||
|
||
class PrivateDNSApp : Application() { | ||
override fun onCreate() { | ||
super.onCreate() | ||
DynamicColors.applyToActivitiesIfAvailable(this) | ||
} | ||
} |
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,16 +1,12 @@ | ||
<resources> | ||
<!-- Base application theme. --> | ||
<style name="Theme.MyApplication" parent="Theme.MaterialComponents.DayNight.DarkActionBar"> | ||
<!-- Primary brand color. --> | ||
<item name="colorPrimary">@color/purple_200</item> | ||
<item name="colorPrimaryVariant">@color/purple_700</item> | ||
<item name="colorOnPrimary">@color/black</item> | ||
<!-- Secondary brand color. --> | ||
<item name="colorSecondary">@color/teal_200</item> | ||
<item name="colorSecondaryVariant">@color/teal_200</item> | ||
<item name="colorOnSecondary">@color/black</item> | ||
<!-- Status bar color. --> | ||
<item name="android:statusBarColor">?attr/colorPrimaryVariant</item> | ||
<!-- Customize your theme here. --> | ||
<style name="Theme.MyApplication" parent="Theme.Material3.Dark.NoActionBar"> | ||
<item name="colorPrimary">@color/md_theme_dark_primary</item> | ||
<item name="colorSecondary">@color/md_theme_dark_secondary</item> | ||
<item name="colorTertiary">@color/md_theme_dark_tertiary</item> | ||
<item name="android:colorBackground">@color/md_theme_dark_background</item> | ||
|
||
<item name="android:statusBarColor">@android:color/transparent</item> | ||
<item name="android:windowLightStatusBar">false</item> | ||
<item name="android:navigationBarColor">@android:color/transparent</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,15 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
|
||
<resources> | ||
<color name="purple_200">#FFBB86FC</color> | ||
<color name="purple_500">#FF6200EE</color> | ||
<color name="purple_700">#FF3700B3</color> | ||
<color name="teal_200">#FF03DAC5</color> | ||
<color name="teal_700">#FF018786</color> | ||
<color name="black">#FF000000</color> | ||
<color name="white">#FFFFFFFF</color> | ||
</resources> | ||
<color name="ic_launcher_background">#498EE8</color> | ||
|
||
<color name="seed">#6750A4</color> | ||
<color name="md_theme_light_primary">#6750A4</color> | ||
<color name="md_theme_light_secondary">#625B71</color> | ||
<color name="md_theme_light_tertiary">#7D5260</color> | ||
<color name="md_theme_light_background">#FFFBFE</color> | ||
|
||
<color name="md_theme_dark_primary">#D0BCFF</color> | ||
<color name="md_theme_dark_secondary">#CCC2DC</color> | ||
<color name="md_theme_dark_tertiary">#EFB8C8</color> | ||
<color name="md_theme_dark_background">#1C1B1F</color> | ||
</resources> |
This file was deleted.
Oops, something went wrong.
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,16 +1,13 @@ | ||
<resources> | ||
<!-- Base application theme. --> | ||
<style name="Theme.MyApplication" parent="Theme.MaterialComponents.DayNight.DarkActionBar"> | ||
<!-- Primary brand color. --> | ||
<item name="colorPrimary">@color/purple_500</item> | ||
<item name="colorPrimaryVariant">@color/purple_700</item> | ||
<item name="colorOnPrimary">@color/white</item> | ||
<!-- Secondary brand color. --> | ||
<item name="colorSecondary">@color/teal_200</item> | ||
<item name="colorSecondaryVariant">@color/teal_700</item> | ||
<item name="colorOnSecondary">@color/black</item> | ||
<!-- Status bar color. --> | ||
<item name="android:statusBarColor">?attr/colorPrimaryVariant</item> | ||
<!-- Customize your theme here. --> | ||
<style name="Theme.MyApplication" parent="Theme.Material3.Light.NoActionBar"> | ||
<item name="colorPrimary">@color/md_theme_light_primary</item> | ||
<item name="colorSecondary">@color/md_theme_light_secondary</item> | ||
<item name="colorTertiary">@color/md_theme_light_tertiary</item> | ||
|
||
<item name="android:colorBackground">@color/md_theme_light_background</item> | ||
|
||
<item name="android:statusBarColor">@android:color/transparent</item> | ||
<item name="android:windowLightStatusBar">true</item> | ||
<item name="android:navigationBarColor">@android:color/transparent</item> | ||
</style> | ||
</resources> |