mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-10-31 06:17:57 +01:00 
			
		
		
		
	Match ReaderActivity theme with the rest of the app (#5450)
* Match ReaderActivity theme with the rest of the app * Fix viewer inset when fullscreen reader is off * Fix incorrect toolbar color after recreate * Remove animated inset * Move isDarkMode to PreferencesHelper
This commit is contained in:
		| @@ -61,7 +61,6 @@ | ||||
|             android:id="@+id/toolbar" | ||||
|             android:layout_width="match_parent" | ||||
|             android:layout_height="wrap_content" | ||||
|             android:background="?attr/colorToolbar" | ||||
|             android:minHeight="?attr/actionBarSize" /> | ||||
|  | ||||
|         <LinearLayout | ||||
| @@ -147,6 +146,7 @@ | ||||
|             </LinearLayout> | ||||
|  | ||||
|             <androidx.constraintlayout.widget.ConstraintLayout | ||||
|                 android:id="@+id/toolbar_bottom" | ||||
|                 android:layout_width="match_parent" | ||||
|                 android:layout_height="?attr/actionBarSize" | ||||
|                 android:layout_gravity="bottom" | ||||
|   | ||||
| @@ -53,9 +53,6 @@ | ||||
|     <color name="accent_hotpink">#FF3399</color> | ||||
|     <color name="ripple_colored_hotpink">#1FFF3399</color> | ||||
|  | ||||
|     <!-- Reader Theme --> | ||||
|     <color name="reader_toolbar">#242529</color> | ||||
|  | ||||
|     <color name="filterColorLight">#FFC107</color> | ||||
|     <color name="filterColorDark">#FFEB3B</color> | ||||
|     <color name="filterColorAmoled">#FFEB3B</color> | ||||
|   | ||||
| @@ -219,11 +219,6 @@ | ||||
|     </style> | ||||
|  | ||||
|  | ||||
|     <style name="Widget.Tachiyomi.BasicSwitch" parent="Widget.MaterialComponents.CompoundButton.Switch"> | ||||
|         <item name="useMaterialThemeColors">false</item> | ||||
|     </style> | ||||
|  | ||||
|  | ||||
|     <style name="Widget.Tachiyomi.CircularProgressIndicator.Small" parent="Widget.MaterialComponents.CircularProgressIndicator"> | ||||
|         <item name="indicatorSize">16dp</item> | ||||
|         <item name="trackThickness">2dp</item> | ||||
|   | ||||
| @@ -39,6 +39,7 @@ | ||||
|         <item name="android:navigationBarColor">@color/md_black_1000</item> | ||||
|         <item name="android:navigationBarDividerColor" tools:targetApi="o_mr1">@null</item> | ||||
|         <item name="android:enforceNavigationBarContrast" tools:targetApi="Q">false</item> | ||||
|         <item name="android:enforceStatusBarContrast" tools:targetApi="Q">false</item> | ||||
|         <item name="android:itemTextAppearance">@style/TextAppearance.Widget.Menu</item> | ||||
|         <item name="android:backgroundDimAmount">0.32</item> | ||||
|         <item name="windowActionModeOverlay">true</item> | ||||
| @@ -174,6 +175,7 @@ | ||||
|         <item name="android:navigationBarColor">@color/md_black_1000</item> | ||||
|         <item name="android:navigationBarDividerColor" tools:targetApi="o_mr1">@null</item> | ||||
|         <item name="android:enforceNavigationBarContrast" tools:targetApi="Q">false</item> | ||||
|         <item name="android:enforceStatusBarContrast" tools:targetApi="Q">false</item> | ||||
|         <item name="android:itemTextAppearance">@style/TextAppearance.Widget.Menu</item> | ||||
|         <item name="android:backgroundDimAmount">0.32</item> | ||||
|         <item name="windowActionModeOverlay">true</item> | ||||
| @@ -298,6 +300,7 @@ | ||||
|         <item name="android:statusBarColor">?attr/colorSurface</item> | ||||
|         <item name="android:navigationBarDividerColor" tools:targetApi="o_mr1">@null</item> | ||||
|         <item name="android:enforceNavigationBarContrast" tools:targetApi="Q">false</item> | ||||
|         <item name="android:enforceStatusBarContrast" tools:targetApi="Q">false</item> | ||||
|         <item name="android:itemTextAppearance">@style/TextAppearance.Widget.Menu</item> | ||||
|         <item name="android:backgroundDimAmount">0.32</item> | ||||
|         <item name="windowActionModeOverlay">true</item> | ||||
| @@ -349,64 +352,6 @@ | ||||
|         <item name="colorControlHighlight">@color/ripple_colored_hotpink</item> | ||||
|     </style> | ||||
|  | ||||
|     <!--===============--> | ||||
|     <!-- Reader Themes --> | ||||
|     <!--===============--> | ||||
|  | ||||
|     <!--== Light Reader base ==--> | ||||
|     <style name="Theme.Base.Reader.Light" parent="Theme.Base.Light"> | ||||
|         <!-- Theme colors --> | ||||
|         <item name="colorSurface">@color/md_white_1000</item> | ||||
|         <item name="colorToolbar">@color/reader_toolbar</item> | ||||
|         <item name="colorOnToolbar">@color/md_white_1000</item> | ||||
|  | ||||
|         <!-- Base background/text colors --> | ||||
|         <item name="android:colorBackground">@color/md_white_1000</item> | ||||
|         <item name="android:statusBarColor">?attr/colorToolbar</item> | ||||
|         <item name="android:navigationBarColor">?attr/colorToolbar</item> | ||||
|  | ||||
|         <!-- Themes --> | ||||
|         <item name="toolbarStyle">@style/Widget.Tachiyomi.Toolbar.Primary</item> | ||||
|         <item name="switchStyle">@style/Widget.Tachiyomi.BasicSwitch</item> | ||||
|         <item name="bottomSheetDialogTheme">@style/ThemeOverlay.Tachiyomi.BottomSheetDialog</item> | ||||
|         <item name="android:alertDialogTheme">@style/ThemeOverlay.Tachiyomi.MaterialAlertDialog</item> | ||||
|     </style> | ||||
|  | ||||
|     <!--== Light Reader ==--> | ||||
|     <style name="Theme.Reader.Light" parent="Theme.Base.Reader.Light" /> | ||||
|  | ||||
|     <!--== Dark Reader base ==--> | ||||
|     <style name="Theme.Base.Reader.Dark" parent="Theme.Base.Dark"> | ||||
|         <!-- Theme colors --> | ||||
|         <item name="colorSurface">@color/md_black_1000</item> | ||||
|         <item name="colorToolbar">@color/reader_toolbar</item> | ||||
|  | ||||
|         <!-- Base background/text colors --> | ||||
|         <item name="android:colorBackground">@color/md_black_1000</item> | ||||
|         <item name="android:statusBarColor">?attr/colorToolbar</item> | ||||
|         <item name="android:navigationBarColor">?attr/colorToolbar</item> | ||||
|  | ||||
|         <!-- Themes --> | ||||
|         <item name="switchStyle">@style/Widget.Tachiyomi.BasicSwitch</item> | ||||
|         <item name="bottomSheetDialogTheme">@style/ThemeOverlay.Tachiyomi.BottomSheetDialog</item> | ||||
|         <item name="android:alertDialogTheme">@style/ThemeOverlay.Tachiyomi.MaterialAlertDialog</item> | ||||
|     </style> | ||||
|  | ||||
|     <!--== Dark Reader ==--> | ||||
|     <style name="Theme.Reader.Dark" parent="Theme.Base.Reader.Dark" /> | ||||
|  | ||||
|     <!--== Dark Grey Reader ==--> | ||||
|     <style name="Theme.Reader.Dark.Grey" parent="Theme.Base.Reader.Dark"> | ||||
|         <!-- Theme colors --> | ||||
|         <item name="colorSurface">@color/background_dark</item> | ||||
|  | ||||
|         <!-- Base background/text colors --> | ||||
|         <item name="android:colorBackground">@color/background_dark</item> | ||||
|  | ||||
|         <!-- Alert Dialog --> | ||||
|         <item name="android:alertDialogTheme">@style/ThemeOverlay.Tachiyomi.MaterialAlertDialog</item> | ||||
|     </style> | ||||
|  | ||||
|     <!--===============--> | ||||
|     <!-- Launch Screen --> | ||||
|     <!--===============--> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user