diff --git a/app/src/main/assets/updateLog.md b/app/src/main/assets/updateLog.md index a1c90d61a..d34935f44 100644 --- a/app/src/main/assets/updateLog.md +++ b/app/src/main/assets/updateLog.md @@ -7,6 +7,7 @@ * 增加了Content Provider 接口支持 by [w568w](https://github.com/w568w) * 修复阅读界面加入书架后,书籍详情页还是显示加入书架按钮的bug * 修复低版本手机自动阅读速度拉动最左边崩溃的bug +* 给亮度调节加个背景,很多人找不到 * 修复替换分组选择无效的bug * 备份添加书签 * 修复web端进度更新后手机端进入阅读界面进度不变的bug diff --git a/app/src/main/java/io/legado/app/ui/book/read/ReadMenu.kt b/app/src/main/java/io/legado/app/ui/book/read/ReadMenu.kt index 178d2cbac..89a30b8d1 100644 --- a/app/src/main/java/io/legado/app/ui/book/read/ReadMenu.kt +++ b/app/src/main/java/io/legado/app/ui/book/read/ReadMenu.kt @@ -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 { }