From 22dd20884d22de0c14a15c56590292a6d3e46e12 Mon Sep 17 00:00:00 2001 From: Damien Erambert Date: Fri, 12 Dec 2025 19:30:30 -0800 Subject: [PATCH] Light mode fixes (#1379) * Fix color of text in text buttons in light mode * fix border color of search input in light mode * fix carousel text colors in light mode * fix scroll shadows colors in light mode --- .../feature-carousel.module.css | 5 +++ .../feature-carousel/feature-carousel.tsx | 19 +++++++++- .../item-table-list.module.css | 36 +++++++++++++++++++ .../album-detail-content.module.css | 15 ++++++++ .../components/album-detail-content.tsx | 7 +--- .../shared/components/play-button.module.css | 6 ++++ 6 files changed, 81 insertions(+), 7 deletions(-) diff --git a/src/renderer/components/feature-carousel/feature-carousel.module.css b/src/renderer/components/feature-carousel/feature-carousel.module.css index c05e51160..f62bc2460 100644 --- a/src/renderer/components/feature-carousel/feature-carousel.module.css +++ b/src/renderer/components/feature-carousel/feature-carousel.module.css @@ -181,6 +181,11 @@ text-shadow: 0 0 8px rgb(0 0 0 / 50%); } +.badge { + color: white; + text-shadow: 0 0 8px rgb(0 0 0 / 50%); +} + .nav-arrow-left, .nav-arrow-right { position: absolute; diff --git a/src/renderer/components/feature-carousel/feature-carousel.tsx b/src/renderer/components/feature-carousel/feature-carousel.tsx index 8e72af3d6..8ee228fee 100644 --- a/src/renderer/components/feature-carousel/feature-carousel.tsx +++ b/src/renderer/components/feature-carousel/feature-carousel.tsx @@ -130,6 +130,7 @@ const CarouselItem = ({ album }: CarouselItemProps) => { {album.genres?.slice(0, 2).map((genre) => ( { ))} {album.releaseYear && ( - + {album.releaseYear} )} @@ -248,6 +253,12 @@ export const FeatureCarousel = ({ data, onNearEnd }: FeatureCarouselProps) => { onClick={handlePrevious} radius="50%" size="md" + styles={{ + icon: { + color: 'white', + fill: 'white', + }, + }} variant="subtle" /> { onClick={handleNext} radius="50%" size="md" + styles={{ + icon: { + color: 'white', + fill: 'white', + }, + }} variant="subtle" /> diff --git a/src/renderer/components/item-list/item-table-list/item-table-list.module.css b/src/renderer/components/item-list/item-table-list/item-table-list.module.css index 031cbccbc..d530baa69 100644 --- a/src/renderer/components/item-list/item-table-list/item-table-list.module.css +++ b/src/renderer/components/item-list/item-table-list/item-table-list.module.css @@ -191,6 +191,15 @@ rgb(0 0 0 / 5%) 50%, transparent 100% ); + + @mixin light { + background: linear-gradient( + to bottom, + var(--theme-colors-background) 0%, + alpha(var(--theme-colors-background), 0.05) 50%, + transparent 100% + ); + } } .item-table-left-scroll-shadow { @@ -207,6 +216,15 @@ rgb(0 0 0 / 5%) 50%, transparent 100% ); + + @mixin light { + background: linear-gradient( + to right, + var(--theme-colors-background) 0%, + alpha(var(--theme-colors-background), 0.05) 50%, + transparent 100% + ); + } } .item-table-right-scroll-shadow { @@ -223,6 +241,15 @@ rgb(0 0 0 / 5%) 50%, transparent 100% ); + + @mixin light { + background: linear-gradient( + to left, + var(--theme-colors-background) 0%, + alpha(var(--theme-colors-background), 0.05) 50%, + transparent 100% + ); + } } .item-table-top-scroll-shadow { @@ -239,4 +266,13 @@ rgb(0 0 0 / 5%) 50%, transparent 100% ); + + @mixin light { + background: linear-gradient( + to bottom, + var(--theme-colors-background) 0%, + alpha(var(--theme-colors-background), 0.05) 50%, + transparent 100% + ); + } } diff --git a/src/renderer/features/albums/components/album-detail-content.module.css b/src/renderer/features/albums/components/album-detail-content.module.css index 53618f248..149434de4 100644 --- a/src/renderer/features/albums/components/album-detail-content.module.css +++ b/src/renderer/features/albums/components/album-detail-content.module.css @@ -38,6 +38,21 @@ overflow-x: hidden; } +.search-text-input { + background: transparent; + border-color: rgb(255 255 255 / 5%); + border-style: solid; + border-width: 1px; + + @mixin light { + border-color: rgb(0 0 0 / 5%); + } + + @mixin dark { + border-color: rgb(255 255 255 / 5%); + } +} + @container (min-width: $mantine-breakpoint-lg) { .content-layout { grid-template-areas: 'songs metadata'; diff --git a/src/renderer/features/albums/components/album-detail-content.tsx b/src/renderer/features/albums/components/album-detail-content.tsx index 5c4a5eb53..798398806 100644 --- a/src/renderer/features/albums/components/album-detail-content.tsx +++ b/src/renderer/features/albums/components/album-detail-content.tsx @@ -622,6 +622,7 @@ const AlbumDetailSongsTable = ({ songs }: AlbumDetailSongsTableProps) => { } onChange={(e) => setSearchTerm(e.target.value)} @@ -638,12 +639,6 @@ const AlbumDetailSongsTable = ({ songs }: AlbumDetailSongsTableProps) => { /> ) : null } - styles={{ - input: { - background: 'transparent', - border: '1px solid rgba(255, 255, 255, 0.05)', - }, - }} value={searchTerm} />