Commit Graph

50 Commits

Author SHA1 Message Date
arkon 5afff31f72 Formatting 2022-04-08 16:44:23 -04:00
arkon f0eb42e72d Update linter 2022-04-08 15:30:39 -04:00
Ivan Iskandar ddb856edc7 Add cover error drawable (#6782) 2022-03-15 22:21:30 -04:00
Ivan Iskandar 869424cd16 Change cover placeholder (#6756) 2022-03-09 17:26:55 -05:00
Ivan Iskandar 10eef282fa Coil 2.x upgrade (#6725)
* Migrate to Coil 2

* Adapt to use coil disk cache

* Update to alpha 7

* Update to alpha 8

* Update to rc01
2022-03-04 16:04:32 -05:00
arkon 790d7b9170 Rename extension function to avoid confusion with androidx function 2022-02-12 11:23:10 -05:00
Gauthier d8719ceee9 Navigate to pan / landscape zoom (#6481)
* pan if the image is zoomed instead of navigating away
quickly display full landscape image before zooming to fit height in fit to screen

* add Tap to pan preference, defaults to true
add landscape zoom preference, defaults to false

* hide landscape image zoom option if scale is not fit screen

* fix landscape image zoom for first image and loading image

* properly reload pagerholders when landscape zoom option is changed

* enable landscape zoom by default
2022-02-12 11:21:54 -05:00
Andreas 560be9f553 Remove clutter in main (#6437) 2022-01-06 22:54:51 -05:00
Ivan Iskandar 6b52fc1e2d Use elevated overlay on reader menu (#6347) 2021-12-16 22:57:31 -05:00
Ivan Iskandar 458a0e608a Apply elevation overlay to colored navbar (#6308) 2021-12-04 09:57:02 -05:00
Ivan Iskandar 845e061382 Reinstate elevation overlay (#6243)
* Theme default elevation overlay

* Fix app bar elevation overlay

Elevation overlay is disabled when tabs are visible

* Remove custom elevation overlay in tracking sheet item

* upsi
2021-11-18 10:47:24 -05:00
Hunter Nickel 2c76bc99fc Add ability to copy a genre/tag to clipboard by long-pressing it's chip (#6084)
* Allow copying a genre by long-pressing it's chip

* Make chip click listeners nullable, and only attach if not-null
2021-10-13 09:23:59 -04:00
arkon 0ec7121b8f Adjust snackbar durations (closes #5932) 2021-09-18 16:17:07 -04:00
Taco 12a9d0575d Use more Compat utilities (#5786)
* Use ActivityCompat.recreate

* Use more KTX extensions

* Use PackageInfoCompat.getLongVersionCode

* Remove unnecessary compat usages
2021-08-27 16:33:12 -04:00
Hunter Nickel df683375b1 Apply system animation scale to parts of Tachiyomi that don't respect it by default (#5794)
* Add initial code for scaling animations, apply scale to reader nav overlay

* Rename extension function, apply system animator scale to ActionToolbar

* Apply system animator scale to expanding manga cover animation

* Apply system animator scale to image crossfade (also disables animated covers when browsing)

* Add documentation, make MotionScene Transition comment a bit more clear

* Disable animated covers in MangaInfoHeaderAdapter if animator duration scale is 0

* Disable animated covers in Library if animator duration scale is 0

* Convert loadAny listener to extension function
2021-08-27 08:44:09 -04:00
Ivan Iskandar da16110e1c Edge-to-edge manga details view (#5613)
* Prepare for edge-to-edge MangaController

* Fix derpy liftToScroll with our own implementation

* Edge-to-edge MangaController

Except when legacy blue theme is used.

* Save app bar lift state for controller backstack

* Fix expanded cover position after the view recycled

* Handle overlap changes when incognito mode disabled

* Tablet fixes

* Revert "Handle overlap changes when incognito mode disabled"

This reverts commit 1f492449

Breaks on rotation changes.

* Fix MangaController's swipe refresh position

* All controllers are now doing lift app bar on scroll by default

They are already doing that before so this pretty much just a cleanups.

* TachiyomiCoordinatorLayout: Support ViewPager for app bar lift state check

I'm willing to revert this if this minute detail solution is deemed too hacky xD

* Fix app bar not lifted when scrolled without fling

* Save app bar lift state across configuration changes

* Fix MangaController's swipe refresh position after configuration change

* TachiyomiCoordinatorLayout: Update ViewPager reference when controller is changed
2021-08-19 09:12:52 -04:00
Ivan Iskandar 05e7b0dc22 Fix splash screen icon on Android 12 (#5565)
* Use Core Splashscreen for splashscreen stuff

* Keep splash screen until activity ready

Ready as in the data inside starting screen is finished showing

* Use custom splash screen exit animation on older android version

* Add splash screen minimum duration to prevent exit jank

* Fix broken AMOLED theme

* Improvements
2021-07-17 12:06:15 -04:00
Ivan Iskandar 0eadc028b6 Merge light and dark themes (#5470)
* Merge AMOLED and regular dark themes

This allows all variants of dark themes to use black backgrounds as a
separate preference.

* Merge light and dark themes

* Fix ReaderSeekBar color on Dark Blue theme

* Color fixes

* Fix Dark Blue bars ripple

* Simplify night mode check
2021-07-02 08:44:04 -04:00
Ivan Iskandar cb71d44024 Tracking sheet and search adjustments (#5427)
* Tracking sheet and search visual adjustments

* Remove track item divider

* Add start margin to "add tracking" button

* Fix track search dialog crash when no item chosen

* Show "remove" action only when track item is previously set

* Remove placeholder for total chapters

* Cleanups

* Add track search error/empty result message

* Make track search dialog fullscreen

* Use AutofitRecyclerView for track search dialog

* Fix text input overlapping

* Run track search from IME action instead

* Remove deprecated method

* Reformat

* Set track search error message on the placeholder

* Use payload to notify track search item change

* Fix track search action icon tint color
2021-06-28 11:33:26 -04:00
Ivan Iskandar 64c95305b9 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
2021-06-25 23:28:19 -04:00
Ivan Iskandar fb8aafb69f Enable secure screen when incognito mode is enabled (#5339)
* Enable secure screen when incognito mode is enabled

* Fix incognito banner not showing up after configuration changes
2021-06-07 22:41:12 -04:00
Ivan Iskandar 9f744bc445 More bottom sheet improvements (#5183)
* Edge-to-edge bottom sheet when possible

* ReaderSettingsSheet: Animate background dim changes

* Adjust modal bottom sheet in-out animation

* Use public method to get bottom sheet behavior

* Set bottom sheet peek size to 50% screen height

The current auto peek height gives too low value on landscape orientation

* Set bottom sheet navigation bar scrim when needed
2021-05-28 22:36:09 -04:00
arkon 8af8c57bb4 Add link to official subreddit 2021-05-25 18:33:56 -04:00
arkon 5f9574541f Use popup menus for reader shortcuts instead of toggling through 2021-04-24 19:17:52 -04:00
arkon b40af7c3c6 Minor cleanup 2021-04-17 19:05:35 -04:00
arkon e048d66f74 Revert edge to edge
This was a bigger headache than it was worth. To note, phone landscape wasn't considered, so the navbar overlaps the content on the side. Additionally, the ability to programatically control the navbar scrim is missing, so it'd have to manually be added.
2020-11-29 11:08:06 -05:00
arkon 1d7c692e89 Create extension function for applying system insets 2020-11-22 22:30:25 -05:00
arkon 122b2b1a8e Draw under navbar in Android 9+ 2020-11-15 13:30:49 -05:00
lmj0011 64050e8266 [feature] add ability to set global filter/sort/display for Manga chapters (#3622)
* - [feature] add ability to set global filter/sort/display for Manga chapters

* - move default chapter settings functionality to overflow menu
- code clean up

* - show confirmation dialog when user selects "Set as Default" option in Chapter Settings

* - hide overflow menu in LibrarySettingsSheet

* - apply default chapter settings if manga is added to Library from a Source's browsing screen

Co-authored-by: arkon <arkon@users.noreply.github.com>
2020-09-14 15:58:34 -04:00
arkon 9bb2334b69 Replace VectorDrawableCompat.create() with AppCompatResources.getDrawable()
Fixes crash when loading pin icon in Android 5/6.
2020-07-29 18:36:28 -04:00
arkon d2b14bcfc4 Inline extension functions 2020-07-25 12:12:44 -04:00
arkon 9e51d82154 Replace custom visibility extension functions 2020-07-25 12:00:27 -04:00
arkon 479eb1ba71 Attach some FABs and snackbars to root CoordinatorLayout
Fixes some issues around snackbars sometimes being out of view.
2020-07-10 11:15:57 -04:00
arkon 361b0284fa Add tooltips to manga info header action icons 2020-06-19 17:40:17 -04:00
arkon 526e029ebb Update some themes 2020-06-13 15:34:55 -04:00
arkon 3899938b25 Reading mode snackbar 2020-06-07 11:14:19 -04:00
arkon d243ee4b4c Remove TextDrawable 2020-04-26 11:59:15 -04:00
arkon 3f63b320c4 Linting fixes 2020-04-25 14:24:45 -04:00
arkon fba3ed2244 Show scrollable single line of genres when compacted 2020-04-24 16:05:43 -04:00
arkon 2b27b40142 Fix round text icons (closes #2934) 2020-04-22 22:30:40 -04:00
TacoTheDank 34f7e4d448 Replace TextDrawable with a Kotlin fork (#2929)
* Replace old TextDrawable with Kotlin fork

* Update androidx preferences library
2020-04-22 21:23:44 -04:00
arkon df69559b39 Collapsable manga summary/genre section 2020-04-18 12:40:47 -04:00
arkon aa70be525d Add text to chapter FAB, shrink extended FABs on scroll 2020-04-10 15:39:28 -04:00
Jay f115fe47fe Using extension icon instead of letter for catalogues (closes #2261) 2020-04-01 23:03:20 -04:00
arkon fb897e37d1 Add download queue features from J2K fork 2020-03-15 22:42:40 -04:00
arkon 446c254bc8 Use immersive sticky flag when hiding reader UI (closes #2705) 2020-03-15 11:56:55 -04:00
arkon e4dc84a5d8 Minor lint fixes 2020-03-07 17:01:53 -05:00
onlymash 5fb3b0e0e3 Show page number only when toolbar is hidden (#2601)
* Show pagenumber only when toolbar is hidden

* Fix fullscreen issue

* Remove unneeded dependency

* Fix menubar padding

* Revert ReaderSeekBar height

* Refine code

Co-authored-by: arkon <arkon@users.noreply.github.com>
2020-03-07 16:57:14 -05:00
arkon 3ecc883944 Run default Android Studio formatter on code 2020-02-17 17:23:37 -05:00
arkon 47f5ea881f Reorganize other util files 2020-02-02 22:22:54 -05:00