Add TC fork logo

This commit is contained in:
2024-07-27 11:46:02 +02:00
parent bdd428ed9c
commit d560078172
4 changed files with 37048 additions and 761 deletions
+37030 -759
View File
File diff suppressed because one or more lines are too long
+16 -1
View File
@@ -9,7 +9,15 @@ import { SelectedMural } from "../../interfaces";
import { Minimap } from "./minimap";
import { Overlay } from "./overlay";
import { debounce } from "lodash";
import { TCLogo } from "../../constants";
import styled from "styled-components";
const Img = styled.img`
width: 25px;
display: inline;
pointer-events: none;
touch-action: none;
`;
interface StoreSettings {
opacity: number;
@@ -88,9 +96,16 @@ export class Main extends React.Component<Props, State> {
}
return null;
}
title() {
return <span title={"Terncode's fork"}>
<Img src={TCLogo} alt="TC-Logo"/>
<span>Overlay</span>
</span>;
}
render() {
return <>
<MovableWindow title="Overlay" storage={this.props.storage} storageKey="main" >
<MovableWindow title={this.title()} storage={this.props.storage} storageKey="main" >
<Menu
onOpacityChange={this.opacityChange}
cords={this.props.cords}
+1 -1
View File
@@ -25,7 +25,7 @@ const DragArea = styled.div`
interface Props {
children: React.ReactNode;
title: string;
title: string | React.JSX.Element;
storage: Storage;
storageKey: string;
}
+1
View File
File diff suppressed because one or more lines are too long