{
this.setEdgelessTool({
type: 'frameNavigator',
});
}}
>
- ${FrameNavigatorIcon}
+ ${PresentationIcon()}
`;
}
diff --git a/blocksuite/blocks/src/root-block/edgeless/components/toolbar/presentation-toolbar.ts b/blocksuite/blocks/src/root-block/edgeless/components/toolbar/presentation-toolbar.ts
index 17fb3d3d30..95fb770b39 100644
--- a/blocksuite/blocks/src/root-block/edgeless/components/toolbar/presentation-toolbar.ts
+++ b/blocksuite/blocks/src/root-block/edgeless/components/toolbar/presentation-toolbar.ts
@@ -1,15 +1,15 @@
-import {
- FrameNavigatorNextIcon,
- FrameNavigatorPrevIcon,
- NavigatorExitFullScreenIcon,
- NavigatorFullScreenIcon,
- StopAIIcon,
-} from '@blocksuite/affine-components/icons';
import { toast } from '@blocksuite/affine-components/toast';
import type { FrameBlockModel } from '@blocksuite/affine-model';
import { EditPropsStore } from '@blocksuite/affine-shared/services';
import type { GfxToolsFullOptionValue } from '@blocksuite/block-std/gfx';
import { Bound, clamp, SignalWatcher } from '@blocksuite/global/utils';
+import {
+ EndPointArrowIcon,
+ ExpandCloseIcon,
+ ExpandFullIcon,
+ StartPointArrowIcon,
+ StopAiIcon,
+} from '@blocksuite/icons/lit';
import { effect } from '@preact/signals-core';
import { cssVar } from '@toeverything/theme';
import { css, html, LitElement, nothing, type PropertyValues } from 'lit';
@@ -83,6 +83,9 @@ export class PresentationToolbar extends EdgelessToolbarToolMixin(
svg {
display: block;
+ width: 24px;
+ height: 24px;
+ color: white;
}
}
.edgeless-frame-navigator-stop::before {
@@ -325,9 +328,10 @@ export class PresentationToolbar extends EdgelessToolbarToolMixin(
@@ -350,8 +354,9 @@ export class PresentationToolbar extends EdgelessToolbarToolMixin(
.tooltip=${'Next'}
@click=${() => this._nextFrame()}
.iconContainerPadding=${0}
+ .iconSize=${'24px'}
>
- ${FrameNavigatorNextIcon}
+ ${EndPointArrowIcon()}
@@ -364,10 +369,9 @@ export class PresentationToolbar extends EdgelessToolbarToolMixin(
@click=${() => this._toggleFullScreen()}
.iconContainerPadding=${0}
.iconContainerWidth=${'24px'}
+ .iconSize=${'24px'}
>
- ${document.fullscreenElement
- ? NavigatorExitFullScreenIcon
- : NavigatorFullScreenIcon}
+ ${document.fullscreenElement ? ExpandCloseIcon() : ExpandFullIcon()}
${this.dense
@@ -399,7 +403,7 @@ export class PresentationToolbar extends EdgelessToolbarToolMixin(
@click=${this._exitPresentation}
style="background: ${cssVar('warningColor')}"
>
- ${StopAIIcon}
+ ${StopAiIcon()}
`;
}
diff --git a/blocksuite/blocks/src/root-block/edgeless/components/toolbar/shape/icons.ts b/blocksuite/blocks/src/root-block/edgeless/components/toolbar/shape/icons.ts
new file mode 100644
index 0000000000..348cdd327c
--- /dev/null
+++ b/blocksuite/blocks/src/root-block/edgeless/components/toolbar/shape/icons.ts
@@ -0,0 +1,255 @@
+import { html } from 'lit';
+
+export const ScribbledSquareIcon = html`
`;
+
+export const ScribbledEllipseIcon = html`
`;
+
+export const ScribbledDiamondIcon = html`
`;
+
+export const ScribbledTriangleIcon = html`
`;
+
+export const ScribbledRoundedRectangleIcon = html`
`;
+
+export const ellipseSvg = html`
`;
+
+export const triangleSvg = html`
`;
+
+export const roundedSvg = html`
`;
diff --git a/blocksuite/blocks/src/root-block/edgeless/components/toolbar/shape/shape-draggable.ts b/blocksuite/blocks/src/root-block/edgeless/components/toolbar/shape/shape-draggable.ts
index 8e57c18676..6dd1f86a82 100644
--- a/blocksuite/blocks/src/root-block/edgeless/components/toolbar/shape/shape-draggable.ts
+++ b/blocksuite/blocks/src/root-block/edgeless/components/toolbar/shape/shape-draggable.ts
@@ -2,11 +2,6 @@ import {
CanvasElementType,
EdgelessCRUDIdentifier,
} from '@blocksuite/affine-block-surface';
-import {
- ellipseSvg,
- roundedSvg,
- triangleSvg,
-} from '@blocksuite/affine-components/icons';
import {
getShapeRadius,
getShapeType,
@@ -27,6 +22,7 @@ import { styleMap } from 'lit/directives/style-map.js';
import { ShapeTool } from '../../../gfx-tool/shape-tool.js';
import { EdgelessDraggableElementController } from '../common/draggable/draggable-element.controller.js';
import { EdgelessToolbarToolMixin } from '../mixins/tool.mixin.js';
+import { ellipseSvg, roundedSvg, triangleSvg } from './icons.js';
import type { DraggableShape } from './utils.js';
import { buildVariablesObject } from './utils.js';
diff --git a/blocksuite/blocks/src/root-block/edgeless/components/toolbar/shape/shape-menu-config.ts b/blocksuite/blocks/src/root-block/edgeless/components/toolbar/shape/shape-menu-config.ts
index 0f1caf0d29..a4b57ea0ad 100644
--- a/blocksuite/blocks/src/root-block/edgeless/components/toolbar/shape/shape-menu-config.ts
+++ b/blocksuite/blocks/src/root-block/edgeless/components/toolbar/shape/shape-menu-config.ts
@@ -1,19 +1,21 @@
+import { ShapeType } from '@blocksuite/affine-model';
import {
DiamondIcon,
EllipseIcon,
RoundedRectangleIcon,
+ SquareIcon,
+ TriangleIcon,
+} from '@blocksuite/icons/lit';
+import type { TemplateResult } from 'lit';
+
+import type { ShapeToolOption } from '../../../gfx-tool/shape-tool';
+import {
ScribbledDiamondIcon,
ScribbledEllipseIcon,
ScribbledRoundedRectangleIcon,
ScribbledSquareIcon,
ScribbledTriangleIcon,
- SquareIcon,
- TriangleIcon,
-} from '@blocksuite/affine-components/icons';
-import { ShapeType } from '@blocksuite/affine-model';
-import type { TemplateResult } from 'lit';
-
-import type { ShapeToolOption } from '../../../gfx-tool/shape-tool.js';
+} from './icons';
type Config = {
name: ShapeToolOption['shapeName'];
@@ -26,35 +28,35 @@ type Config = {
export const ShapeComponentConfig: Config[] = [
{
name: ShapeType.Rect,
- generalIcon: SquareIcon,
+ generalIcon: SquareIcon(),
scribbledIcon: ScribbledSquareIcon,
tooltip: 'Square',
disabled: false,
},
{
name: ShapeType.Ellipse,
- generalIcon: EllipseIcon,
+ generalIcon: EllipseIcon(),
scribbledIcon: ScribbledEllipseIcon,
tooltip: 'Ellipse',
disabled: false,
},
{
name: ShapeType.Diamond,
- generalIcon: DiamondIcon,
+ generalIcon: DiamondIcon(),
scribbledIcon: ScribbledDiamondIcon,
tooltip: 'Diamond',
disabled: false,
},
{
name: ShapeType.Triangle,
- generalIcon: TriangleIcon,
+ generalIcon: TriangleIcon(),
scribbledIcon: ScribbledTriangleIcon,
tooltip: 'Triangle',
disabled: false,
},
{
name: 'roundedRect',
- generalIcon: RoundedRectangleIcon,
+ generalIcon: RoundedRectangleIcon(),
scribbledIcon: ScribbledRoundedRectangleIcon,
tooltip: 'Rounded rectangle',
disabled: false,
diff --git a/blocksuite/blocks/src/root-block/edgeless/components/toolbar/shape/shape-menu.ts b/blocksuite/blocks/src/root-block/edgeless/components/toolbar/shape/shape-menu.ts
index 269ad7fc04..365de426a1 100644
--- a/blocksuite/blocks/src/root-block/edgeless/components/toolbar/shape/shape-menu.ts
+++ b/blocksuite/blocks/src/root-block/edgeless/components/toolbar/shape/shape-menu.ts
@@ -1,7 +1,3 @@
-import {
- GeneralStyleIcon,
- ScribbledStyleIcon,
-} from '@blocksuite/affine-components/icons';
import {
DefaultTheme,
isTransparent,
@@ -17,6 +13,7 @@ import {
} from '@blocksuite/affine-shared/services';
import type { ColorEvent } from '@blocksuite/affine-shared/utils';
import { SignalWatcher, WithDisposable } from '@blocksuite/global/utils';
+import { StyleGeneralIcon, StyleScribbleIcon } from '@blocksuite/icons/lit';
import { computed, effect, type Signal, signal } from '@preact/signals-core';
import { css, html, LitElement } from 'lit';
import { property } from 'lit/decorators.js';
@@ -132,21 +129,23 @@ export class EdgelessShapeMenu extends SignalWatcher(
.tooltip=${'General'}
.active=${shapeStyle === ShapeStyle.General}
.activeMode=${'background'}
+ .iconSize=${'20px'}
@click=${() => {
this._setShapeStyle(ShapeStyle.General);
}}
>
- ${GeneralStyleIcon}
+ ${StyleGeneralIcon()}
{
this._setShapeStyle(ShapeStyle.Scribbled);
}}
>
- ${ScribbledStyleIcon}
+ ${StyleScribbleIcon()}