给亮度调节加个背景,很多人找不到

pull/300/head
gedoor 4 years ago
parent cd4e9b0756
commit 98e18f879f
  1. 6
      app/src/main/java/io/legado/app/ui/book/read/ReadMenu.kt
  2. 23
      app/src/main/res/layout/view_read_menu.xml

@ -13,10 +13,7 @@ import io.legado.app.R
import io.legado.app.constant.EventBus
import io.legado.app.help.AppConfig
import io.legado.app.help.ReadBookConfig
import io.legado.app.lib.theme.Selector
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.lib.theme.*
import io.legado.app.service.help.ReadBook
import io.legado.app.utils.*
import kotlinx.android.synthetic.main.view_read_menu.view.*
@ -56,6 +53,7 @@ class ReadMenu : FrameLayout {
fabNightTheme.setImageResource(R.drawable.ic_brightness)
}
initAnimation()
ll_brightness.background = ATH.getDialogBackground()
ll_bottom_bg.setBackgroundColor(context.bottomBackground)
vw_bg.onClick { }
vwNavigationBar.onClick { }

@ -42,23 +42,28 @@
</io.legado.app.ui.widget.TitleBar>
<LinearLayout
android:id="@+id/ll_brightness"
android:layout_width="wrap_content"
android:layout_height="0dp"
android:layout_margin="8dp"
android:orientation="vertical"
android:gravity="center_horizontal"
app:layout_constraintTop_toBottomOf="@+id/title_bar"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintBottom_toTopOf="@+id/bottom_menu">
<ImageView
android:id="@+id/iv_brightness_auto"
android:layout_width="24dp"
android:layout_height="24dp"
android:layout_margin="16dp"
android:layout_margin="8dp"
android:src="@drawable/ic_brightness_auto"
app:layout_constraintTop_toBottomOf="@+id/title_bar"
app:layout_constraintLeft_toLeftOf="parent"
android:contentDescription="@string/brightness_auto" />
<io.legado.app.ui.widget.seekbar.VerticalSeekBarWrapper
android:layout_width="wrap_content"
android:layout_height="0dp"
app:layout_constraintLeft_toLeftOf="@+id/iv_brightness_auto"
app:layout_constraintRight_toRightOf="@+id/iv_brightness_auto"
app:layout_constraintTop_toBottomOf="@id/iv_brightness_auto"
app:layout_constraintBottom_toTopOf="@+id/bottom_menu">
android:layout_height="match_parent">
<io.legado.app.ui.widget.seekbar.VerticalSeekBar
android:id="@+id/seek_brightness"
@ -69,6 +74,8 @@
</io.legado.app.ui.widget.seekbar.VerticalSeekBarWrapper>
</LinearLayout>
<LinearLayout
android:id="@+id/bottom_menu"
android:layout_width="match_parent"

Loading…
Cancel
Save