Skip to content

Visualize Your Ideas With Code

refactor(ui): improve sidebar icons (#846)

Jacobdf3e59429ce2
diff --git a/packages/ui/src/components/icons/Docs.tsx b/packages/ui/src/components/icons/Docs.tsx
deleted file mode 100644
index 9ad16cfa..00000000
--- a/packages/ui/src/components/icons/Docs.tsx
+++ /dev/null
@@ -1,7 +0,0 @@
-export function Docs() {
- return (
- <svg viewBox="0 0 24 24" fill="currentColor">
- <path d="M11 18h2v-2h-2v2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4-4-4z" />
- </svg>
- );
-}
diff --git a/packages/ui/src/components/icons/HourglassBottom.tsx b/packages/ui/src/components/icons/HourglassBottom.tsx
new file mode 100644
index 00000000..69f13089
--- /dev/null
+++ b/packages/ui/src/components/icons/HourglassBottom.tsx
@@ -0,0 +1,7 @@
+export function HourglassBottom() {
+ return (
+ <svg viewBox="0 0 24 24" fill="currentColor">
+ <path d="M18,21l-0.01,0.01l0.01,-0l0,0.99l-12,0l0,-0.99l0.01,0l-0.01,-0.01l0,-4.99l0.01,0l-0.01,-0.01l4,-4l-4,-3.99l0.01,-0.01l-0.01,0l0,-6l12,0l0,6l-0.01,0l0.01,0.01l-4,3.99l4,4l-0.01,0.01l0.01,0l0,4.99Zm-10,-2l4,-4l4,4l0,-2.5l-4,-4l-4,4l0,2.5Zm1.5,1l5,0l-2.5,-2.5l-2.5,2.5Zm2.5,-8.5l4,-4l0,-3.5l-8,0l0,3.5l4,4Z" />
+ </svg>
+ );
+}
diff --git a/packages/ui/src/components/icons/School.tsx b/packages/ui/src/components/icons/School.tsx
new file mode 100644
index 00000000..deba62c0
--- /dev/null
+++ b/packages/ui/src/components/icons/School.tsx
@@ -0,0 +1,7 @@
+export function School() {
+ return (
+ <svg viewBox="0 0 24 24" fill="currentColor">
+ <path d="M12 3 1 9l4 2.18v6L12 21l7-3.82v-6l2-1.09V17h2V9L12 3zm6.82 6L12 12.72 5.18 9 12 5.28 18.82 9zM17 15.99l-5 2.73-5-2.73v-3.72L12 15l5-2.73v3.72z" />
+ </svg>
+ );
+}
diff --git a/packages/ui/src/components/icons/ViewTimeline.tsx b/packages/ui/src/components/icons/ViewTimeline.tsx
deleted file mode 100644
index 6aab7f48..00000000
--- a/packages/ui/src/components/icons/ViewTimeline.tsx
+++ /dev/null
@@ -1,10 +0,0 @@
-export function ViewTimeline() {
- return (
- <svg viewBox="0 0 24 24" fill="currentColor">
- <rect height="2" width="6" x="6" y="15" />
- <rect height="2" width="6" x="12" y="7" />
- <rect height="2" width="6" x="9" y="11" />
- <path d="M19,3H5C3.9,3,3,3.9,3,5v14c0,1.1,0.9,2,2,2h14c1.1,0,2-0.9,2-2V5C21,3.9,20.1,3,19,3z M19,19H5V5h14V19z" />
- </svg>
- );
-}
diff --git a/packages/ui/src/components/icons/index.ts b/packages/ui/src/components/icons/index.ts
index 6ec97bb2..0fdd7abd 100644
--- a/packages/ui/src/components/icons/index.ts
+++ b/packages/ui/src/components/icons/index.ts
@@ -7,7 +7,7 @@ export * from './DragIndicator';
export * from './Fullscreen';
export * from './Grid';
export * from './Colorize';
-export * from './Docs';
+export * from './School';
export * from './Locate';
export * from './MotionCanvas';
export * from './Movie';
@@ -27,7 +27,7 @@ export * from './Tune';
export * from './UnfoldMore';
export * from './Videocam';
export * from './VideoSettings';
-export * from './ViewTimeline';
+export * from './HourglassBottom';
export * from './VolumeOff';
export * from './VolumeOn';
export * from './Warning';
diff --git a/packages/ui/src/components/layout/Navigation.tsx b/packages/ui/src/components/layout/Navigation.tsx
index 9fcbcd30..c069d1b7 100644
--- a/packages/ui/src/components/layout/Navigation.tsx
+++ b/packages/ui/src/components/layout/Navigation.tsx
@@ -7,12 +7,12 @@ import {Badge, Space, Tab, TabGroup, TabLink, Tabs} from '../tabs';
import {
AccountTree,
Bug,
- Docs,
+ HourglassBottom,
MotionCanvas,
Movie,
+ School,
Settings,
Videocam,
- ViewTimeline,
} from '../icons';
import styles from './Navigation.module.scss';
@@ -77,7 +77,7 @@ export function Navigation() {
<AccountTree />
</Tab>
<Tab title="Thread Debugger" id="threads-tab" tab={EditorPanel.Threads}>
- <ViewTimeline />
+ <HourglassBottom />
</Tab>
<Tab
title={errorCount > 0 ? `Console (${errorCount})` : 'Console'}
@@ -102,7 +102,7 @@ export function Navigation() {
href="https://motioncanvas.io/docs/"
target="_blank"
>
- <Docs />
+ <School />
</TabLink>
<TabGroup tab={BottomPanel.get()} setTab={BottomPanel.set}>
<Tab title="Timeline" id="timeline-tab" tab={EditorPanel.Timeline}>