Skip to content

Commit 36a5f0f

Browse files
authored
refactor: zoom in and out icons (#1968)
Signed-off-by: Adam Setch <adam.setch@outlook.com>
1 parent 3a21348 commit 36a5f0f

File tree

2 files changed

+18
-12
lines changed

2 files changed

+18
-12
lines changed

src/renderer/components/settings/AppearanceSettings.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ import { webFrame } from 'electron';
22
import { type FC, useContext, useState } from 'react';
33

44
import {
5-
DashIcon,
65
PaintbrushIcon,
7-
PlusIcon,
8-
XCircleIcon,
6+
SyncIcon,
7+
ZoomInIcon,
8+
ZoomOutIcon,
99
} from '@primer/octicons-react';
1010
import {
1111
Button,
@@ -109,7 +109,7 @@ export const AppearanceSettings: FC = () => {
109109
<IconButton
110110
aria-label="Zoom out"
111111
size="small"
112-
icon={DashIcon}
112+
icon={ZoomOutIcon}
113113
unsafeDisableTooltip={true}
114114
onClick={() =>
115115
zoomPercentage > 0 &&
@@ -127,7 +127,7 @@ export const AppearanceSettings: FC = () => {
127127
<IconButton
128128
aria-label="Zoom in"
129129
size="small"
130-
icon={PlusIcon}
130+
icon={ZoomInIcon}
131131
unsafeDisableTooltip={true}
132132
onClick={() =>
133133
zoomPercentage < 120 &&
@@ -142,7 +142,7 @@ export const AppearanceSettings: FC = () => {
142142
aria-label="Reset zoom"
143143
size="small"
144144
variant="danger"
145-
icon={XCircleIcon}
145+
icon={SyncIcon}
146146
unsafeDisableTooltip={true}
147147
onClick={() => webFrame.setZoomLevel(0)}
148148
data-testid="settings-zoom-reset"

src/renderer/routes/__snapshots__/Settings.test.tsx.snap

Lines changed: 12 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)