Skip to content

Commit

Permalink
style: user feedback tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
cpvalente committed Sep 2, 2023
1 parent b869fa5 commit ca9e49a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@
grid-area: playback;
font-size: 2rem;
color: $gray-700;

&.active {
color: $ui-white;
}
}

.timeNow {
Expand Down
5 changes: 4 additions & 1 deletion apps/client/src/features/operator/status-bar/StatusBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { millisToString } from 'ontime-utils';

import PlaybackIcon from '../../../common/components/playback-icon/PlaybackIcon';
import { useTimer } from '../../../common/hooks/useSocket';
import { cx } from '../../../common/utils/styleUtils';
import { formatTime } from '../../../common/utils/time';

import styles from './StatusBar.module.scss';
Expand Down Expand Up @@ -58,7 +59,9 @@ export default function StatusBar(props: StatusBarProps) {
const elapsedTime = millisToString(timer.elapsed);

const PlaybackIconComponent = useMemo(() => {
return <PlaybackIcon state={playback} skipTooltip className={styles.playbackIcon} />;
const isPlaying = playback === Playback.Play || playback === Playback.Roll;
const classes = cx([styles.playbackIcon, isPlaying ? styles.active : null]);
return <PlaybackIcon state={playback} skipTooltip className={classes} />;
}, [playback]);

return (
Expand Down

0 comments on commit ca9e49a

Please sign in to comment.