Commit graph

3841 commits

Author SHA1 Message Date
Jays2Kings
d0aa33c5df fix start of manga details in light blue theme 2021-10-04 23:23:59 -04:00
Jays2Kings
772201cd37 J2K Icon update
goodbye page flip i knew yee well
2021-10-04 21:47:54 -04:00
Jays2Kings
aefed46059 Add support for cont. vertical margins while splitting double pages 2021-10-04 20:18:27 -04:00
Jays2Kings
453c28bd6b Split pages for webtoons
Closes #1017

Co-Authored-By: Andreas <6576096+ghostbear@users.noreply.github.com>
Co-Authored-By: Shiranui <32921531+uknfire@users.noreply.github.com>
2021-10-04 20:11:28 -04:00
Jays2Kings
bd8ad93f4b Fixed haptic feedback not working for webtoon mode 2021-10-04 20:11:27 -04:00
Jays2Kings
45d2ac75bf fixes to bottom sheet heights 2021-10-04 17:57:15 -04:00
Jays2Kings
8d61470917 Fixing to dragging in library
closes #1008
2021-10-04 17:57:08 -04:00
Jays2Kings
9b0e0fcfe6
Material 3 (#988)
* use real material dialogs

* Fixes for tristate preference

* use material 1.5.0-alpha03

* Material 3 start

* More Material 3 changes

Updates to color primary for many themes
Using material dialog in more places
Instead of toolbar elevation, changing the color of the toolbar instead

* fix toolbar bg coloring

* More changes and fixes

fixed dialog width when using forced side nav

* update more color primaries

* Fix toolbar title alpha

* more updates

Updates to many fonts (still more to come)
Update to tracker dialogs to true material

* More dialogs updated

Using extensions for some old functionality in material dialog library

* Removed final use of mat dialogs

* Fully removed afollestad.material-dialogs

you will be missed tbh

* fix overflow width back to normal + bg color change for it

* Fix RTL for reader slider

* Fix RTL in general

This way I can revert back the slider changes.

thanks @arkon

* Android 12/SDK 31 Target

* restore ManageCategoryDialog's postive button action

no longer dismisses if there's errors with something

* Use disable items helper in MultiListMatPreference

* Change statelist and ripple for update button in ext page

* Update runtime-ktx and appcompat to alpha for A12 Target

* Removing hyperion as its no longer compatible with A12 target

Sorry Carlos, I never really never used it, even though its neat

Maybe if the library gets an update, but it hasn't had once in Jan

* Fix not being able to install extensions under A12 target

* Fixed status bar color from going back to extensions list from ext settings

* modernizing the action mode toolbar

* tinting overlay background with a hint of secondary

* Remove use of BuildCompat

since `isAtLeastS` will be deprecated soon enough

* Change startInstalling method in updateservice to only run on A12

* Revert dialog behavior for which category to update on swipe refresh

* Adding primaryInverse

used for snackbar action + reader progress when using a different background color from theme (i.e. yin theme with a white reader background)

* More subtle coloring of the manga details backdrop

theres still a tint but its next to unnoticeable now

* Remove colorDownloadBadge for colorTertiary

* Using more rounded indicator for tab chips

* removed randomly extra line in styles

* remove suggested_date_ string since no longer used

* Update chucker version to 3.5.2

to support a12 target

* No longer coloring the highlighted bottom nav text

* many fixes to preference dialogs

along with making the tri state pref match other choice pref dialogs

* Switch tabs style to use M3

No real change as far as i can see

* setting expedited for job

as needed for bigger job in A12

* Changing active tab colors again

changing to match other google apps (gmail, phone, photos) instead of trying to match other google apps (clock)

Also upping the brightness of colorSecondaryVariant for many themes

* Reverting back to target a11

Not worth trying to fix a12 issues with background jobs

* More appropriate colors for colorSecondaryVariant in light themes

* more updates to the active tab colors

* Using sliders + switch material for the reader color filters

Also updating the tints of switches

Will fix #1004

* Changing library badge style + increasing size of grid items

Library badge is now inside the grid, so less padding is needed for the grid item, thus its bigger now
Since its bigger now, the search toolbar is now wider to match its width

* Fix incognito badge not showing until title is showing on manga details

* revert work runtime to 2.6.0

* fix library unread badge for list mode

* fix text colors for download tooltips

* Material3 popup in webview activity

* removing more uses of MaterialComponents for M3

* update header card always show category name

* fix missing text appearance

* Cleanup SearchController

* clean up SwitchPreferenceCategory

* optimize imports of SearchController

* Use SwitchPreferenceCompat in SettingsExtensionsController

* Use of material 3 buttons in manga details library/tracking

* Option to theme manga details page buttons based on the cover

Backdrop tint color is now based on the covers dominant cover instead of the vibrant color, that is now used for the buttons

Also prefetching those colors when loading the covers from other screens

* removing stroke on the cover in details

* improvements to the navigation icon + blue theme improvements

+ styling the swipe refresh to the magna theme

* general cleanup/fixes when it comes to light status/nav bar

also general fixes to webview theme switching

* styles cleanup

* improvements to the library grid selector

* random refactoring thats honestly unrelated to this branch

im nearing the end of development for m3 now

* Details' bookmarks now themed by cover

* Use Material3 for primary buttons

* Use new mat dialog for filter scanlators sheet

* Updates to themed details refresh icon

* fix toolbar title being centered in searchactivity

* Updates to library badges

Now slightly outside of the covers again

* Global search badge updated to match library badge

* Updates to the manga details theme colors to be closer to the original suggested color

Also the backdrop tint will no longer be used as much if it makes for a bad contrast between it and the title/subtitle text

* Updates to the monet themes colorPrimaryVariant

* more updates to cover theme colors

tries to pick between dominant, vibrant, and muted to find something colorful to use

* Updated to material alpha04

With it brings:
M3 Nav Rail
Updated dialogs
Updated sheets theme

* Delete side_nav_item_selector.xml

* Update colorPrimVariant for light themes

* remove elevation in theme preview item

* various updates to imports

* Update ControllerExtensions.kt

* Fix extensions/ dl queue title not being centered

* more improvements to bestColor for covers

* Use attr for styles of textviews

+ style cleanup

* Use cross in filter scanlator groups to show its filtered

* Support delta movement of moving manga categories

Tristate to manage add/remove without removing categories categories

also some refactoring of TriStateCheckBox
closes #644

* remove stroke on category hopper

* update to details theming in light theme

* Fix some text appearances

* Fixes to text that shows when some categories are shared between selected manga

* Use Material3 style for the final remaining elements

this is slider tooltip, chips, text buttons, editText, tracker cardview

* making category hopper slightly bigger

* fixed dialog divider color for edit manga and tri state

* fixed top padding in manga category dialog

* Update dim for full cover for devices under A12

* More improvements to the logic for what text shows on the move categories button

* Fixed slider tooltip color and text size

as well as made the inactive ticks less visible

* fixed light nav bar in bottom sheets for older devices

* Fix reader nav bar colors for android 10 and below

for android 8 and below the reader nav bar is now black in light themes
also removed zhanghai.android.systemuihelper lib

* set tri checkbox background ripple to off for dialogs

* fixed misuse of textAppearanceBodySmall

* make lightStatusBar a local val in readeractivity

* when manga is in the default category, text should always say "move to" instead "add to" when change categories

* Fixed copy and logic for when trying to remove tracker while offline
2021-10-04 17:30:10 -04:00
Jays2Kings
b9c823ce34 fix for the last commit 2021-10-04 03:43:06 -04:00
Jays2Kings
cd33a1674a Check unmetered again for download only via wifi instead of if wifi is on
Since wifiManager.isWifiEnabled only checks if wifi is on, not if conntected to a wifi network
2021-10-03 22:52:28 -04:00
Jays2Kings
8a8c068e23 Fixed android 12 showing "capture more" for screenshots while the reader menu is open 2021-10-03 22:50:30 -04:00
Jays2Kings
7a2c9ce457 Fix downloads not working on metered wifi or vpns 2021-10-03 00:20:18 -04:00
Jays2Kings
f9ab1dbef1 use try block for setIncognito so it can show in layout editor 2021-10-02 14:14:46 -04:00
Jays2Kings
67a4fa4d6b Version 1.3.2 2021-10-02 12:48:45 -04:00
Jays2Kings
a0a0501151
Weblate translations (#1002)
Co-authored-by: Ainārs Lapkovskis <ainarslapkovskis@gmail.com>
Co-authored-by: Ajeje Brazorf <lmelonimamo@yahoo.it>
Co-authored-by: Alessandro Jean <alessandrojean@gmail.com>
Co-authored-by: Allan Nordhøy <epost@anotheragency.no>
Co-authored-by: Druvvaldis <druvvaldisr@gmail.com>
Co-authored-by: Eric <spice2wolf@gmail.com>
Co-authored-by: Forqen <krecio555@gmail.com>
Co-authored-by: Hosted Weblate <hosted@weblate.org>
Co-authored-by: Huang Zhiyi <hzy980512@126.com>
Co-authored-by: HuynhDuc <minhduck3359@gmail.com>
Co-authored-by: J. Lavoie <j.lavoie@net-c.ca>
Co-authored-by: Jakub Fabijan <jakubfabijan@tuta.io>
Co-authored-by: John Andrew Jose <johnandrew.jose0308@gmail.com>
Co-authored-by: K. Sz. Bence <tudi20@protonmail.com>
Co-authored-by: Kaleb <kalebcarvalho1@gmail.com>
Co-authored-by: Lyfja <yassinelaoud@gmail.com>
Co-authored-by: Lzmxya <lzmxya@gmail.com>
Co-authored-by: Michael Fleischer <michaelfleischer81@gmail.com>
Co-authored-by: Nishant Bodkhe <nishantbodkhe44@gmail.com>
Co-authored-by: Pedro <pedro-mediavilla@hotmail.com>
Co-authored-by: Pitpe11 <giorgos2550@gmail.com>
Co-authored-by: Qaluna del Almarica <keslaveje@gmail.com>
Co-authored-by: Redy Apriyadi <redy.apriyadi@gmail.com>
Co-authored-by: Ric <rikku.debec@gmail.com>
Co-authored-by: Victor Bychkov <madeinchuvashia@gmail.com>
Co-authored-by: crackheadakira <lasn.mine@gmail.com>
Co-authored-by: julptk <julptk8@gmail.com>
Co-authored-by: monolifed <monolifed@protonmail.com>
Co-authored-by: phannhanhn201 <phannhanhn201@gmail.com>
Co-authored-by: soplatnik <jestapom@protonmail.com>
Co-authored-by: Роман <Rozhenkov69@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/tachiyomi/tachiyomi-j2k/
Translate-URL: https://hosted.weblate.org/projects/tachiyomi/tachiyomi-j2k/cv/
Translate-URL: https://hosted.weblate.org/projects/tachiyomi/tachiyomi-j2k/de/
Translate-URL: https://hosted.weblate.org/projects/tachiyomi/tachiyomi-j2k/el/
Translate-URL: https://hosted.weblate.org/projects/tachiyomi/tachiyomi-j2k/eo/
Translate-URL: https://hosted.weblate.org/projects/tachiyomi/tachiyomi-j2k/es/
Translate-URL: https://hosted.weblate.org/projects/tachiyomi/tachiyomi-j2k/fil/
Translate-URL: https://hosted.weblate.org/projects/tachiyomi/tachiyomi-j2k/fr/
Translate-URL: https://hosted.weblate.org/projects/tachiyomi/tachiyomi-j2k/hi/
Translate-URL: https://hosted.weblate.org/projects/tachiyomi/tachiyomi-j2k/hu/
Translate-URL: https://hosted.weblate.org/projects/tachiyomi/tachiyomi-j2k/id/
Translate-URL: https://hosted.weblate.org/projects/tachiyomi/tachiyomi-j2k/it/
Translate-URL: https://hosted.weblate.org/projects/tachiyomi/tachiyomi-j2k/ja/
Translate-URL: https://hosted.weblate.org/projects/tachiyomi/tachiyomi-j2k/lv/
Translate-URL: https://hosted.weblate.org/projects/tachiyomi/tachiyomi-j2k/mn/
Translate-URL: https://hosted.weblate.org/projects/tachiyomi/tachiyomi-j2k/nb_NO/
Translate-URL: https://hosted.weblate.org/projects/tachiyomi/tachiyomi-j2k/pl/
Translate-URL: https://hosted.weblate.org/projects/tachiyomi/tachiyomi-j2k/pt/
Translate-URL: https://hosted.weblate.org/projects/tachiyomi/tachiyomi-j2k/pt_BR/
Translate-URL: https://hosted.weblate.org/projects/tachiyomi/tachiyomi-j2k/ru/
Translate-URL: https://hosted.weblate.org/projects/tachiyomi/tachiyomi-j2k/sc/
Translate-URL: https://hosted.weblate.org/projects/tachiyomi/tachiyomi-j2k/sv/
Translate-URL: https://hosted.weblate.org/projects/tachiyomi/tachiyomi-j2k/tr/
Translate-URL: https://hosted.weblate.org/projects/tachiyomi/tachiyomi-j2k/vi/
Translate-URL: https://hosted.weblate.org/projects/tachiyomi/tachiyomi-j2k/zh_Hans/
Translate-URL: https://hosted.weblate.org/projects/tachiyomi/tachiyomi-j2k/zh_Hant/
Translation: Tachiyomi/Tachiyomi J2K

Co-authored-by: Hosted Weblate <hosted@weblate.org>
Co-authored-by: Ainārs Lapkovskis <ainarslapkovskis@gmail.com>
Co-authored-by: Ajeje Brazorf <lmelonimamo@yahoo.it>
Co-authored-by: Alessandro Jean <alessandrojean@gmail.com>
Co-authored-by: Allan Nordhøy <epost@anotheragency.no>
Co-authored-by: Druvvaldis <druvvaldisr@gmail.com>
Co-authored-by: Eric <spice2wolf@gmail.com>
Co-authored-by: Forqen <krecio555@gmail.com>
Co-authored-by: Huang Zhiyi <hzy980512@126.com>
Co-authored-by: HuynhDuc <minhduck3359@gmail.com>
Co-authored-by: J. Lavoie <j.lavoie@net-c.ca>
Co-authored-by: Jakub Fabijan <jakubfabijan@tuta.io>
Co-authored-by: John Andrew Jose <johnandrew.jose0308@gmail.com>
Co-authored-by: K. Sz. Bence <tudi20@protonmail.com>
Co-authored-by: Kaleb <kalebcarvalho1@gmail.com>
Co-authored-by: Lyfja <yassinelaoud@gmail.com>
Co-authored-by: Lzmxya <lzmxya@gmail.com>
Co-authored-by: Michael Fleischer <michaelfleischer81@gmail.com>
Co-authored-by: Nishant Bodkhe <nishantbodkhe44@gmail.com>
Co-authored-by: Pedro <pedro-mediavilla@hotmail.com>
Co-authored-by: Pitpe11 <giorgos2550@gmail.com>
Co-authored-by: Qaluna del Almarica <keslaveje@gmail.com>
Co-authored-by: Redy Apriyadi <redy.apriyadi@gmail.com>
Co-authored-by: Ric <rikku.debec@gmail.com>
Co-authored-by: Victor Bychkov <madeinchuvashia@gmail.com>
Co-authored-by: crackheadakira <lasn.mine@gmail.com>
Co-authored-by: julptk <julptk8@gmail.com>
Co-authored-by: monolifed <monolifed@protonmail.com>
Co-authored-by: phannhanhn201 <phannhanhn201@gmail.com>
Co-authored-by: soplatnik <jestapom@protonmail.com>
Co-authored-by: Роман <Rozhenkov69@gmail.com>
2021-10-02 12:27:44 -04:00
Jays2Kings
78e3da7488 Add IME_FLAG_NO_PERSONALIZED_LEARNING flag to text input when incognito is enabled
Close #1015

Co-Authored-By: Ivan Iskandar <12537387+ivaniskandar@users.noreply.github.com>
2021-10-02 12:26:40 -04:00
Jays2Kings
78a71e5280 fix format in BaseWebViewActivity 2021-10-02 12:24:12 -04:00
Jays2Kings
2d9bd2eb63 hide kb in browse source for debug builds 2021-10-02 11:29:18 -04:00
Jays2Kings
6b7b2fac20 set Read Comics Online as a comic source
Closes #1014
2021-10-01 20:14:05 -04:00
Jays2Kings
ad5378f601 Fix ghost extension badge in tab bar in android 12
only happens when an extension updates while the main activity isn't active
2021-10-01 19:56:53 -04:00
Jays2Kings
ace46b4b8b No longer force webtoons.com entries to only use webtoon mode 2021-10-01 00:52:03 -04:00
Jays2Kings
7b091e368f fix globalsearch package name 2021-10-01 00:34:20 -04:00
Jays2Kings
c4164872aa name side nav class properly 2021-10-01 00:33:55 -04:00
Jays2Kings
d11506db9c remove timber mention in dependencies 2021-10-01 00:31:04 -04:00
Jays2Kings
896ed8661c Update WindowInsetsExtensions.kt 2021-10-01 00:30:37 -04:00
Jays2Kings
d30e2c41e7 Fixing various warnings
along with some new methods for insets compat (which ill tackle again after m3
2021-10-01 00:21:00 -04:00
Jays2Kings
c23cd3c9a1 Fixes to import format + updatePadding cleanup
using the one from androidx instead
2021-10-01 00:03:24 -04:00
Jays2Kings
6399bbb779 Lint fixes/ignore some errors 2021-09-30 23:48:00 -04:00
Jays2Kings
5b480caaf3 Delete .editorconfig 2021-09-30 23:47:25 -04:00
Jays2Kings
53115d4a2c light Dependencies cleanup 2021-09-30 23:47:02 -04:00
Jays2Kings
7207da8df4 Use webpage's dark theme (if applicable) automatically if app is in dark mode
So far only mangadex is the one I know with good support but its here now
2021-09-30 15:29:01 -04:00
Jays2Kings
4892096f5e Fix webview toolbar color when switching system themes 2021-09-30 15:24:16 -04:00
Jace
cfedcb7001 Change ProtoNumber of Backup Models for History and Source to a non-zero digit (#5849)
* Change ProtoNumber of Backup Models for History and Source to non-zero

Changed BackupHistory url and BackupSource name properties

* Provide backwards compatibility to current proto backups

- Added data class for zero-based protoNumber
- Restore both 'new' proto and old ones by mapping old to 'new' proto format
- Thanks to @jobobby04  for providing the initial solution.

* Fix on createBackup missing parameter for brokenSource

* Fix issues on build

* Fix missing import on FullBackupRestore
2021-09-30 13:49:48 -04:00
Long
6407d7ca3f DNS-over-HTTPS (Adguard) (#5715)
* Update DohProviders.kt

* Update NetworkHelper.kt

* Update SettingsAdvancedController.kt

* fix typo

* Fix typo

* Fix typo
2021-09-30 13:36:25 -04:00
arkon
fa2e8303e2 Opt out of WebView metrics and disable Google Safe Browsing
cf. https://developer.android.com/guide/webapps/managing-webview
2021-09-30 13:18:19 -04:00
Jays2Kings
6cd4b520f8 Hide soft keyboard after submitting search quer on browse sourcey
done because of the change in upstream but most fields were already like this so not even close to a cherry pick
2021-09-30 13:12:43 -04:00
Jays2Kings
b0721e88e4 fix warning/ optimize imports of recents controller 2021-09-30 13:09:15 -04:00
Jays2Kings
93aafb46f4 Hide Android 12 auto update features if "notify for ext updates" is disabled 2021-09-30 13:08:56 -04:00
Seishirou101
a489f824b5
add debug info to crashlog (#1009)
* add debug info

* add line break
2021-09-29 20:27:41 -04:00
Jays2Kings
5a983737ed show filter groups button only if theres more than one scanlator 2021-09-29 20:23:43 -04:00
Jays2Kings
1864268dbe Fix a12 backdrop blur when changing covers 2021-09-29 20:23:19 -04:00
Jays2Kings
c48242e4ec Fixing indents and warnings 2021-09-29 20:20:34 -04:00
Seishirou101
7695f0b51d
fix downloading filtered out chapters (#1010) 2021-09-29 19:24:36 -04:00
Jays2Kings
a9faeacc6f Update MangaHeaderHolder.kt 2021-09-24 02:07:48 -04:00
Jays2Kings
8f8e4aea9f making sure manga is not in expanded state if manga is in library and not initialized 2021-09-24 01:50:13 -04:00
Jays2Kings
4c75d2c014 minor updates to dialog 2021-09-24 01:04:38 -04:00
Jays2Kings
f1da6bd3fd Update comments of ChapterFilter 2021-09-24 00:59:25 -04:00
Jays2Kings
f1cc1996e6 fix master not running 2021-09-24 00:59:25 -04:00
Seishirou101
f062baf909
add scanlation filter (#1006)
* add scanlation filter

* add hide logic and remove sql cmd

* add suggested fixes

* use button colored instead

* move filter scanlation code to getChaptersSorted

* invert scanlation filter and remove strings

* fix ChapterSort issue and add filter logic to getNextUnreadChapter

* remove log import

* filter chapterlist in reader presenter

* make new method and replace logic

* add missed comma

* add suggested improvements

* add missed suggestion
2021-09-24 00:49:02 -04:00
Jays2Kings
9bbf96bbef general improvements to the add tracking sheet 2021-09-23 21:01:04 -04:00