-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
403 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
src/renderer/components/app/etc/CustomTooltipFixedWidth.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { styled } from '@mui/material'; | ||
import Tooltip, { TooltipProps, tooltipClasses } from '@mui/material/Tooltip'; | ||
|
||
const CustomToolTipFixedWidth = styled( | ||
({ className, ...props }: TooltipProps) => ( | ||
// eslint-disable-next-line react/jsx-props-no-spreading | ||
<Tooltip {...props} classes={{ popper: className }} /> | ||
), | ||
)(({ theme }) => ({ | ||
[`& .${tooltipClasses.tooltip}`]: { | ||
backgroundColor: '#0b0d0e', | ||
color: '#86b9db', // #86b9db | ||
fontSize: theme.typography.pxToRem(12), | ||
border: '1px solid #4383ce', // #4383ce | ||
maxWidth: 600, | ||
}, | ||
})); | ||
|
||
export default CustomToolTipFixedWidth; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import { LinearProgress } from '@mui/material'; | ||
import React from 'react'; | ||
|
||
const MediaProgress = ({ progress, buffer }: any) => { | ||
// MIN = Minimum expected value | ||
// MAX = Maximum expected value | ||
// Function to normalise the values (MIN / MAX could be integrated) | ||
// const normalise = (value) => ((value - MIN) * 100) / (MAX - MIN); | ||
|
||
return ( | ||
<LinearProgress | ||
variant="buffer" | ||
value={progress} | ||
valueBuffer={buffer} | ||
color="info" | ||
sx={{ | ||
border: '1px solid deepskyblue', | ||
width: '75%', | ||
height: '7px', | ||
'& .MuiLinearProgress-dashed': { | ||
animation: 'none', | ||
backgroundImage: 'none', | ||
}, | ||
}} | ||
/> | ||
); | ||
}; | ||
|
||
export default MediaProgress; |
7 changes: 6 additions & 1 deletion
7
src/renderer/components/app/etc/NextAiringEpisodeIndicator.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.