theme rework preparation
This commit is contained in:
		
							
								
								
									
										7
									
								
								app/src/main/res/values/attrs.xml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								app/src/main/res/values/attrs.xml
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,7 @@
 | 
			
		||||
<?xml version="1.0" encoding="utf-8"?>
 | 
			
		||||
<resources>
 | 
			
		||||
    <attr format="color" name="themePrimary"/>
 | 
			
		||||
    <attr format="color" name="themeSecondary"/>
 | 
			
		||||
    <attr format="color" name="textPrimary"/>
 | 
			
		||||
    <attr format="color" name="textSecondary"/>
 | 
			
		||||
</resources>
 | 
			
		||||
@ -1,8 +1,21 @@
 | 
			
		||||
<?xml version="1.0" encoding="utf-8"?>
 | 
			
		||||
<resources>
 | 
			
		||||
    <!-- base theme colors -->
 | 
			
		||||
    <color name="colorPrimary">#6200EE</color>
 | 
			
		||||
    <color name="colorPrimaryDark">#3700B3</color>
 | 
			
		||||
    <color name="colorAccent">#03DAC5</color>
 | 
			
		||||
 | 
			
		||||
    <!-- light theme colors -->
 | 
			
		||||
    <color name="themePrimaryLight">#f5f5f5</color>
 | 
			
		||||
    <color name="themeSecondaryLight">#ffffff</color>
 | 
			
		||||
    <color name="textPrimaryLight">#000000</color>
 | 
			
		||||
    <color name="textSecondaryLight">#323232</color>
 | 
			
		||||
 | 
			
		||||
    <!-- dark theme colors -->
 | 
			
		||||
    <color name="themePrimaryDark">#000000</color>
 | 
			
		||||
    <color name="themeSecondaryDark">#303030</color>
 | 
			
		||||
    <color name="textPrimaryDark">#ffffff</color>
 | 
			
		||||
    <color name="textSecondaryDark">#c0c0c0</color>
 | 
			
		||||
 | 
			
		||||
    <color name="ic_launcher_background">#FFFFFF</color>
 | 
			
		||||
</resources>
 | 
			
		||||
@ -1,12 +1,32 @@
 | 
			
		||||
<resources>
 | 
			
		||||
    <!-- Base application theme. -->
 | 
			
		||||
    <!-- application themes -->
 | 
			
		||||
    <style name="AppTheme" parent="Theme.MaterialComponents.Light.NoActionBar">
 | 
			
		||||
        <!-- Customize your theme here. -->
 | 
			
		||||
        <item name="colorPrimary">@color/colorPrimary</item>
 | 
			
		||||
        <item name="colorPrimaryDark">@color/colorPrimaryDark</item>
 | 
			
		||||
        <item name="colorAccent">@color/colorAccent</item>
 | 
			
		||||
    </style>
 | 
			
		||||
 | 
			
		||||
    <style name="AppThemeLight" parent="AppTheme">
 | 
			
		||||
        <item name="themePrimary">@color/themePrimaryLight</item>
 | 
			
		||||
        <item name="themeSecondary">@color/themeSecondaryLight</item>
 | 
			
		||||
        <item name="textPrimary">@color/textPrimaryLight</item>
 | 
			
		||||
        <item name="textSecondary">@color/textSecondaryLight</item>
 | 
			
		||||
        <item name="android:textColor">@color/textSecondaryLight</item>
 | 
			
		||||
        <item name="android:textColorPrimary">@color/textPrimaryLight</item>
 | 
			
		||||
        <item name="android:textColorHint">@color/textSecondaryLight</item>
 | 
			
		||||
    </style>
 | 
			
		||||
 | 
			
		||||
    <style name="AppThemeDark" parent="AppTheme">
 | 
			
		||||
        <item name="themePrimary">@color/themePrimaryDark</item>
 | 
			
		||||
        <item name="themeSecondary">@color/themeSecondaryDark</item>
 | 
			
		||||
        <item name="textPrimary">@color/textPrimaryDark</item>
 | 
			
		||||
        <item name="textSecondary">@color/textSecondaryDark</item>
 | 
			
		||||
        <item name="android:textColor">@color/textPrimaryDark</item>
 | 
			
		||||
        <item name="android:textColorPrimary">@color/textPrimaryDark</item>
 | 
			
		||||
        <item name="android:textColorHint">@color/textSecondaryDark</item>
 | 
			
		||||
    </style>
 | 
			
		||||
 | 
			
		||||
    <!-- player theme -->
 | 
			
		||||
    <style name="PlayerTheme" parent="Theme.MaterialComponents.Light.NoActionBar">
 | 
			
		||||
        <item name="android:windowNoTitle">true</item>
 | 
			
		||||
        <item name="android:windowActionBar">false</item>
 | 
			
		||||
@ -16,6 +36,7 @@
 | 
			
		||||
        <item name="android:windowTranslucentNavigation">true</item>
 | 
			
		||||
    </style>
 | 
			
		||||
 | 
			
		||||
    <!-- splash theme -->
 | 
			
		||||
    <style name="SplashTheme" parent="Theme.AppCompat.NoActionBar">
 | 
			
		||||
        <item name="android:windowBackground">@drawable/bg_splash</item>
 | 
			
		||||
    </style>
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user