From 2aa9d8afb5dd44d2ed0c2697e7aef104256fd30d Mon Sep 17 00:00:00 2001 From: MathieuG-P Date: Wed, 28 Dec 2022 22:30:28 +0100 Subject: [PATCH] implement light theme for maps-management --- .../filter-panel.component.tsx | 2 +- .../map-item.component.tsx | 16 ++++++++-------- .../maps-playlists-panel.component.tsx | 18 +++++++++--------- .../download-maps-modal.component.tsx | 10 +++++----- 4 files changed, 23 insertions(+), 23 deletions(-) diff --git a/src/renderer/components/maps-mangement-components/filter-panel.component.tsx b/src/renderer/components/maps-mangement-components/filter-panel.component.tsx index 3c3e72a4..647da87d 100644 --- a/src/renderer/components/maps-mangement-components/filter-panel.component.tsx +++ b/src/renderer/components/maps-mangement-components/filter-panel.component.tsx @@ -135,7 +135,7 @@ export function FilterPanel({className, ref, playlist = false, filter, onChange} } return !playlist ? ( - +
diff --git a/src/renderer/components/maps-mangement-components/map-item.component.tsx b/src/renderer/components/maps-mangement-components/map-item.component.tsx index ff3da503..23bb0116 100644 --- a/src/renderer/components/maps-mangement-components/map-item.component.tsx +++ b/src/renderer/components/maps-mangement-components/map-item.component.tsx @@ -151,7 +151,7 @@ export const MapItem = memo(({hash, title, autor, songAutor, coverUrl, songUrl, {(hovered || selected) && onSelected && } {(diffsPanelHovered || bottomBarHovered) && ( - + {Array.from(diffs.entries()).map(([charac, diffSet]) => (
    {diffSet.map(({type, name, stars}) => ( @@ -219,17 +219,17 @@ export const MapItem = memo(({hash, title, autor, songAutor, coverUrl, songUrl,
-
+
- {onDelete && !downloading && {e.stopPropagation(); onDelete(callBackParam)}}/>} - {onDownload && !downloading && {e.stopPropagation(); onDownload(callBackParam)}}/>} - {onCancelDownload && !downloading && {e.stopPropagation(); onCancelDownload(callBackParam)}}/>} - {downloading && } - {previewUrl && {e.stopPropagation(); openPreview()}}/>} - {mapId && {e.stopPropagation(); copyBsr()}}/>} + {onDelete && !downloading && {e.stopPropagation(); onDelete(callBackParam)}}/>} + {onDownload && !downloading && {e.stopPropagation(); onDownload(callBackParam)}}/>} + {onCancelDownload && !downloading && {e.stopPropagation(); onCancelDownload(callBackParam)}}/>} + {downloading && } + {previewUrl && {e.stopPropagation(); openPreview()}}/>} + {mapId && {e.stopPropagation(); copyBsr()}}/>}
diff --git a/src/renderer/components/maps-mangement-components/maps-playlists-panel.component.tsx b/src/renderer/components/maps-mangement-components/maps-playlists-panel.component.tsx index 06e67659..d0170256 100644 --- a/src/renderer/components/maps-mangement-components/maps-playlists-panel.component.tsx +++ b/src/renderer/components/maps-mangement-components/maps-playlists-panel.component.tsx @@ -78,12 +78,12 @@ export function MapsPlaylistsPanel({version}: Props) { return (
  • - {text} + {text} {index === 0 &&(
    {isOnline && ( {e.stopPropagation(); onClickAdd(index)}}> - + @@ -92,7 +92,7 @@ export function MapsPlaylistsPanel({version}: Props) { )} {(!!version) && ( {e.stopPropagation(); onClickLink(index)}}> - + )} @@ -118,16 +118,16 @@ export function MapsPlaylistsPanel({version}: Props) { return (
    -