mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-16 03:37:59 +01:00
27 lines
923 B
TypeScript
27 lines
923 B
TypeScript
import React from 'react';
|
|
import {registerIcons} from 'office-ui-fabric-react';
|
|
import {initializeIcons} from './icons/src';
|
|
|
|
// Import SVG files for the icons here.
|
|
import FancyZonesSVG from './svg/fancy_zones.svg';
|
|
import PowerRenameSVG from './svg/power_rename.svg';
|
|
import ShortcutGuideSVG from './svg/shortcut_guide.svg';
|
|
import ImageResizerSVG from './svg/image_resizer.svg';
|
|
import PowerPreviewSVG from './svg/power_preview.svg';
|
|
import WindowWalkerSVG from './svg/window_walker.svg';
|
|
|
|
export function setup_powertoys_icons(): void {
|
|
initializeIcons('icons/fonts/');
|
|
|
|
registerIcons({
|
|
icons: {
|
|
'pt-fancy-zones': ( <FancyZonesSVG /> ),
|
|
'pt-power-rename': ( <PowerRenameSVG /> ),
|
|
'pt-shortcut-guide': ( <ShortcutGuideSVG /> ),
|
|
'pt-power-preview': (<PowerPreviewSVG /> ),
|
|
'pt-image-resizer': ( <ImageResizerSVG /> ),
|
|
'pt-window-walker': ( <WindowWalkerSVG /> )
|
|
}
|
|
});
|
|
}
|