Skip to content

Commit b674e2d

Browse files
committed
wip: add close propterties icon (sketch)
1 parent 6470d43 commit b674e2d

File tree

3 files changed

+20
-10
lines changed

3 files changed

+20
-10
lines changed

packages/webui/src/client/lib/ui/icons/useredits.tsx

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,18 @@ export function UserEditsIcon(): JSX.Element {
1010
</svg>
1111
)
1212
}
13+
14+
export function UserEditsCloseIcon(): JSX.Element {
15+
return (
16+
<svg width="25" height="28" viewBox="0 0 25 28" fill="none" xmlns="http://www.w3.org/2000/svg">
17+
<path
18+
d="M11 0C14 0 16 2.5 16 5H20V9C22.5 9 25 11.5 25 14C25 16.5 22.5 19 20 19V23H16C16 25.5 13.5 28 11 28C7.5 28 6 25.5 6 23H0V17H2C3.5 17 5 15.5 5 14C5 12.5 3.5 11 2 11H0V5H6C6 2.5 8 0 11 0ZM11 2C9 2 8 3.80859 8 5V7H2V9C4.5 9 7 11.5 7 14C7 16.5 4.5 19 2 19V21H8V23C8 24.5 9.5 26 11 26C12.5 26 14 24.5 14 23V21H18V17H20C21.5 17 23 15.5 23 14C23 12.5 21.5 11 20 11H18V7H14V5C14 3.80859 13 2 11 2Z"
19+
fill="black"
20+
/>
21+
<path
22+
d="M17.8 5.6L19.4 7.2L13.6 14L19.4 20.8L17.8 22.4L12 15.6L6.2 22.4L4.6 20.8L10.4 14L4.6 7.2L6.2 5.6L12 12.4L17.8 5.6Z"
23+
fill="white"
24+
/>
25+
</svg>
26+
)
27+
}
Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,11 @@
11
@import '_variables';
22

33
.element-selected {
4-
border-radius: 0.1px;
5-
border-width: 1px;
6-
border-color: #171717;
7-
border-style: solid;
8-
animation: blinker 1s linear infinite;
4+
animation: blinker 1.5s linear infinite;
95

106
@keyframes blinker {
11-
30% {
12-
opacity: 0.8;
13-
background-color: rgb(13, 13, 13);
7+
20% {
8+
opacity: 0.2;
149
}
1510
}
1611
}

packages/webui/src/client/ui/RundownView/RundownRightHandControls.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import { RundownPlaylistId } from '@sofie-automation/corelib/dist/dataModel/Ids'
2525
import { MediaStatusPopUp } from './MediaStatusPopUp'
2626
import { MediaStatusIcon } from '../../lib/ui/icons/mediaStatus'
2727
import { SelectedElementsContext } from './SelectedElementsContext'
28-
import { UserEditsIcon } from '../../lib/ui/icons/useredits'
28+
import { UserEditsCloseIcon, UserEditsIcon } from '../../lib/ui/icons/useredits'
2929
import { CollapseChevrons } from '../../lib/ui/icons/notifications'
3030

3131
interface IProps {
@@ -159,7 +159,7 @@ export function RundownRightHandControls(props: Readonly<IProps>): JSX.Element {
159159
<SelectedElementsContext.Consumer>
160160
{(context) => (
161161
<button onClick={() => context.clearSelections()} className="status-bar__controls__button">
162-
{context.listSelectedElements().length === 0 ? <UserEditsIcon /> : <CollapseChevrons />}
162+
{context.listSelectedElements().length === 0 ? <UserEditsIcon /> : <UserEditsCloseIcon />}
163163
</button>
164164
)}
165165
</SelectedElementsContext.Consumer>

0 commit comments

Comments
 (0)