更新界面

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

@@ -167,12 +167,6 @@ class TitleBar @JvmOverloads constructor(
}
}
if (AppConfig.isEInkMode) {
setBackgroundResource(R.drawable.bg_eink_border_bottom)
} else {
//setBackgroundColor(context.primaryColor)
}
stateListAnimator = null
//elevation = context.elevation
}
@@ -6,6 +6,8 @@ import android.view.LayoutInflater
import android.view.ViewGroup
import android.widget.FrameLayout
import androidx.annotation.ColorRes
import androidx.core.view.isInvisible
import androidx.core.view.isVisible
import io.legato.kazusa.R
import io.legato.kazusa.databinding.ViewLoadMoreBinding
import io.legato.kazusa.lib.dialogs.alert
@@ -51,7 +53,7 @@ class LoadMoreView(context: Context, attrs: AttributeSet? = null) : FrameLayout(
fun stopLoad() {
isLoading = false
binding.rotateLoading.inVisible()
binding.rotateLoading.invisible()
}
fun hasMore() {
@@ -81,14 +83,6 @@ class LoadMoreView(context: Context, attrs: AttributeSet? = null) : FrameLayout(
binding.tvText.visible()
}
fun setLoadingColor(@ColorRes color: Int) {
binding.rotateLoading.loadingColor = context.getCompatColor(color)
}
fun setLoadingTextColor(@ColorRes color: Int) {
binding.tvText.setTextColor(context.getCompatColor(color))
}
private fun showErrorDialog(): Boolean {
if (errorMsg.isBlank()) {
return false
@@ -290,7 +290,7 @@ class FastScroller : LinearLayout {
override fun onTouchEvent(event: MotionEvent): Boolean {
when (event.action) {
MotionEvent.ACTION_DOWN -> {
if (event.x < mHandleView.x - ViewCompat.getPaddingStart(mHandleView)) {
if (event.x < mHandleView.x - mHandleView.paddingStart) {
return false
}
if (!mScrollbar.isVisible) {