Commit Graph

163 Commits

Author SHA1 Message Date
arkon
6c527d52fb Use custom tabs instead of browser (closes #5754) 2021-08-22 14:16:54 -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
Riztard Lanthorn
83436c9550
add Theme "Teal & Turquoise" (#5681)
* add Theme "Teal & Turquoise"

* re sorting & change tertiary dark

* use alpha on ripple color & capitalize
2021-08-16 10:15:28 -04:00
arkon
03980b2f27 Remove ability to set in-app language differently from system's 2021-08-06 16:45:40 -04:00
Ivan Iskandar
bcaa9674fe
Fix forced secure screen disabled after disabling incognito (#5634) 2021-08-05 17:52:20 -04:00
Ivan Iskandar
a3090e62f5
Fix reader activity not using preferred language (#5630) 2021-07-30 18:13:50 -04:00
Ivan Iskandar
c42d517f6b
Apply default night mode earlier (#5593) 2021-07-24 11:14:25 -04:00
Ivan Iskandar
b2d58e04d2
Add Dynamic theme for Android 12 (#5569)
* Add Dynamic theme for Android 12

* Also theme text colors
2021-07-18 13:01:58 -04:00
Soitora
0d62aedfbb
Added "Tako" theme (#5546)
* Added "Ninomae" theme

Based on the lovely Ninomae Ina'nis, for Arkon and Flat

* Use updated colors from Ghostbear

Adapted after feedback

Co-Authored-By: Andreas <6576096+ghostbear@users.noreply.github.com>

* Tweak the Ninomae theme further

* Sort themes alphabetically

- Sorts themes alphabetically.
- Use the same capital word system in colors.xml for themes.xml as well.
- Rename AMOLED theme to AMOLED mode in theme.xml and color.xml references.

* More tweaks

* Style incognito bar

Uses a dark purple which looks super clean instead of a washed out gray

This sets the groundwork for other themes too

* Tweak final onPrimary color

* Rename Ninomae to Tako

RIP

Co-authored-by: Andreas <6576096+ghostbear@users.noreply.github.com>
2021-07-15 08:46:30 -04:00
Riztard Lanthorn
d9ea621e54
add Yin Yang Theme (#5508)
* add Yin Yang Theme

* change download badge color to yin yang as well

* update string

* fix &
2021-07-08 09:12:23 -04:00
Ivan Iskandar
37d30eb887
Simplify locale override (#5509) 2021-07-07 18:11:52 -04:00
arkon
040bac3da2 Resource cleanup post-theme removal 2021-07-04 17:51:15 -04:00
arkon
e9dce32a98 Remove Hot Pink theme
The old AMOLED Hot Pink theme is pretty close to what Midnight Dusk + AMOLED is now.
2021-07-04 12:05:53 -04:00
arkon
535cc0d81e Rename "Dark Blue" theme to "Blue" 2021-07-04 12:05:11 -04:00
arkon
01a1a9ebab Update to Conductor 3.0.0 2021-07-03 12:50:10 -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
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
Zakhar Timoshenko
9b967177c5
Added "Yotsuba" theme (#5290) 2021-06-12 09:45:49 -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
arkon
fb7a458747 Address some build warnings 2021-06-02 23:17:41 -04:00
arkon
034506f56b Fix toolbar menu being broken on transition (fixes #5135) 2021-05-29 13:39:39 -04:00
Soitora
4af13e3536
Added "Green Apple" theme (#5184)
* Added "Green Apple" theme

Totally not stolen from other forks.

Although to cover all my bases I co-author all people who adapted the theme in any form.

Neko, J2K and Tako

Co-Authored-By: Carlos <2092019+CarlosEsco@users.noreply.github.com>
Co-Authored-By: Jays2Kings <jays@outlook.com>
Co-Authored-By: CrepeTF <70870719+CrepeTF@users.noreply.github.com>

* Add black as the OnSecondary color

Co-authored-by: Carlos <2092019+CarlosEsco@users.noreply.github.com>
Co-authored-by: Jays2Kings <jays@outlook.com>
Co-authored-by: CrepeTF <70870719+CrepeTF@users.noreply.github.com>
2021-05-25 08:26:17 -04:00
Soitora
0fb9ca3e8b
Added "Strawberry Daiquiri" theme (#5176) 2021-05-24 16:02:45 -04:00
Soitora
176e984b56
Add "Midnight Dusk" and "Hot Pink" themes (#5161)
* Organize and clarify themes file

Increases clarification with better commenting, should make it easier to add or modify current themes.

* Make AMOLED its own theme category

* Tweak ripples for AMOLED

* Add "Midnight Dusk" theme

Ports it from jobobby04/TachiyomiSY.

Co-Authored-By: CrepeTF <70870719+CrepeTF@users.noreply.github.com>

* Add "Hot Pink" theme

Ports it from jobobby04/TachiyomiSY.

Co-Authored-By: OncePunchedMan <64155117+OncePunchedMan@users.noreply.github.com>

* Make AMOLED a base theme

* Final tweaks

Rename "Toolbar.Light" to "Custom.PopupTheme"
Changes placing of backgroundDusk

Removes HotPink and MidnightDusk custom Toolbars, I believe they are unnecessary.

* Rename a Midnight Dusk color

* Make AMOLED independent from Dark as a theme

Co-authored-by: CrepeTF <70870719+CrepeTF@users.noreply.github.com>
Co-authored-by: OncePunchedMan <64155117+OncePunchedMan@users.noreply.github.com>
2021-05-24 11:16:32 -04:00
arkon
986b709f2c Revert "Prevent view from being removed if a to is found (#5135) (#5152)"
This reverts commit 974275a429.
2021-05-23 14:30:09 -04:00
Antoine Gaudreau Simard
974275a429
Prevent view from being removed if a to is found (#5135) (#5152)
Introduced in c68e7c8da7
2021-05-23 11:00:43 -04:00
arkon
c68e7c8da7 Update OneWayFadeChangeHandler to match TachiyomiSY
Co-authored-by: jobobby04 <jobobby04@users.noreply.github.com>
2021-05-14 10:40:38 -04:00
arkon
71c9df5279 Lint fixes 2021-04-27 17:46:34 -04:00
arkon
89619b7836 Drop support for Android 5.x 2021-04-27 09:29:05 -04:00
arkon
cab919d74c Clean up controller viewbinding creation
Based on https://github.com/Jays2Kings/tachiyomiJ2K/blob/master/app/src/main/java/eu/kanade/tachiyomi/ui/base/controller/BaseController.kt
2021-04-18 12:54:51 -04:00
Ivan Iskandar
ad57fde1c5
Themes cleanup (#4894) 2021-04-18 11:29:56 -04:00
Ivan Iskandar
1f729f1cb3
Add navigation bar scrim (#4845)
* Revert "Add navigation bar scrim (closes #4836)"

This reverts commit 2a69d1b0

* Add navigation bar scrim
2021-04-15 09:55:39 -04:00
Ivan Iskandar
f3660d88dd
Draw edge-to-edge (#4802) 2021-04-10 09:38:55 -04:00
arkon
f7a6cbe5e2 Revert "Drop support for Android 5.x"
This reverts commit 443024cebb. Guess I'll do this a bit later so scb can get another major update first.

April Fools or whatever.
2021-03-31 22:20:59 -04:00
arkon
443024cebb Drop support for Android 5.x
It's 5-6 years old, and only accounts for 2% of users in the Firebase analytics.
2021-03-30 23:15:17 -04:00
Antoine Gaudreau Simard
2911fe7a1a
Add onPause\onResume persistence to searchView. Fixes issue #3627 (#4494)
* Add onPause\onResume persistence to searchView. Fixes issue #3627

* New controller subclass with built-in SearchView support

* Implement new SearchableNucleusController in SourceController

* Add query to BasePresenter (for one field it is not worth create a subclass in my opinion), convert BrowseSourceController to inherit from SearchableNucleusController

* move to flows to fix an issue in GlobalSearch where it would trigger the search multiple times

* Continue conversion to SearchableNucleusController

* Convert LibraryController, convert to flows, Known ISSUE with empty string being posted after setting the query upon creation of UI

* Fix issues with the post being tide to the SearchView queue which is not processed until shown. Add COLLAPSING state capture which should wrap this up.

* refactoring & enforce @StringRes for queryHint
2021-03-27 16:38:41 -04:00
arkon
61e5440b7c Avoid crash when device fails to handle opening a URL 2021-02-12 17:02:37 -05:00
arkon
291168f4de Remove unnecessary LayoutContainer implementations 2021-02-08 17:45:42 -05:00
arkon
b18a794eca Use lifecycleScope directly 2021-01-07 19:12:30 -05:00
arkon
6fb7a85e8a Address more coroutine scope leaks 2021-01-07 18:15:57 -05:00
inorichi
36f81b4a62 Minor fixes regarding leaks 2021-01-07 15:19:00 +01:00
arkon
6d403851cf Apply theme to OAuth login redirect activities 2020-12-14 23:00:01 -05:00
arkon
69be3e1e87 Complete migration off of Kotlin synthetics 2020-12-13 18:01:51 -05: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
749c2071af Replace Kotlin synthetic views in viewholders 2020-11-28 15:24:40 -05:00
arkon
aa98cd0da0 Fix keyboard sometimes affecting bottom inset padding 2020-11-28 13:02:15 -05:00
arkon
776f6a9a16 More bottom inset padding fixes 2020-11-27 21:05:06 -05:00
arkon
56e1e3e205 Further abstract how bottom navbar padding is applied 2020-11-22 22:57:58 -05:00
arkon
0f805cd45e Handle bottom navbar padding when drawing edge to edge 2020-11-22 22:48:38 -05:00
arkon
122b2b1a8e Draw under navbar in Android 9+ 2020-11-15 13:30:49 -05:00