Commit graph

157 commits

Author SHA1 Message Date
Cuong-Tran
e477f22426
Restore original list header's background color (#797)
* more subtle header

* restore original ListGroupHeader color & make option applied to only LibraryUpdateError, using tonalElevation instead.
2025-03-26 23:01:34 +07:00
AntsyLich
b22a8ac66b
Make more sliders discrete and ensure they don't look out of place (mihonapp/mihon#1840)
Also cleanup the underlying code

(cherry picked from commit 4f06c1cc09d15245b26b8a862738cb6a859fedcc)
2025-03-09 16:56:07 +07:00
MajorTanya
54eea7ccb7
Add "Monochrome" theme (mihonapp/mihon#1752)
This theme is mainly geared towards e-Ink displays with limited/no
colour capabilities. Previous themes like Yin & Yang would make heavy
use of greyscale colours which could look off on some devices.

This theme is probably not conformant to Material Design 3 colour
scheme guidelines, but it does boast some amazing WebAIM contrast
ratios (#FFFFFF text on #000000 background gets a ratio of 21:1, vice
versa too).

Initially, this was intended as a purely black and white theme but
some contrast issues arose, such as the download badges (tertiary
background, onTertiary text colour) having the same colour as unread
badges (primary/onPrimary), or the step indicators (stops) not being
visible on sliders (since they use the colours of the opposite state
track (active region stops are the colour of the inactive region track and vice versa).

To mitigate this, each variant (dark/light) of the theme has one
additional grey mixed in for their tertiary and secondaryContainer
colours each. For the dark variant, this is a #A0A0A0 background for
#000000 text (8.03:1 contrast ratio) and for the light variant, it is
a #505050 background for #FFFFFF text (8.06:1 contrast ratio).
This results in distinct unread vs download badges and visible steps
in the sliders.

---------

Co-authored-by: Sunspark-007 <73711243+Sunspark-007@users.noreply.github.com>
Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
(cherry picked from commit 8b48d1016b851b425e4f66d44bca098220585c37)
2025-02-26 23:38:53 +07:00
AntsyLich
7d0c9f6f29
Rework slider UI
Fixes mihonapp/mihon#1474

(cherry picked from commit e8c9cb2c2e4c24443368f0d653c5283f9671ffec)
2025-02-06 11:17:06 +07:00
AntsyLich
21bdefb4ce
Fix loading screen not appearing when changing query in browser screen
Fixes #mihonapp/mihon1438
Closes #mihonapp/mihon1441

(cherry picked from commit 9aef08c333397caa4b897514cf76966592d3849c)
2024-11-21 02:06:19 +07:00
AntsyLich
3c0c45eb81
Address some build warnings and cleanup (mihonapp/mihon#1412)
(cherry picked from commit a1c60897916f418726107fec80ad79b2a4b8d500)
2024-11-01 10:37:52 +07:00
Cuong-Tran
451fe433cf
Error screen (#462)
- A dedicated screen in Settings for error list when updating library
- Allow to jump to Error screen if click on notification
- Allow to migrate error entry
- Create error on each entry updated instead of waiting for the whole updating list to finished
- Overwrite entry's error if new error happens after updating
- Clear entry's error if it successfully updated
- Clear un-relevant errors (entry which was removed from Library) on next update
- List of errors can jump to top/bottom or next/previous errors group
- Won't create error file anymore

* Added library update errors screen

(cherry picked from commit 7cf37d52f959ac65f53cf7657563fb4428bd9188)

* Open library update errors screen on clicking library update error notification

(cherry picked from commit d2d22f437a1d61b086f1e19dfbcd2c0a2bc125f4)

* LibraryUpdateErrorScreen's bottom UI with scroll to top/bottom buttons

(cherry picked from commit 859ce54474d456232510e21f4f6795af65489be2)

* migrate to AppBar

* sticky header

* scroll to next/previous group of errors

* insert error entry one by one

* delete error from DB when successfully updated

* clean un-relevant errors from DB on every updates

* fix errors & clean up

* catch exception & fix notification intent

---------

Co-authored-by: ImaginaryDesignation <108343184+ImaginaryDesignation@users.noreply.github.com>
2024-10-28 23:12:14 +07:00
AntsyLich
4ba654c29a
Update dependency com.pinterest.ktlint:ktlint-cli to v1.4.0
Co-authored-by: Mend Renovate <bot@renovateapp.com>
(cherry picked from commit 140083ee39df7d458e5ff9abc6d0ee9831d99387)
2024-10-28 22:11:48 +07:00
AntsyLich
f106090ded
Cleanup Slider usage
Also for Vertical mode:
- Fix page's text color
- Fix steps visual (tachiyomiorg/tachiyomi#9461)
- Dispatch page change only when needed

(cherry picked from commit df9fff60da3a38acd8fcd540b5fdd275be93f2d5)
2024-10-28 22:11:48 +07:00
abdurisaq
256fe760cc
Fix settings SliderItem steps count (mihonapp/mihon#1356)
(cherry picked from commit 2ba7ed32802ffca1946d567b8afe49bfd3f4326e)
2024-10-28 22:11:48 +07:00
AntsyLich
850389e827
Revert "Tweak Preference.collectAsState"
This reverts commit 3bddb5538528c19388e364d21e6a6c16487af759.

Fixes mihonapp/mihon#1341

(cherry picked from commit eb3bea8150ce9bf2320d15c879cbebaa6d51a4c6)
2024-10-23 14:19:45 +07:00
AntsyLich
7d8f96d856
Cleanup .gitignore files
(cherry picked from commit afa50029882655af8d5eea40aed7644fce4564d8)
2024-10-23 14:19:38 +07:00
AntsyLich
221508bc46
Adjust expandable fab animation
Co-authored-by: p
(cherry picked from commit eb6092bd0cfa09694985a8bafdd8bbf2815190a1)
2024-10-23 13:08:41 +07:00
Jack Hamilton
dacea90f10
Added random library sort (mihonapp/mihon#1317)
Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
(cherry picked from commit a72db41bf1746db095fd27bbbce9765c06453581)
2024-10-23 13:08:41 +07:00
AntsyLich
9e6c5f8295
Tweak Preference.collectAsState
Co-authored-by: p
(cherry picked from commit 3bddb5538528c19388e364d21e6a6c16487af759)
2024-10-23 13:08:41 +07:00
Cuong-Tran
d09949e2bb
feat(ui): read/resume button movable
* material3: update scaffold to support FabPosition.Start

also fix fab's width calculation with inset

* Moveable Read button & sticky to either size of screen
2024-09-24 00:52:51 +07:00
Roshan Varughese
7e4c3fbe2b
Fix WheelPicker Manual Input (mihonapp/mihon#1209)
* Fix WheelPicker Manual Input

* Lambda

* inline

* Update WheelPicker.kt

---------

Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
(cherry picked from commit 339dc33f5833b224c01577da3da081deecdbbca2)
2024-09-18 13:54:42 +07:00
AntsyLich
2fe0236384
Use TextFieldState in BasicTextField where applicable (mihonapp/mihon#1201)
Co-authored-by: p
(cherry picked from commit bec549cc444328c8b46594c67a84d25dcc1aca6f)
2024-09-08 02:06:53 +07:00
Cuong-Tran
8b50cba75a
More language flags 2024-08-29 16:48:09 +07:00
Cuong-Tran
9fc6ea65a5
use UN flag for language All 2024-08-29 16:14:35 +07:00
Cuong-Tran
b7896dbb0e
Using emoji flags in manga detail page
Fix source's error icon background
2024-08-26 18:11:14 +07:00
Tran M. Cuong
8a7c005d61
repo icon for Komikku & Keiyoushi (#291) 2024-08-26 00:08:38 +07:00
Tran M. Cuong
2536e5a77e
Remove built-in Komikku repo (#286)
* Add Help to Repo EmptyScreen

* Migration: insert Official Repo for old users

* button to auto fill official KMK extension repo

* 'More extensions' button to go to Repo page

* Remove default official repo

* fix spotless
2024-08-26 00:08:38 +07:00
AntsyLich
e7ca892f65
Address spotless lint errors (mihonapp/mihon#1138)
* Add spotless (with ktlint)

* Run spotlessApply

* screaming case screaming case screaming case

* Update PagerViewerAdapter.kt

* Update ReaderTransitionView.kt

(cherry picked from commit d6252ab7703d52ecf9f43de3ee36fd63e665a31f)
2024-08-26 00:08:37 +07:00
AntsyLich
335f0956b4
Remove detekt (mihonapp/mihon#1130)
Annoying. More annoying in this project.

(cherry picked from commit 777ae2461e1eb277a3aa0c998ff69e4f100387a1)
2024-08-26 00:08:37 +07:00
Tran M. Cuong
8c6cca09a4
feat (ui): source language flags (#272)
* add countries flags
add flags & simplify/sizing
add flagkit

* add flags to Extensions Filter

* add flags to Sources & Extensions screen

* show language flag in Library
2024-08-26 00:07:56 +07:00
Tran M. Cuong
29eeccad1b
feat (ui): showing source icon in library (#261)
* showing source icon in library

* Change language icon for local source from Folder to Globe

* adjust size & padding for icon & badge

* Setting enable/disable source icon
2024-08-19 12:50:16 +07:00
AntsyLich
88896fe357
Sync compose theme with MDC theme
(cherry picked from commit 9a34ace09c66274e6c2b3f9446058a0fa99d4bd0)
2024-08-13 22:44:59 +08:00
Tran M. Cuong
6d55f200d0
fix: drawScrollbar crash on list with 0 item but only sticky header 2024-08-06 22:48:50 +07:00
renovate[bot]
b939492dcb fix(deps): update dependency dev.chrisbanes.compose:compose-bom to v2024.05.00-alpha03 (#60, mihonapp/mihon#843)
* fix(deps): update dependency dev.chrisbanes.compose:compose-bom to v2024.05.00-alpha03

* Fix build

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
(cherry picked from commit 777a071f4a2f32efc3447d118afd8b48006b3919)
2024-07-27 02:13:27 +07:00
renovate[bot]
a0971e36a9 chore(deps): update kotlin and compose compiler to v2 (major) (#26, #82, mihonapp/mihon#819)
* chore(deps): update kotlin and compose compiler to v2

* Update .gitignore

* Fix build

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
(cherry picked from commit 46003ec25139319079abc9fde89b3afd344a1a11)
2024-07-27 02:13:27 +07:00
AntsyLich
fa8f519ffc Bump compose version
Co-authored-by: Ivan Iskandar <12537387+ivaniskandar@users.noreply.github.com>
(cherry picked from commit e473c7f09fc009161145aca94bd70027f042b0bf)

# Conflicts:
#	app/src/main/java/eu/kanade/presentation/browse/ExtensionFilterScreen.kt
#	app/src/main/java/eu/kanade/presentation/browse/ExtensionsScreen.kt
#	app/src/main/java/eu/kanade/presentation/browse/GlobalSearchScreen.kt
#	app/src/main/java/eu/kanade/presentation/browse/SourcesFilterScreen.kt
#	app/src/main/java/eu/kanade/presentation/browse/components/GlobalSearchResultItems.kt
#	app/src/main/java/eu/kanade/presentation/manga/MangaScreen.kt
#	app/src/main/java/eu/kanade/presentation/manga/components/MangaInfoHeader.kt
#	gradle/compose.versions.toml
2024-07-27 02:13:27 +07:00
Cuong-Tran
a67d63a4d8 refactor: rework cover's loading animation performance
Close #159
2024-07-22 13:35:04 +07:00
CrepeTF
763166b910
Correct tako variable colours (mihonapp/mihon#976)
(cherry picked from commit 75b5d966018aa917f57adf37370088a51e4914b2)
2024-07-05 14:47:31 +07:00
CrepeTF
387a707b18
Theme fixes (mihonapp/mihon#963)
* Fix theme issue with download progress indicator

* Fix theme issue with download progress indicator + better contrast

(cherry picked from commit e132cc405f23e18dd8d73626730821eae9051149)
2024-07-02 02:13:45 +07:00
Tran M. Cuong
19890ef4d4
update-color-schemes (#121)
* feat: Add more color theme

- CloudFlare
- CottonCandy
- Doom
- Matrix
- Mocha
- Sapphire

* generate full color for Cottoncandy

* generate full color for Mocha

* refactor(ui): reorder themes

close #114
2024-07-02 01:14:27 +07:00
Cuong-Tran
0bcf4fe2c9
update splash background color 2024-06-24 15:16:29 +07:00
Tran M. Cuong
e9807b2131
update splash color 2024-06-19 19:15:32 +07:00
Tran M. Cuong
2ec7d11820
splash dark background 2024-06-19 11:47:50 +07:00
Tran M. Cuong
284ede02e5
different splash color for day mode 2024-06-17 21:20:06 +07:00
Cuong M. Tran
cd7bc8860e
Revert "composed Modifier changes (#9631)"
This reverts commit 434b8d3ae8.

# Conflicts:
#	app/src/main/java/eu/kanade/presentation/manga/components/ChapterDownloadIndicator.kt
#	presentation-core/src/main/java/tachiyomi/presentation/core/components/material/Tabs.kt
#	presentation-core/src/main/java/tachiyomi/presentation/core/util/Modifier.kt
2024-06-17 09:33:03 +07:00
Cuong M. Tran
4909d0ce57
Fix manual edit on Tracker's chapter doesn't work (must hit Done on keyboard to work) 2024-06-17 09:33:03 +07:00
Tran M. Cuong
c8a0ba67ec
remove unnecessary i18n-kmk dependence 2024-06-16 20:16:06 +07:00
Tran M. Cuong
7a99a9a9b5
add KMK comment 2024-06-16 20:15:50 +07:00
Cuong M. Tran
221b55536f
New app icon 2024-06-14 23:16:42 +07:00
Cuong Tran
3e808f1098
Revert "Bump compose version" which causing laggy with scroll
This reverts commit 9682b8d9d2.
2024-06-13 19:35:25 +07:00
Cuong M. Tran
271e78eaf1
i18n for Komikku 2024-06-11 00:04:02 +07:00
Cuong M. Tran
4c713f118f
Cover's styling: color & loading animation (#42)
* use dominantCoverColors as background for cover so it's less tinted by theme color, also if CoverCache is corrupted, favorite entries can still show color

* add loading animation while cover is fetching image

* Bulk-selection using default isSelected style

* fix cover's background & tint when AsyncImage is Error/Fallback/PlaceHolder

* Widget's cover color when unable to load cover image
2024-06-04 13:59:00 +07:00
Cuong M. Tran
6cf789e747
Revert back LazyList.isScroll... & fix menuAnchor deprecation caused by Bump compose version (#9682b8d9) 2024-05-20 13:16:47 +07:00
AntsyLich
0a9e432562
Remove dependency on compose material 2 components 2024-05-19 02:52:52 +07:00