Add TC fork logo
This commit is contained in:
Vendored
+37075
-804
File diff suppressed because one or more lines are too long
@@ -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}
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user