Files
PowerToys/src/settings-web/src/setup_icons.tsx

27 lines
923 B
TypeScript
Raw Normal View History

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';
2020-03-27 15:17:36 +01:00
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 /> ),
2020-03-27 15:17:36 +01:00
'pt-image-resizer': ( <ImageResizerSVG /> ),
'pt-window-walker': ( <WindowWalkerSVG /> )
}
});
}