mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-05 01:35:10 +01:00
Theme fixes
And one more inset fix for catalogue
This commit is contained in:
parent
1d7d40ba8c
commit
fee8ccab86
@ -22,6 +22,7 @@ import eu.kanade.tachiyomi.ui.catalogue.browse.BrowseCatalogueController
|
||||
import eu.kanade.tachiyomi.ui.catalogue.global_search.CatalogueSearchController
|
||||
import eu.kanade.tachiyomi.ui.catalogue.latest.LatestUpdatesController
|
||||
import eu.kanade.tachiyomi.ui.setting.SettingsSourcesController
|
||||
import eu.kanade.tachiyomi.util.RecyclerWindowInsetsListener
|
||||
import eu.kanade.tachiyomi.widget.preference.SourceLoginDialog
|
||||
import kotlinx.android.synthetic.main.catalogue_main_controller.*
|
||||
import uy.kohesive.injekt.Injekt
|
||||
@ -101,6 +102,7 @@ class CatalogueController : NucleusController<CataloguePresenter>(),
|
||||
recycler.layoutManager = LinearLayoutManager(view.context)
|
||||
recycler.adapter = adapter
|
||||
recycler.addItemDecoration(SourceDividerItemDecoration(view.context))
|
||||
recycler.setOnApplyWindowInsetsListener(RecyclerWindowInsetsListener)
|
||||
|
||||
requestPermissionsSafe(arrayOf(WRITE_EXTERNAL_STORAGE), 301)
|
||||
}
|
||||
|
@ -218,9 +218,7 @@ open class BrowseCatalogueController(bundle: Bundle) :
|
||||
recycler.adapter = adapter
|
||||
|
||||
catalogue_view.addView(recycler, 1)
|
||||
recycler.doOnApplyWindowInsets { v, insets, padding ->
|
||||
v.updatePaddingRelative(bottom = padding.bottom + insets.systemWindowInsetBottom)
|
||||
}
|
||||
recycler.setOnApplyWindowInsetsListener(RecyclerWindowInsetsListener)
|
||||
if (oldPosition != RecyclerView.NO_POSITION) {
|
||||
recycler.layoutManager?.scrollToPosition(oldPosition)
|
||||
}
|
||||
|
@ -12,7 +12,7 @@
|
||||
</item>
|
||||
|
||||
<item>
|
||||
<color android:color="@color/dialogDark"/>
|
||||
<color android:color="@color/colorDarkPrimary"/>
|
||||
</item>
|
||||
</selector>
|
||||
</item>
|
||||
|
@ -5,6 +5,6 @@
|
||||
<item android:drawable="@color/rippleColorDark" android:state_focused="true"/>
|
||||
<item android:drawable="@color/rippleColorDark" android:state_pressed="true"/>
|
||||
<item android:drawable="@color/rippleColorDark" android:state_activated="true"/>
|
||||
<item android:drawable="@color/dialogDark"/>
|
||||
<item android:drawable="@color/colorDarkPrimary"/>
|
||||
|
||||
</selector>
|
@ -9,6 +9,7 @@
|
||||
android:id="@+id/recycler"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:clipToPadding="false"
|
||||
tools:listitem="@layout/catalogue_main_controller_card" />
|
||||
|
||||
</FrameLayout>
|
@ -3,4 +3,5 @@
|
||||
<color name="drawerHighlight">@color/md_white_1000_12</color>
|
||||
<color name="drawerPrimary">@color/colorAccentDark</color>
|
||||
<color name="oldNavBarBackground">#B3000000</color>
|
||||
<color name="cardBackground">@color/colorDarkPrimary</color>
|
||||
</resources>
|
@ -29,7 +29,7 @@
|
||||
<item name="selectable_list_drawable">@drawable/list_item_selector_dark</item>
|
||||
<item name="selectable_library_drawable">@drawable/library_item_selector_dark</item>
|
||||
<item name="text_color_primary">@color/textColorPrimaryDark</item>
|
||||
<item name="background_card">@color/dialogDark</item>
|
||||
<item name="background_card">@color/cardBackground</item>
|
||||
<item name="icon_color">@color/iconColorDark</item>
|
||||
</style>
|
||||
|
||||
|
@ -5,6 +5,7 @@
|
||||
<color name="colorPrimaryDark">#54759E</color>
|
||||
<color name="drawerHighlight">@color/md_black_1000_12</color>
|
||||
<color name="drawerPrimary">@color/colorPrimary</color>
|
||||
<color name="cardBackground">#FFFFFF</color>
|
||||
<!-- Dark Application Colors -->
|
||||
<color name="colorDarkPrimary">#212121</color>
|
||||
<color name="colorDarkPrimaryDark">#212121</color>
|
||||
@ -39,8 +40,8 @@
|
||||
|
||||
<color name="statusBarDark">@color/md_black_1000</color>
|
||||
<color name="appBarDark">@color/md_grey_900</color>
|
||||
<color name="backgroundDark">@color/colorDarkPrimaryDark</color>
|
||||
<color name="dialogDark">@color/colorDarkPrimary</color>
|
||||
<color name="backgroundDark">#1C1C1D</color>
|
||||
<color name="dialogDark">@color/md_grey_800</color>
|
||||
<color name="dialog_amoled">@color/colorDarkPrimaryDark</color>
|
||||
|
||||
<color name="selectorColorDark">@color/md_blue_A200_50</color>
|
||||
|
@ -36,7 +36,7 @@
|
||||
<item name="selectable_list_drawable">@drawable/list_item_selector_light</item>
|
||||
<item name="selectable_library_drawable">@drawable/library_item_selector_light</item>
|
||||
<item name="text_color_primary">@color/textColorPrimaryLight</item>
|
||||
<item name="background_card">@color/dialogLight</item>
|
||||
<item name="background_card">@color/cardBackground</item>
|
||||
<item name="icon_color">@color/iconColorLight</item>
|
||||
|
||||
<item name="android:statusBarColor">@android:color/transparent</item>
|
||||
|
Loading…
Reference in New Issue
Block a user