Skip to content

Commit

Permalink
refactor: switch reset appearance icon (#399)
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Setch <adam.setch@outlook.com>
  • Loading branch information
setchy authored Dec 3, 2024
1 parent 65bd32c commit 92b94f3
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 16 deletions.
11 changes: 3 additions & 8 deletions src/renderer/components/settings/AppearanceSettings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ import { IconButton } from '@atlaskit/button/new';
import Heading from '@atlaskit/heading';
import MediaServicesZoomInIcon from '@atlaskit/icon/glyph/media-services/zoom-in';
import MediaServicesZoomOutIcon from '@atlaskit/icon/glyph/media-services/zoom-out';
import SelectClearIcon from '@atlaskit/icon/glyph/select-clear';
import RetryIcon from '@atlaskit/icon/glyph/retry';
import { Inline, Stack, Text } from '@atlaskit/primitives';
import { RadioGroup } from '@atlaskit/radio';
import type { OptionsPropType } from '@atlaskit/radio/dist/types/types';
import { setGlobalTheme, token } from '@atlaskit/tokens';
import { setGlobalTheme } from '@atlaskit/tokens';
import Tooltip from '@atlaskit/tooltip';

import { namespacedEvent } from '../../../shared/utils';
Expand Down Expand Up @@ -126,12 +126,7 @@ export const AppearanceSettings: FC = () => {
<Tooltip content="Reset Zoom" position="bottom">
<IconButton
label="Reset Zoom"
icon={(iconProps) => (
<SelectClearIcon
{...iconProps}
primaryColor={token('color.icon.accent.red')}
/>
)}
icon={RetryIcon}
shape="circle"
spacing="compact"
onClick={() => webFrame.setZoomLevel(0)}
Expand Down
20 changes: 12 additions & 8 deletions src/renderer/routes/__snapshots__/Settings.test.tsx.snap

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 92b94f3

Please sign in to comment.