Adds tips to matrix

This commit is contained in:
SandPoot
2021-09-30 12:08:32 -03:00
parent 6af4168513
commit 5bf095ed7f
+9 -5
View File
@@ -1,5 +1,5 @@
import { useBackend } from '../backend';
import { Button, Flex, NoticeBox, NumberInput, Section, Tabs } from '../components';
import { Button, Flex, Icon, NoticeBox, NumberInput, Section, Tabs } from '../components';
import { Window } from '../layouts';
export const Colormate = (props, context) => {
@@ -7,7 +7,7 @@ export const Colormate = (props, context) => {
const { matrixactive, temp } = data;
const item = data.item || [];
return (
<Window width="700" height="600" resizable>
<Window width="700" height="620" resizable>
<Window.Content overflow="auto">
{temp ? (
<NoticeBox>{temp}</NoticeBox>
@@ -83,7 +83,7 @@ export const ColormateNoMatrix = (props, context) => {
return (
<Section>
<Flex grow={1} fill>
<Flex.Item width="50%">
<Flex.Item width="33%">
<Button
fluid
content="Paint"
@@ -100,7 +100,7 @@ export const ColormateNoMatrix = (props, context) => {
icon="eject"
onClick={() => act('drop')} />
</Flex.Item>
<Flex.Item width="50%">
<Flex.Item width="66%">
<Button
fluid
height="100%"
@@ -119,7 +119,7 @@ export const ColormateMatrix = (props, context) => {
return (
<Section>
<Flex>
<Flex.Item width="50%">
<Flex.Item width="33%">
<Button
fluid
content="Paint"
@@ -288,6 +288,10 @@ export const ColormateMatrix = (props, context) => {
})} />
</Flex.Item>
</Flex.Item>
<Flex.Item width="33%">
<Icon name="question-circle" color="blue" /> RG means red will become this much green.<br />
<Icon name="question-circle" color="blue" /> CR means that red will have this much constrast applied to it.
</Flex.Item>
</Flex>
</Section>
);