feat: 优化代码

pull/127/head
kunfei 5 years ago
parent afa23f662c
commit 441bd5f276
  1. 4
      app/src/main/java/io/legado/app/ui/book/read/ReadMenu.kt
  2. 2
      app/src/main/res/layout/view_read_menu.xml

@ -12,8 +12,8 @@ import io.legado.app.App
import io.legado.app.R
import io.legado.app.help.AppConfig
import io.legado.app.help.ReadBookConfig
import io.legado.app.lib.theme.ATH
import io.legado.app.lib.theme.accentColor
import io.legado.app.lib.theme.bottomBackground
import io.legado.app.lib.theme.buttonDisabledColor
import io.legado.app.service.help.ReadBook
import io.legado.app.utils.*
@ -49,7 +49,7 @@ class ReadMenu : FrameLayout {
fabNightTheme.setImageResource(R.drawable.ic_brightness)
}
initAnimation()
ATH.applyBackgroundTint(fl_bottom_bg)
ll_bottom_bg.setBackgroundColor(context.bottomBackground)
vw_bg.onClick { }
vwNavigationBar.onClick { }
seek_brightness.progress = context.getPrefInt("brightness", 100)

@ -147,7 +147,6 @@
<!--底部设置栏-->
<FrameLayout
android:id="@+id/fl_bottom_bg"
android:layout_width="match_parent"
android:layout_height="100dp">
@ -157,6 +156,7 @@
android:layout_height="match_parent" />
<LinearLayout
android:id="@+id/ll_bottom_bg"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/background_menu"

Loading…
Cancel
Save