diff --git a/frontend/src/Movie/Index/MovieIndexFooter.css b/frontend/src/Movie/Index/MovieIndexFooter.css index ef0a818bf..5e368cccf 100644 --- a/frontend/src/Movie/Index/MovieIndexFooter.css +++ b/frontend/src/Movie/Index/MovieIndexFooter.css @@ -40,12 +40,20 @@ composes: legendItemColor; background-color: $dangerColor; + + &:global(.colorImpaired) { + background: repeating-linear-gradient(90deg, color($dangerColor shade(5%)), color($dangerColor shade(5%)) 5px, color($dangerColor shade(15%)) 5px, color($dangerColor shade(15%)) 10px); + } } .missingUnmonitored { composes: legendItemColor; background-color: $warningColor; + + &:global(.colorImpaired) { + background: repeating-linear-gradient(45deg, $warningColor, $warningColor 5px, color($warningColor tint(15%)) 5px, color($warningColor tint(15%)) 10px); + } } .statistics { diff --git a/frontend/src/Movie/Index/MovieIndexFooter.js b/frontend/src/Movie/Index/MovieIndexFooter.js index 5975370db..62104df1b 100644 --- a/frontend/src/Movie/Index/MovieIndexFooter.js +++ b/frontend/src/Movie/Index/MovieIndexFooter.js @@ -4,12 +4,14 @@ import formatBytes from 'Utilities/Number/formatBytes'; import DescriptionList from 'Components/DescriptionList/DescriptionList'; import DescriptionListItem from 'Components/DescriptionList/DescriptionListItem'; import styles from './MovieIndexFooter.css'; +import classNames from 'classnames'; class MovieIndexFooter extends PureComponent { render() { const { - movies + movies, + colorImpairedMode } = this.props; const count = movies.length; @@ -50,12 +52,20 @@ class MovieIndexFooter extends PureComponent {
-
+
Missing, Monitored and considered Available
-
+
Missing, not Monitored
@@ -103,7 +113,8 @@ class MovieIndexFooter extends PureComponent { } MovieIndexFooter.propTypes = { - movies: PropTypes.arrayOf(PropTypes.object).isRequired + movies: PropTypes.arrayOf(PropTypes.object).isRequired, + colorImpairedMode: PropTypes.bool.isRequired }; export default MovieIndexFooter; diff --git a/frontend/src/Movie/Index/MovieIndexFooterConnector.js b/frontend/src/Movie/Index/MovieIndexFooterConnector.js index a8ea0c53d..a905f1543 100644 --- a/frontend/src/Movie/Index/MovieIndexFooterConnector.js +++ b/frontend/src/Movie/Index/MovieIndexFooterConnector.js @@ -2,6 +2,7 @@ import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import createDeepEqualSelector from 'Store/Selectors/createDeepEqualSelector'; import createClientSideCollectionSelector from 'Store/Selectors/createClientSideCollectionSelector'; +import createUISettingsSelector from 'Store/Selectors/createUISettingsSelector'; import MovieIndexFooter from './MovieIndexFooter'; function createUnoptimizedSelector() { @@ -39,9 +40,11 @@ function createMoviesSelector() { function createMapStateToProps() { return createSelector( createMoviesSelector(), - (movies) => { + createUISettingsSelector(), + (movies, uiSettings) => { return { - movies + movies, + colorImpairedMode: uiSettings.enableColorImpairedMode }; } );