更新界面

This commit is contained in:
HapeLee committed 2025-07-01 23:42:07 +08:00
1 parent cd4caed170
commit 3908ff7cf2
76 files changed
+1586 -1393

No files matched your search

@@ -418,6 +418,13 @@ val Context.isDebuggable: Boolean
val Context.dataStore by preferencesDataStore(name = "settings")
val Context.bookshelfLayout: Int
get() = if (resources.configuration.orientation == Configuration.ORIENTATION_LANDSCAPE) {
AppConfig.bookshelfLayoutLandscape
} else {
AppConfig.bookshelfLayoutPortrait
}
fun Context.themeColor(attr: Int): Int {
val typedValue = TypedValue()
theme.resolveAttribute(attr, typedValue, true)