Skip to content

Commit 8e8a78f

Browse files
authored
feat: add icon for Harmony (#91)
* feat: add icon for Harmony * fix: typo
1 parent 7233660 commit 8e8a78f

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

src/renderer/assets/icons/harmony.svg

Lines changed: 1 addition & 0 deletions
Loading

src/renderer/components/connection/IconPlatform/IconPlatform.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,7 @@
1313
.ldt-icon-Windows {
1414
color: #13b1ef;
1515
}
16+
17+
.ldt-icon-Harmony {
18+
color: #262626;
19+
}

src/renderer/components/connection/IconPlatform/IconPlatform.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,16 @@ import AndroidSvg from '@/renderer/assets/icons/android.svg';
66
import IosSvg from '@/renderer/assets/icons/ios.svg';
77
import MacSvg from '@/renderer/assets/icons/mac.svg';
88
import WinSvg from '@/renderer/assets/icons/windows.svg';
9+
import HarmonySvg from '@/renderer/assets/icons/harmony.svg';
910

1011
import './IconPlatform.scss';
1112

1213
const IconPlatform = (props: any) => {
1314
const { osType, className, ...restProps } = props;
1415
const mergeClassName = `ldt-icon-${osType} ${className}`;
16+
if (osType === 'Harmony') {
17+
return <HarmonySvg className={mergeClassName} {...restProps} />;
18+
}
1519
if (osType === 'iOS') {
1620
return <IosSvg className={mergeClassName} {...restProps} />;
1721
}

0 commit comments

Comments
 (0)