亮度调节背景改成半透明

pull/302/head
gedoor 4 years ago
parent 2b5f77bb9c
commit 806ca97e93
  1. 1
      app/src/main/assets/updateLog.md
  2. 5
      app/src/main/java/io/legado/app/ui/book/read/ReadMenu.kt

@ -7,6 +7,7 @@
* 增加了Content Provider 接口支持 by [w568w](https://github.com/w568w)
* 修复阅读界面加入书架后,书籍详情页还是显示加入书架按钮的bug
* 修复低版本手机自动阅读速度拉动最左边崩溃的bug
* 给亮度调节加个背景,很多人找不到
* 修复替换分组选择无效的bug
* 备份添加书签
* 修复web端进度更新后手机端进入阅读界面进度不变的bug

@ -2,6 +2,7 @@ package io.legado.app.ui.book.read
import android.content.Context
import android.content.res.ColorStateList
import android.graphics.drawable.GradientDrawable
import android.util.AttributeSet
import android.view.WindowManager
import android.view.animation.Animation
@ -56,6 +57,10 @@ class ReadMenu : FrameLayout {
fabNightTheme.setImageResource(R.drawable.ic_brightness)
}
initAnimation()
val brightnessBackground = GradientDrawable()
brightnessBackground.cornerRadius = 5F.dp
brightnessBackground.setColor(ColorUtils.adjustAlpha(App.INSTANCE.bottomBackground, 0.5f))
ll_brightness.background = brightnessBackground
ll_bottom_bg.setBackgroundColor(context.bottomBackground)
vw_bg.onClick { }
vwNavigationBar.onClick { }

Loading…
Cancel
Save