π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
fix convert button and livePhoto btn having transparent color
Abhinava8fba0cac142
diff --git a/apps/photos/src/components/PhotoViewer/index.tsx b/apps/photos/src/components/PhotoViewer/index.tsxindex 6f76a6a6de..6278f9d889 100644--- a/apps/photos/src/components/PhotoViewer/index.tsx+++ b/apps/photos/src/components/PhotoViewer/index.tsx@@ -25,7 +25,7 @@ import {defaultLivePhotoDefaultOptions,photoSwipeV4Events,} from 'constants/photoViewer';-import { LivePhotoBtn } from './styledComponents/LivePhotoBtn';+import { LivePhotoBtnContainer } from './styledComponents/LivePhotoBtn';import DownloadIcon from '@mui/icons-material/Download';import InfoIcon from '@mui/icons-material/InfoOutlined';import FavoriteIcon from '@mui/icons-material/FavoriteRounded';@@ -34,7 +34,7 @@ import ChevronRight from '@mui/icons-material/ChevronRight';import DeleteIcon from '@mui/icons-material/Delete';import { trashFiles } from 'services/fileService';import { getTrashFileMessage } from 'utils/ui';-import { Box, styled } from '@mui/material';+import { Box, Button, styled } from '@mui/material';import { addLocalLog } from 'utils/logging';import ContentCopy from '@mui/icons-material/ContentCopy';import ChevronLeft from '@mui/icons-material/ChevronLeft';@@ -43,7 +43,7 @@ import { getParsedExifData } from 'services/upload/exifService';import { getFileType } from 'services/typeDetectionService';import { ConversionFailedNotification } from './styledComponents/ConversionFailedNotification';import { GalleryContext } from 'pages/gallery';-import { ConvertBtn } from './styledComponents/ConvertBtn';+import { ConvertBtnContainer } from './styledComponents/ConvertBtn';import downloadManager from 'services/downloadManager';import publicCollectionDownloadManager from 'services/publicCollectionDownloadManager';import CircularProgressWithLabel from './styledComponents/CircularProgressWithLabel';@@ -618,15 +618,18 @@ function PhotoViewer(props: Iprops) {<div className="pswp__bg" /><div className="pswp__scroll-wrap">{livePhotoBtnOptions.visible && (- <LivePhotoBtn- onClick={livePhotoBtnOptions.click}- onMouseEnter={livePhotoBtnOptions.show}- onMouseLeave={livePhotoBtnOptions.hide}- disabled={livePhotoBtnOptions.loading}>- <FlexWrapper gap={'4px'}>- {<AlbumOutlined />} {t('LIVE')}- </FlexWrapper>- </LivePhotoBtn>+ <LivePhotoBtnContainer>+ <Button+ color="secondary"+ onClick={livePhotoBtnOptions.click}+ onMouseEnter={livePhotoBtnOptions.show}+ onMouseLeave={livePhotoBtnOptions.hide}+ disabled={livePhotoBtnOptions.loading}>+ <FlexWrapper gap={'4px'}>+ {<AlbumOutlined />} {t('LIVE')}+ </FlexWrapper>+ </Button>+ </LivePhotoBtnContainer>)}<ConversionFailedNotificationopen={conversionFailedNotificationOpen}@@ -636,9 +639,13 @@ function PhotoViewer(props: Iprops) {onClick={() => downloadFileHelper(photoSwipe.currItem)}/>{showConvertBtn && (- <ConvertBtn onClick={triggerManualConvert}>- {t('CONVERT')}- </ConvertBtn>+ <ConvertBtnContainer>+ <Button+ color="secondary"+ onClick={triggerManualConvert}>+ {t('CONVERT')}+ </Button>+ </ConvertBtnContainer>)}<Boxdiff --git a/apps/photos/src/components/PhotoViewer/styledComponents/ConvertBtn.tsx b/apps/photos/src/components/PhotoViewer/styledComponents/ConvertBtn.tsxindex ca31c30586..ce078919cc 100644--- a/apps/photos/src/components/PhotoViewer/styledComponents/ConvertBtn.tsx+++ b/apps/photos/src/components/PhotoViewer/styledComponents/ConvertBtn.tsx@@ -1,14 +1,9 @@-import { Button, ButtonProps, styled } from '@mui/material';-export const ConvertBtn = styled((props: ButtonProps) => (- <Button color="secondary" {...props} />-))`+import { Paper, styled } from '@mui/material';++export const ConvertBtnContainer = styled(Paper)`+ border-radius: 4px;position: absolute;bottom: 10vh;left: 2vh;- outline: none;- border: none;- border-radius: 10%;z-index: 10;- cursor: ${(props) => (props.disabled ? 'not-allowed' : 'pointer')};- }`;diff --git a/apps/photos/src/components/PhotoViewer/styledComponents/LivePhotoBtn.tsx b/apps/photos/src/components/PhotoViewer/styledComponents/LivePhotoBtn.tsxindex e1d0c393f7..c8624ee973 100644--- a/apps/photos/src/components/PhotoViewer/styledComponents/LivePhotoBtn.tsx+++ b/apps/photos/src/components/PhotoViewer/styledComponents/LivePhotoBtn.tsx@@ -1,14 +1,10 @@-import { Button, ButtonProps, styled } from '@mui/material';-export const LivePhotoBtn = styled((props: ButtonProps) => (- <Button color="secondary" {...props} />-))`+import { Paper } from '@mui/material';+import { styled } from '@mui/material/styles';++export const LivePhotoBtnContainer = styled(Paper)`+ border-radius: 4px;position: absolute;bottom: 10vh;right: 6vh;- outline: none;- border: none;- border-radius: 10%;z-index: 10;- cursor: ${(props) => (props.disabled ? 'not-allowed' : 'pointer')};- }`;