2016-03-12 21:22:40 +08:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<resources>
|
|
|
|
|
|
|
|
<!--========-->
|
|
|
|
<!--Toolbars-->
|
|
|
|
<!--========-->
|
2015-09-24 23:27:43 +08:00
|
|
|
|
2021-06-20 03:45:16 +08:00
|
|
|
<style name="ThemeOverlay.Tachiyomi.ActionBar" parent="ThemeOverlay.MaterialComponents.ActionBar">
|
|
|
|
<item name="android:colorControlHighlight">?attr/rippleColorToolbar</item>
|
2016-05-13 21:45:36 +08:00
|
|
|
</style>
|
|
|
|
|
2021-07-02 20:44:04 +08:00
|
|
|
<style name="ThemeOverlay.Tachiyomi.ActionBar.Colored" parent="ThemeOverlay.MaterialComponents.ActionBar">
|
|
|
|
<item name="android:colorControlHighlight">?attr/colorOnPrimary</item>
|
|
|
|
</style>
|
|
|
|
|
2021-06-20 03:45:16 +08:00
|
|
|
<style name="Widget.Tachiyomi.Toolbar.Button.Navigation" parent="Widget.AppCompat.Toolbar.Button.Navigation">
|
|
|
|
<item name="tint">?attr/colorOnToolbar</item>
|
2021-05-24 02:29:59 +08:00
|
|
|
</style>
|
|
|
|
|
2021-06-20 03:45:16 +08:00
|
|
|
<style name="Widget.Tachiyomi.ActionMode" parent="Widget.AppCompat.ActionMode">
|
|
|
|
<item name="background">?attr/colorToolbar</item>
|
|
|
|
<item name="titleTextStyle">@style/TextAppearance.Tachiyomi.ActionMode.Title</item>
|
2021-05-22 23:55:05 +08:00
|
|
|
</style>
|
|
|
|
|
2021-06-20 03:45:16 +08:00
|
|
|
<style name="Theme.Tachiyomi.ActionMode.CloseButton" parent="Widget.AppCompat.ActionButton.CloseMode">
|
|
|
|
<item name="android:tint">?attr/colorOnToolbar</item>
|
2021-05-24 23:16:32 +08:00
|
|
|
</style>
|
|
|
|
|
2021-06-20 03:45:16 +08:00
|
|
|
<style name="Theme.Tachiyomi.ActionButton.Overflow" parent="Widget.AppCompat.ActionButton.Overflow">
|
|
|
|
<item name="android:tint">?attr/colorOnToolbar</item>
|
2020-03-16 04:52:27 +08:00
|
|
|
</style>
|
|
|
|
|
2021-06-20 03:45:16 +08:00
|
|
|
<style name="Widget.Tachiyomi.Toolbar.Primary" parent="Widget.MaterialComponents.Toolbar.Primary">
|
|
|
|
<item name="android:elevation">0dp</item>
|
2020-08-23 00:36:29 +08:00
|
|
|
</style>
|
|
|
|
|
2020-03-16 04:52:27 +08:00
|
|
|
|
2016-04-10 23:34:10 +08:00
|
|
|
<!--===========-->
|
|
|
|
<!--AlertDialog-->
|
|
|
|
<!--===========-->
|
2021-06-20 03:45:16 +08:00
|
|
|
<style name="ThemeOverlay.Tachiyomi.MaterialAlertDialog" parent="ThemeOverlay.MaterialComponents.MaterialAlertDialog">
|
2020-03-12 07:08:57 +08:00
|
|
|
<item name="android:background">?attr/colorSurface</item>
|
|
|
|
<item name="android:textColorPrimary">?attr/colorOnSurface</item>
|
|
|
|
<item name="android:textColor">?attr/colorOnSurface</item>
|
2021-05-27 06:11:14 +08:00
|
|
|
</style>
|
|
|
|
|
2016-03-12 21:22:40 +08:00
|
|
|
|
2020-11-23 04:49:57 +08:00
|
|
|
<!--===========-->
|
|
|
|
<!--BottomSheet-->
|
|
|
|
<!--===========-->
|
|
|
|
|
2021-06-20 03:45:16 +08:00
|
|
|
<style name="ThemeOverlay.Tachiyomi.BottomSheetDialog" parent="ThemeOverlay.MaterialComponents.BottomSheetDialog">
|
|
|
|
<item name="bottomSheetStyle">@style/Widget.Tachiyomi.BottomSheet.Modal</item>
|
|
|
|
<item name="android:windowAnimationStyle">@style/Animation.Tachiyomi.BottomSheetDialog</item>
|
2021-02-02 11:23:29 +08:00
|
|
|
</style>
|
|
|
|
|
2021-06-20 03:45:16 +08:00
|
|
|
<style name="Widget.Tachiyomi.BottomSheet.Modal" parent="Widget.MaterialComponents.BottomSheet.Modal">
|
|
|
|
<item name="shapeAppearanceOverlay">@style/ShapeAppearanceOverlay.Tachiyomi.BottomSheet</item>
|
2021-02-02 11:23:29 +08:00
|
|
|
</style>
|
|
|
|
|
2021-06-20 03:45:16 +08:00
|
|
|
<style name="ShapeAppearanceOverlay.Tachiyomi.BottomSheet" parent="">
|
2021-02-02 11:23:29 +08:00
|
|
|
<item name="cornerFamily">rounded</item>
|
2021-03-14 06:18:22 +08:00
|
|
|
<item name="cornerSizeTopRight">@dimen/dialog_radius</item>
|
|
|
|
<item name="cornerSizeTopLeft">@dimen/dialog_radius</item>
|
2021-02-02 11:23:29 +08:00
|
|
|
<item name="cornerSizeBottomRight">0dp</item>
|
|
|
|
<item name="cornerSizeBottomLeft">0dp</item>
|
2020-11-23 04:49:57 +08:00
|
|
|
</style>
|
|
|
|
|
2021-06-20 03:45:16 +08:00
|
|
|
<style name="Animation.Tachiyomi.BottomSheetDialog" parent="Animation.AppCompat.Dialog">
|
2021-05-29 10:36:09 +08:00
|
|
|
<item name="android:windowEnterAnimation">@anim/bottom_sheet_slide_in</item>
|
|
|
|
<item name="android:windowExitAnimation">@anim/bottom_sheet_slide_out</item>
|
|
|
|
</style>
|
|
|
|
|
2020-11-23 04:49:57 +08:00
|
|
|
|
2016-03-12 21:22:40 +08:00
|
|
|
<!--===============-->
|
|
|
|
<!--Text Appearance-->
|
|
|
|
<!--===============-->
|
2021-06-20 03:45:16 +08:00
|
|
|
<style name="TextAppearance" parent="android:TextAppearance">
|
2016-03-12 21:22:40 +08:00
|
|
|
<item name="android:textColor">?android:attr/textColorPrimary</item>
|
|
|
|
</style>
|
|
|
|
|
|
|
|
<style name="TextAppearance.Regular">
|
2020-05-11 20:31:32 +08:00
|
|
|
<item name="android:fontFamily">sans-serif</item>
|
2016-03-12 21:22:40 +08:00
|
|
|
</style>
|
|
|
|
|
|
|
|
<style name="TextAppearance.Regular.Body1">
|
|
|
|
<item name="android:textSize">14sp</item>
|
|
|
|
</style>
|
|
|
|
|
|
|
|
<style name="TextAppearance.Regular.Body1.Bold">
|
|
|
|
<item name="android:textStyle">bold</item>
|
|
|
|
</style>
|
|
|
|
|
|
|
|
<style name="TextAppearance.Regular.Body1.Secondary">
|
|
|
|
<item name="android:textColor">?android:attr/textColorSecondary</item>
|
|
|
|
</style>
|
|
|
|
|
|
|
|
<style name="TextAppearance.Regular.Caption">
|
|
|
|
<item name="android:textSize">12sp</item>
|
|
|
|
</style>
|
|
|
|
|
|
|
|
<style name="TextAppearance.Regular.Caption.Hint">
|
2020-04-19 23:13:04 +08:00
|
|
|
<item name="android:textColor">@color/material_on_surface_emphasis_medium</item>
|
2016-01-05 20:54:00 +08:00
|
|
|
</style>
|
|
|
|
|
2016-03-12 21:22:40 +08:00
|
|
|
<style name="TextAppearance.Regular.SubHeading">
|
2020-09-27 07:03:46 +08:00
|
|
|
<item name="android:textSize">14sp</item>
|
2017-09-23 19:11:39 +08:00
|
|
|
</style>
|
|
|
|
|
2016-03-12 21:22:40 +08:00
|
|
|
<style name="TextAppearance.Medium">
|
2020-01-08 07:46:31 +08:00
|
|
|
<item name="android:fontFamily">sans-serif-medium</item>
|
2016-03-12 21:22:40 +08:00
|
|
|
</style>
|
|
|
|
|
|
|
|
<style name="TextAppearance.Medium.Title">
|
2020-09-08 05:18:41 +08:00
|
|
|
<item name="android:textSize">24sp</item>
|
2016-09-22 03:26:08 +08:00
|
|
|
</style>
|
|
|
|
|
2016-03-12 21:22:40 +08:00
|
|
|
<style name="TextAppearance.Medium.Body2">
|
|
|
|
<item name="android:textSize">14sp</item>
|
2015-09-24 23:27:43 +08:00
|
|
|
</style>
|
|
|
|
|
2016-03-12 21:22:40 +08:00
|
|
|
<style name="TextAppearance.Medium.Body2.Hint">
|
|
|
|
<item name="android:textColor">?android:attr/textColorHint</item>
|
|
|
|
</style>
|
|
|
|
|
2020-09-28 01:41:25 +08:00
|
|
|
<style name="TextAppearance.Medium.SubHeading">
|
|
|
|
<item name="android:textAllCaps">true</item>
|
|
|
|
<item name="android:textColor">?android:attr/textColorSecondary</item>
|
|
|
|
<item name="android:textSize">14sp</item>
|
|
|
|
</style>
|
|
|
|
|
2020-03-13 07:14:43 +08:00
|
|
|
<style name="TextAppearance.Widget.Button" parent="TextAppearance.MaterialComponents.Button">
|
2021-06-20 03:45:16 +08:00
|
|
|
<item name="android:letterSpacing">-0.006</item>
|
2020-10-11 04:34:06 +08:00
|
|
|
<item name="android:textAllCaps">false</item>
|
2020-03-13 07:14:43 +08:00
|
|
|
</style>
|
|
|
|
|
|
|
|
<style name="TextAppearance.Widget.Menu" parent="TextAppearance.AppCompat.Menu">
|
|
|
|
<item name="android:textColor">?attr/colorOnBackground</item>
|
|
|
|
</style>
|
|
|
|
|
2020-07-08 05:19:56 +08:00
|
|
|
<style name="TextAppearance.Widget.Tab" parent="TextAppearance.MaterialComponents.Button">
|
|
|
|
<item name="android:textAllCaps">false</item>
|
|
|
|
<item name="android:letterSpacing">0</item>
|
|
|
|
</style>
|
|
|
|
|
2021-06-20 03:45:16 +08:00
|
|
|
<style name="TextAppearance.Tachiyomi.ActionMode.Title" parent="TextAppearance.MaterialComponents.Headline6">
|
|
|
|
<item name="android:textColor">?attr/colorOnToolbar</item>
|
|
|
|
</style>
|
|
|
|
|
2020-07-08 05:19:56 +08:00
|
|
|
|
2016-03-12 21:22:40 +08:00
|
|
|
<!--=======-->
|
|
|
|
<!--Widgets-->
|
|
|
|
<!--=======-->
|
|
|
|
|
2021-06-20 03:45:16 +08:00
|
|
|
<style name="Widget.Tachiyomi.GridView" parent="android:Widget">
|
2017-09-23 19:11:39 +08:00
|
|
|
<item name="android:smoothScrollbar">true</item>
|
|
|
|
<item name="android:numColumns">auto_fit</item>
|
|
|
|
<item name="android:stretchMode">columnWidth</item>
|
|
|
|
<item name="android:scrollbarStyle">outsideOverlay</item>
|
|
|
|
</style>
|
|
|
|
|
2021-06-20 03:45:16 +08:00
|
|
|
<style name="Widget.Tachiyomi.GridView.Source">
|
2015-11-25 01:45:53 +08:00
|
|
|
<item name="android:gravity">top|left</item>
|
|
|
|
<item name="android:smoothScrollbar">true</item>
|
2016-03-12 21:22:40 +08:00
|
|
|
<item name="android:cacheColorHint">?android:attr/textColorHint</item>
|
2015-11-25 01:45:53 +08:00
|
|
|
<item name="android:fastScrollEnabled">true</item>
|
|
|
|
<item name="android:horizontalSpacing">0dp</item>
|
|
|
|
<item name="android:verticalSpacing">0dp</item>
|
2015-09-24 23:27:43 +08:00
|
|
|
</style>
|
|
|
|
|
2015-12-09 02:39:57 +08:00
|
|
|
|
2021-06-20 03:45:16 +08:00
|
|
|
<style name="Widget.Tachiyomi.SpinnerItem" parent="Widget.AppCompat.DropDownItem.Spinner">
|
2020-03-12 07:08:57 +08:00
|
|
|
<item name="android:textColor">?attr/colorOnSurface</item>
|
|
|
|
<item name="android:background">@drawable/list_item_selector</item>
|
2016-05-25 06:09:24 +08:00
|
|
|
</style>
|
|
|
|
|
2020-03-13 08:12:48 +08:00
|
|
|
|
2021-06-20 03:45:16 +08:00
|
|
|
<style name="Widget.Tachiyomi.Snackbar" parent="Widget.MaterialComponents.Snackbar">
|
2021-02-13 23:44:35 +08:00
|
|
|
<item name="android:background">@drawable/snackbar_background</item>
|
2020-04-06 01:55:42 +08:00
|
|
|
<item name="actionTextColorAlpha">1</item>
|
2020-03-13 08:12:48 +08:00
|
|
|
</style>
|
2021-06-20 03:45:16 +08:00
|
|
|
<style name="Widget.Tachiyomi.Snackbar.TextView" parent="Widget.MaterialComponents.Snackbar.TextView">
|
2020-06-14 03:34:55 +08:00
|
|
|
<item name="android:textColor">?attr/colorOnSurface</item>
|
|
|
|
</style>
|
2020-03-13 08:12:48 +08:00
|
|
|
|
2020-03-16 00:58:48 +08:00
|
|
|
|
2021-06-20 03:45:16 +08:00
|
|
|
<style name="Widget.Tachiyomi.Chip.Action" parent="Widget.MaterialComponents.Chip.Action">
|
2020-03-30 01:58:30 +08:00
|
|
|
<item name="chipStrokeWidth">1dp</item>
|
2021-06-20 03:45:16 +08:00
|
|
|
<item name="chipStrokeColor">?attr/colorPrimary</item>
|
2021-07-12 03:45:53 +08:00
|
|
|
<item name="chipBackgroundColor">?attr/chipBackgroundColor</item>
|
|
|
|
<item name="android:textColor">?attr/chipTextColor</item>
|
2021-06-20 03:45:16 +08:00
|
|
|
<item name="rippleColor">?attr/colorControlHighlight</item>
|
2020-03-30 01:58:30 +08:00
|
|
|
|
2021-05-22 23:55:05 +08:00
|
|
|
<!-- Custom chip states -->
|
|
|
|
<item name="android:clickable">true</item>
|
|
|
|
<item name="android:focusable">true</item>
|
|
|
|
|
2020-03-30 01:58:30 +08:00
|
|
|
<!-- Smaller text/height -->
|
|
|
|
<item name="chipCornerRadius">12dp</item>
|
|
|
|
<item name="chipMinHeight">24dp</item>
|
|
|
|
<item name="android:textAppearance">@style/TextAppearance.Regular.Caption</item>
|
|
|
|
|
|
|
|
<!-- Collapse horizontal margin -->
|
|
|
|
<item name="chipMinTouchTargetSize">30dp</item>
|
|
|
|
</style>
|
|
|
|
|
|
|
|
|
2021-06-20 03:45:16 +08:00
|
|
|
<style name="Widget.Tachiyomi.CircularProgressIndicator.Small" parent="Widget.MaterialComponents.CircularProgressIndicator">
|
2020-12-27 00:24:10 +08:00
|
|
|
<item name="indicatorSize">16dp</item>
|
|
|
|
<item name="trackThickness">2dp</item>
|
|
|
|
</style>
|
|
|
|
|
2020-03-16 00:58:48 +08:00
|
|
|
|
2017-09-29 14:34:13 +08:00
|
|
|
<!--==============-->
|
|
|
|
<!--Widgets.Button-->
|
|
|
|
<!--==============-->
|
2021-06-20 03:45:16 +08:00
|
|
|
<style name="Widget.Tachiyomi.Button.ActionButton" parent="Widget.MaterialComponents.Button.TextButton.Icon">
|
2020-10-04 00:41:33 +08:00
|
|
|
<item name="iconGravity">top</item>
|
|
|
|
<item name="iconTint">@color/button_action_selector</item>
|
|
|
|
<item name="iconPadding">4dp</item>
|
|
|
|
<item name="android:textColor">@color/button_action_selector</item>
|
2021-06-20 03:45:16 +08:00
|
|
|
<item name="android:textSize">12sp</item>
|
2020-04-19 07:05:19 +08:00
|
|
|
</style>
|
|
|
|
|
2021-06-20 03:45:16 +08:00
|
|
|
<style name="Widget.Tachiyomi.Button.InlineButton" parent="Widget.MaterialComponents.Button.TextButton">
|
2020-09-23 10:20:29 +08:00
|
|
|
<item name="android:minHeight">0dp</item>
|
|
|
|
<item name="android:minWidth">0dp</item>
|
|
|
|
<item name="android:paddingTop">0dp</item>
|
|
|
|
<item name="android:paddingBottom">0dp</item>
|
|
|
|
<item name="android:insetTop">0dp</item>
|
|
|
|
<item name="android:insetBottom">0dp</item>
|
|
|
|
|
|
|
|
<item name="android:background">?android:attr/colorBackground</item>
|
|
|
|
<item name="backgroundTint">@null</item>
|
|
|
|
<item name="rippleColor">@null</item>
|
|
|
|
</style>
|
|
|
|
|
2020-04-19 07:05:19 +08:00
|
|
|
|
|
|
|
<!--=================-->
|
|
|
|
<!--Widgets.TabLayout-->
|
|
|
|
<!--=================-->
|
2021-06-20 03:45:16 +08:00
|
|
|
<style name="Widget.Tachiyomi.TabLayout" parent="Widget.MaterialComponents.TabLayout">
|
2020-04-19 07:05:19 +08:00
|
|
|
<item name="tabGravity">center</item>
|
|
|
|
<item name="tabIndicator">@drawable/tab_indicator</item>
|
|
|
|
<item name="tabIndicatorFullWidth">false</item>
|
|
|
|
<item name="tabIndicatorHeight">3dp</item>
|
|
|
|
<item name="tabInlineLabel">true</item>
|
|
|
|
<item name="tabMinWidth">75dp</item>
|
|
|
|
<item name="tabMode">scrollable</item>
|
2021-06-20 03:45:16 +08:00
|
|
|
<item name="tabRippleColor">@color/ripple_toolbar_fainter</item>
|
|
|
|
</style>
|
|
|
|
|
|
|
|
<style name="Widget.Tachiyomi.TabLayout.Colored" parent="Widget.MaterialComponents.TabLayout.Colored">
|
|
|
|
<item name="tabGravity">center</item>
|
|
|
|
<item name="tabIndicator">@drawable/tab_indicator</item>
|
|
|
|
<item name="tabIndicatorFullWidth">false</item>
|
|
|
|
<item name="tabIndicatorHeight">3dp</item>
|
|
|
|
<item name="tabInlineLabel">true</item>
|
|
|
|
<item name="tabMinWidth">75dp</item>
|
|
|
|
<item name="tabMode">scrollable</item>
|
2021-07-02 20:44:04 +08:00
|
|
|
<item name="tabRippleColor">?attr/colorOnPrimary</item>
|
|
|
|
</style>
|
|
|
|
|
|
|
|
|
|
|
|
<!--================-->
|
|
|
|
<!--Navigation Views-->
|
|
|
|
<!--================-->
|
|
|
|
<style name="Widget.Tachiyomi.BottomNavigationView" parent="Widget.MaterialComponents.BottomNavigationView">
|
|
|
|
<item name="itemRippleColor">@color/ripple_toolbar_fainter</item>
|
|
|
|
<item name="labelVisibilityMode">labeled</item>
|
|
|
|
</style>
|
|
|
|
|
|
|
|
<style name="Widget.Tachiyomi.BottomNavigationView.Colored" parent="Widget.MaterialComponents.BottomNavigationView.Colored">
|
|
|
|
<item name="labelVisibilityMode">labeled</item>
|
|
|
|
</style>
|
|
|
|
|
|
|
|
<style name="Widget.Tachiyomi.NavigationRailView" parent="Widget.MaterialComponents.NavigationRailView">
|
|
|
|
<item name="itemRippleColor">@color/ripple_toolbar_fainter</item>
|
|
|
|
<item name="labelVisibilityMode">labeled</item>
|
|
|
|
</style>
|
|
|
|
|
|
|
|
<style name="Widget.Tachiyomi.NavigationRailView.Colored" parent="Widget.MaterialComponents.NavigationRailView.Colored">
|
|
|
|
<item name="labelVisibilityMode">labeled</item>
|
2020-04-04 10:41:37 +08:00
|
|
|
</style>
|
|
|
|
|
2020-03-13 08:12:48 +08:00
|
|
|
|
2020-05-08 10:40:23 +08:00
|
|
|
<!--============-->
|
|
|
|
<!--FastScroller-->
|
|
|
|
<!--============-->
|
|
|
|
<style name="FloatingTextView" parent="TextAppearance.AppCompat">
|
|
|
|
<item name="android:layout_height">wrap_content</item>
|
|
|
|
<item name="android:layout_width">wrap_content</item>
|
|
|
|
<item name="android:background">@drawable/material_bubble_drawable</item>
|
|
|
|
<item name="android:elevation">5dp</item>
|
|
|
|
<item name="android:paddingStart">12dp</item>
|
|
|
|
<item name="android:paddingEnd">12dp</item>
|
|
|
|
<item name="android:paddingTop">8dp</item>
|
|
|
|
<item name="android:paddingBottom">8dp</item>
|
|
|
|
<item name="android:textColor">?attr/colorOnPrimary</item>
|
|
|
|
<item name="android:textSize">15sp</item>
|
|
|
|
</style>
|
|
|
|
|
2021-06-28 23:33:26 +08:00
|
|
|
<!--================-->
|
|
|
|
<!--Shape Appearance-->
|
|
|
|
<!--================-->
|
|
|
|
<style name="ShapeAppearanceOverlay.MaterialCardView.Tracker" parent="">
|
|
|
|
<item name="cornerFamily">rounded</item>
|
|
|
|
<item name="cornerSize">8dp</item>
|
|
|
|
</style>
|
|
|
|
|
|
|
|
<style name="ThemeOverlay.Tachiyomi.Dialog.Fullscreen" parent="ThemeOverlay.MaterialComponents">
|
|
|
|
<item name="android:windowIsFloating">false</item>
|
|
|
|
<item name="android:windowBackground">?android:attr/colorBackground</item>
|
|
|
|
<item name="android:windowAnimationStyle">@style/Animation.Tachiyomi.Dialog</item>
|
|
|
|
</style>
|
|
|
|
|
|
|
|
<style name="Animation.Tachiyomi.Dialog" parent="Animation.AppCompat.Dialog">
|
|
|
|
<item name="android:windowEnterAnimation">@anim/fade_in_short</item>
|
|
|
|
<item name="android:windowExitAnimation">@anim/fade_out_short</item>
|
|
|
|
</style>
|
|
|
|
|
2015-09-24 23:27:43 +08:00
|
|
|
</resources>
|