mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-11-04 08:08:55 +01:00 
			
		
		
		
	Restrict translucent reader UI to API 26+ (fixes #2580)
This commit is contained in:
		
							
								
								
									
										8
									
								
								app/src/main/res/values-v26/colors.xml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								app/src/main/res/values-v26/colors.xml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,8 @@
 | 
			
		||||
<?xml version="1.0" encoding="utf-8"?>
 | 
			
		||||
<resources>
 | 
			
		||||
 | 
			
		||||
    <!-- Reader Theme -->
 | 
			
		||||
    <color name="readerColorDarkPrimary">#BF212121</color>
 | 
			
		||||
    <color name="readerColorDarkPrimaryDark">#BF1C1C1D</color>
 | 
			
		||||
 | 
			
		||||
</resources>
 | 
			
		||||
@@ -6,8 +6,6 @@
 | 
			
		||||
    <!-- Dark Application Colors -->
 | 
			
		||||
    <color name="colorDarkPrimary">#212121</color>
 | 
			
		||||
    <color name="colorDarkPrimaryDark">#1C1C1D</color>
 | 
			
		||||
    <color name="colorDarkPrimaryTranslucent">#BF212121</color>
 | 
			
		||||
    <color name="colorDarkPrimaryDarkTranslucent">#BF1C1C1D</color>
 | 
			
		||||
    <color name="colorAmoledPrimary">@color/md_black_1000</color>
 | 
			
		||||
 | 
			
		||||
    <color name="splashBackgroundColor">@color/colorPrimary</color>
 | 
			
		||||
@@ -47,6 +45,8 @@
 | 
			
		||||
    <color name="iconColorDark">@color/md_white_1000_54</color>
 | 
			
		||||
 | 
			
		||||
    <!-- Reader Theme -->
 | 
			
		||||
    <color name="readerColorDarkPrimary">@color/colorDarkPrimary</color>
 | 
			
		||||
    <color name="readerColorDarkPrimaryDark">@color/colorDarkPrimaryDark</color>
 | 
			
		||||
    <color name="pageNumberBackgroundLight">@color/md_grey_50_75</color>
 | 
			
		||||
    <color name="pageNumberBackgroundDark">@color/md_grey_900_75</color>
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -131,8 +131,8 @@
 | 
			
		||||
    <!-- Reader Theme -->
 | 
			
		||||
    <!--==============-->
 | 
			
		||||
    <style name="Theme.Base.Reader.Dark" parent="Theme.Base.Dark">
 | 
			
		||||
        <item name="colorPrimary">@color/colorDarkPrimaryTranslucent</item>
 | 
			
		||||
        <item name="colorPrimaryDark">@color/colorDarkPrimaryDarkTranslucent</item>
 | 
			
		||||
        <item name="colorPrimary">@color/readerColorDarkPrimary</item>
 | 
			
		||||
        <item name="colorPrimaryDark">@color/readerColorDarkPrimaryDark</item>
 | 
			
		||||
        <item name="android:colorBackground">@android:color/black</item>
 | 
			
		||||
 | 
			
		||||
        <item name="android:statusBarColor">?colorPrimaryDark</item>
 | 
			
		||||
@@ -140,8 +140,8 @@
 | 
			
		||||
    </style>
 | 
			
		||||
 | 
			
		||||
    <style name="Theme.Base.Reader.Light" parent="Theme.Base">
 | 
			
		||||
        <item name="colorPrimary">@color/colorDarkPrimaryTranslucent</item>
 | 
			
		||||
        <item name="colorPrimaryDark">@color/colorDarkPrimaryDarkTranslucent</item>
 | 
			
		||||
        <item name="colorPrimary">@color/readerColorDarkPrimary</item>
 | 
			
		||||
        <item name="colorPrimaryDark">@color/readerColorDarkPrimaryDark</item>
 | 
			
		||||
        <item name="android:colorBackground">@android:color/white</item>
 | 
			
		||||
 | 
			
		||||
        <item name="android:statusBarColor">?colorPrimaryDark</item>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user