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
+37075 -804
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 { Minimap } from "./minimap";
import { Overlay } from "./overlay"; import { Overlay } from "./overlay";
import { debounce } from "lodash"; 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 { interface StoreSettings {
opacity: number; opacity: number;
@@ -88,9 +96,16 @@ export class Main extends React.Component<Props, State> {
} }
return null; return null;
} }
title() {
return <span title={"Terncode's fork"}>
<Img src={TCLogo} alt="TC-Logo"/>
<span>Overlay</span>
</span>;
}
render() { render() {
return <> return <>
<MovableWindow title="Overlay" storage={this.props.storage} storageKey="main" > <MovableWindow title={this.title()} storage={this.props.storage} storageKey="main" >
<Menu <Menu
onOpacityChange={this.opacityChange} onOpacityChange={this.opacityChange}
cords={this.props.cords} cords={this.props.cords}
+1 -1
View File
@@ -25,7 +25,7 @@ const DragArea = styled.div`
interface Props { interface Props {
children: React.ReactNode; children: React.ReactNode;
title: string; title: string | React.JSX.Element;
storage: Storage; storage: Storage;
storageKey: string; storageKey: string;
} }
+1
View File
File diff suppressed because one or more lines are too long