komikku/app
MajorTanya 4c84954474
Minor refactor of theming when expressions (#396)
* Minor refactor of theming when expressions

Avoids triggering detekt's CyclomaticComplexMethod warning because of
too many when branches, which would happen with one more theme being
added in these two locations.

In TachiyomiTheme, the Monet theme is separated because it requires
the current Compose context to function. The other themes do not and
are delegated to a Map.

* Implement requested changes

- moved themeResources out of the ThemingDelegate interface
- replaced single condition when with if expression

(cherry picked from commit 96c236e5c38248c875f2ac7596cd51845aa651ea)
2024-03-04 10:50:10 +07:00
..
src Minor refactor of theming when expressions (#396) 2024-03-04 10:50:10 +07:00
.gitignore Remove files executable permission 2024-01-28 23:44:37 +07:00
build.gradle.kts 1.10.4 2024-02-22 23:07:56 +07:00
proguard-android-optimize.txt Remove unused rxandroid dependency 2023-09-03 23:32:59 -04:00
proguard-rules.pro Address some build warnings 2023-12-25 19:47:20 -05:00