mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-14 00:53:57 -07:00
parent
3cc1e7bb0f
commit
c7d17598e2
7 changed files with 27 additions and 6 deletions
|
@ -58,6 +58,10 @@
|
||||||
composes: downloaded from 'Calendar/Events/CalendarEvent.css';
|
composes: downloaded from 'Calendar/Events/CalendarEvent.css';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.partial {
|
||||||
|
composes: partial from 'Calendar/Events/CalendarEvent.css';
|
||||||
|
}
|
||||||
|
|
||||||
.downloading {
|
.downloading {
|
||||||
composes: downloading from 'Calendar/Events/CalendarEvent.css';
|
composes: downloading from 'Calendar/Events/CalendarEvent.css';
|
||||||
}
|
}
|
||||||
|
|
|
@ -41,6 +41,10 @@
|
||||||
border-left-color: $successColor;
|
border-left-color: $successColor;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.partial {
|
||||||
|
border-left-color: $yellow;
|
||||||
|
}
|
||||||
|
|
||||||
.downloading {
|
.downloading {
|
||||||
border-left-color: $purple;
|
border-left-color: $purple;
|
||||||
}
|
}
|
||||||
|
@ -62,7 +66,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.unreleased {
|
.unreleased {
|
||||||
border-left-color: $primaryColor;
|
border-left-color: $blue;
|
||||||
|
|
||||||
&:global(.colorImpaired) {
|
&:global(.colorImpaired) {
|
||||||
background: repeating-linear-gradient(90deg, transparent, transparent 5px, #eee 5px, #eee 10px);
|
background: repeating-linear-gradient(90deg, transparent, transparent 5px, #eee 5px, #eee 10px);
|
||||||
|
|
|
@ -122,9 +122,6 @@ CalendarEvent.propTypes = {
|
||||||
title: PropTypes.string.isRequired,
|
title: PropTypes.string.isRequired,
|
||||||
foreignAlbumId: PropTypes.string.isRequired,
|
foreignAlbumId: PropTypes.string.isRequired,
|
||||||
statistics: PropTypes.object.isRequired,
|
statistics: PropTypes.object.isRequired,
|
||||||
// seasonNumber: PropTypes.number.isRequired,
|
|
||||||
// episodeNumber: PropTypes.number.isRequired,
|
|
||||||
// absoluteEpisodeNumber: PropTypes.number,
|
|
||||||
releaseDate: PropTypes.string.isRequired,
|
releaseDate: PropTypes.string.isRequired,
|
||||||
monitored: PropTypes.bool.isRequired,
|
monitored: PropTypes.bool.isRequired,
|
||||||
grabbed: PropTypes.bool,
|
grabbed: PropTypes.bool,
|
||||||
|
|
|
@ -28,8 +28,8 @@ function Legend({ colorImpairedMode }) {
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<LegendItem
|
<LegendItem
|
||||||
status="missing"
|
status="partial"
|
||||||
tooltip="Track file has not been found"
|
tooltip="Album was partially downloaded"
|
||||||
colorImpairedMode={colorImpairedMode}
|
colorImpairedMode={colorImpairedMode}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
@ -40,6 +40,12 @@ function Legend({ colorImpairedMode }) {
|
||||||
tooltip="Album is unmonitored"
|
tooltip="Album is unmonitored"
|
||||||
colorImpairedMode={colorImpairedMode}
|
colorImpairedMode={colorImpairedMode}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
<LegendItem
|
||||||
|
status="missing"
|
||||||
|
tooltip="Track file has not been found"
|
||||||
|
colorImpairedMode={colorImpairedMode}
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|
|
@ -16,6 +16,10 @@
|
||||||
composes: downloaded from 'Calendar/Events/CalendarEvent.css';
|
composes: downloaded from 'Calendar/Events/CalendarEvent.css';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.partial {
|
||||||
|
composes: partial from 'Calendar/Events/CalendarEvent.css';
|
||||||
|
}
|
||||||
|
|
||||||
.downloading {
|
.downloading {
|
||||||
composes: downloading from 'Calendar/Events/CalendarEvent.css';
|
composes: downloading from 'Calendar/Events/CalendarEvent.css';
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,6 +8,10 @@ function getStatusStyle(episodeNumber, downloading, startTime, isMonitored, perc
|
||||||
return 'downloaded';
|
return 'downloaded';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (percentOfTracks > 0) {
|
||||||
|
return 'partial';
|
||||||
|
}
|
||||||
|
|
||||||
if (downloading) {
|
if (downloading) {
|
||||||
return 'downloading';
|
return 'downloading';
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,6 +6,8 @@ module.exports = {
|
||||||
dimColor: '#555',
|
dimColor: '#555',
|
||||||
black: '#000',
|
black: '#000',
|
||||||
white: '#fff',
|
white: '#fff',
|
||||||
|
blue: '#06f',
|
||||||
|
yellow: '#FFA500',
|
||||||
primaryColor: '#0b8750',
|
primaryColor: '#0b8750',
|
||||||
selectedColor: '#f9be03',
|
selectedColor: '#f9be03',
|
||||||
successColor: '#27c24c',
|
successColor: '#27c24c',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue