Skip to content

Commit

Permalink
add icon
Browse files Browse the repository at this point in the history
  • Loading branch information
aarron-lee committed Nov 28, 2023
1 parent e6733a0 commit dc578ca
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
Binary file added assets/Icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 9 additions & 6 deletions src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import { definePlugin, ServerAPI, staticClasses } from 'decky-frontend-lib';
import { memo, VFC } from 'react';

// import { createServerApiHelpers } from './backend/utils';
import { FaShip } from 'react-icons/fa';
import RemapButtons from './components/controller/RemapButtons';
import ControllerLightingPanel from './components/rgb/ControllerLightingPanel';
import { createServerApiHelpers, saveServerApi } from './backend/utils';
Expand All @@ -11,7 +9,7 @@ import { getInitialLoading } from './redux-modules/uiSlice';
import { setInitialState } from './redux-modules/extraActions';
import { Provider, useSelector } from 'react-redux';
import { currentGameIdListener } from './backend/currentGameIdListener';
import { Icon } from './svgs/Icon';
import logo from '../assets/Icon.png';

const Content: VFC<{ serverAPI: ServerAPI }> = memo(({ serverAPI }) => {
const loading = useSelector(getInitialLoading);
Expand Down Expand Up @@ -53,9 +51,14 @@ export default definePlugin((serverApi: ServerAPI) => {
title: <div className={staticClasses.Title}>LegionGoRemapper</div>,
content: <AppContainer serverAPI={serverApi} />,
icon: (
<span>
<Icon />
</span>
<img
src={logo}
style={{
width: '1rem',
filter:
'invert(100%) sepia(0%) saturate(2%) hue-rotate(157deg) brightness(107%) contrast(101%)'
}}
/>
),
onDismount() {
clearListener();
Expand Down

0 comments on commit dc578ca

Please sign in to comment.