File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed
src/components/panels/types Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,8 @@ import { hidePanel, showPanel } from "../usePanel";
1212import PanelHeader from "../base/panelHeader" ;
1313import MusicSheet , { useSheetsBase } from "@/core/musicSheet" ;
1414import { useI18N } from "@/core/i18n" ;
15+ import useColors from "@/hooks/useColors" ;
16+ import Color from "color" ;
1517
1618interface IAddToMusicSheetProps {
1719 musicItem : IMusic . IMusicItem | IMusic . IMusicItem [ ] ;
@@ -25,6 +27,7 @@ export default function AddToMusicSheet(props: IAddToMusicSheetProps) {
2527 const { musicItem = [ ] , newSheetDefaultName } = props ?? { } ;
2628 const safeAreaInsets = useSafeAreaInsets ( ) ;
2729 const { t } = useI18N ( ) ;
30+ const colors = useColors ( ) ;
2831
2932 return (
3033 < PanelBase
@@ -75,9 +78,9 @@ export default function AddToMusicSheet(props: IAddToMusicSheetProps) {
7578 } ,
7679 } ) ;
7780 } } >
78- < ListItem . ListItemImage
79- fallbackImg = { ImgAsset . add }
80- />
81+ < ListItem . ListItemIcon icon = 'plus' containerStyle = { [ style . addIconContainer , {
82+ backgroundColor : Color ( colors . text ) . alpha ( 0.1 ) . string ( ) ,
83+ } ] } />
8184 < ListItem . Content title = { t ( "panel.addToMusicSheet.newMusicSheet" ) } />
8285 </ ListItem >
8386 }
@@ -128,4 +131,9 @@ const style = StyleSheet.create({
128131 marginTop : rpx ( 36 ) ,
129132 marginBottom : rpx ( 36 ) ,
130133 } ,
134+ addIconContainer : {
135+ width : rpx ( 80 ) ,
136+ height : rpx ( 80 ) ,
137+ borderRadius : rpx ( 16 ) ,
138+ } ,
131139} ) ;
You can’t perform that action at this time.
0 commit comments