修复设置侧栏主题背景显示

This commit is contained in:
lyswhut 2023-03-24 21:23:00 +08:00
parent c121800d80
commit 4410cdab53
4 changed files with 9 additions and 4 deletions

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{ {
"name": "lx-music-mobile", "name": "lx-music-mobile",
"version": "1.0.0-beta.14", "version": "1.0.0-beta.15",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "lx-music-mobile", "name": "lx-music-mobile",
"version": "1.0.0-beta.14", "version": "1.0.0-beta.15",
"license": "Apache-2.0", "license": "Apache-2.0",
"dependencies": { "dependencies": {
"@craftzdog/react-native-buffer": "^6.0.5", "@craftzdog/react-native-buffer": "^6.0.5",

View File

@ -1,6 +1,6 @@
{ {
"name": "lx-music-mobile", "name": "lx-music-mobile",
"version": "1.0.0-beta.14", "version": "1.0.0-beta.15",
"versionCode": 53, "versionCode": 53,
"private": true, "private": true,
"scripts": { "scripts": {

View File

@ -1,5 +1,7 @@
从v1.0.0起,我们发布了一个独立版的[数据同步服务](https://github.com/lyswhut/lx-music-sync-server#readme),如果你有服务器,可以将其部署到服务器上作为私人多端同步服务使用,详情看该项目说明 从v1.0.0起,我们发布了一个独立版的[数据同步服务](https://github.com/lyswhut/lx-music-sync-server#readme),如果你有服务器,可以将其部署到服务器上作为私人多端同步服务使用,详情看该项目说明
由于该版本涉及旧版数据迁移,建议更新前先到设置-备份与恢复备份歌单
### 不兼容性变更说明 ### 不兼容性变更说明
- 同步功能该功能不支持与PC端v2.2.0之前的版本使用 - 同步功能该功能不支持与PC端v2.2.0之前的版本使用
@ -46,4 +48,4 @@
### 其他 ### 其他
- 升级React Native到v0.71.4并启用新架构 - 升级React Native到v0.71.4

View File

@ -9,6 +9,7 @@ import { COMPONENT_IDS } from '@/config/constant'
import DrawerLayoutFixed from '@/components/common/DrawerLayoutFixed' import DrawerLayoutFixed from '@/components/common/DrawerLayoutFixed'
import { scaleSizeW } from '@/utils/pixelRatio' import { scaleSizeW } from '@/utils/pixelRatio'
import { createStyle } from '@/utils/tools' import { createStyle } from '@/utils/tools'
import { useTheme } from '@/store/theme/hook'
const MAX_WIDTH = scaleSizeW(300) const MAX_WIDTH = scaleSizeW(300)
@ -17,6 +18,7 @@ const Content = () => {
const headerRef = useRef<HeaderType>(null) const headerRef = useRef<HeaderType>(null)
const mainRef = useRef<MainType>(null) const mainRef = useRef<MainType>(null)
const drawerLayoutPosition = useSettingValue('common.drawerLayoutPosition') const drawerLayoutPosition = useSettingValue('common.drawerLayoutPosition')
const theme = useTheme()
const handleChangeId = useCallback((id: SettingScreenIds) => { const handleChangeId = useCallback((id: SettingScreenIds) => {
drawer.current?.closeDrawer() drawer.current?.closeDrawer()
@ -40,6 +42,7 @@ const Content = () => {
// drawerWidth={width} // drawerWidth={width}
drawerPosition={drawerLayoutPosition} drawerPosition={drawerLayoutPosition}
renderNavigationView={navigationView} renderNavigationView={navigationView}
drawerBackgroundColor={theme['c-content-background']}
style={{ elevation: 1 }} style={{ elevation: 1 }}
> >
<Header ref={headerRef} onShowNavBar={() => drawer.current?.openDrawer()} /> <Header ref={headerRef} onShowNavBar={() => drawer.current?.openDrawer()} />