diff --git a/tgui/packages/tgui/interfaces/Colormate.js b/tgui/packages/tgui/interfaces/Colormate.js
index 79bc3543e9..02810f2943 100644
--- a/tgui/packages/tgui/interfaces/Colormate.js
+++ b/tgui/packages/tgui/interfaces/Colormate.js
@@ -1,5 +1,5 @@
import { useBackend } from '../backend';
-import { Button, Flex, Icon, NoticeBox, NumberInput, Section, Tabs } from '../components';
+import { Button, Icon, NoticeBox, NumberInput, Section, Table, Tabs, Slider } from '../components';
import { Window } from '../layouts';
export const Colormate = (props, context) => {
@@ -9,34 +9,38 @@ export const Colormate = (props, context) => {
return (
- {temp ? (
- {temp}
- ) : (null)}
- {Object.keys(item).length ? (
- <>
-
-
- Item:
-
-
-
- Preview:
-
-
-
-
+
+ {temp ? (
+ {temp}
+ ) : (null)}
+ {Object.keys(item).length ? (
+ <>
+
+
+
+ Item:
+
+
+
+
+
+ Preview:
+
+
+
+
{
Matrix coloring (Advanced)
- {}
- {activemode === 3 ? (
- <>
- Coloring: {item.name}
-
- >
- ) : activemode === 2 ? (
- <>
- Coloring: {item.name}
-
- >
- )
- : (
- <>
- Coloring: {item.name}
-
- >
- )}
-
- >
- ) : (
-
+ Coloring: {item.name}
+
+
+
+
+ {activemode === 1 ? (
+
+ ) : activemode === 2 ? (
+
+ ) : (
+
+ )}
+
+
+ >
+ ) : (
No item inserted.
-
- )}
+ )}
+
);
};
-export const ColormateNoMatrix = (props, context) => {
+export const ColormateTint = (props, context) => {
const { act, data } = useBackend(context);
return (
-
-
-
- act('paint')} />
- act('clear')} />
- act('drop')} />
-
-
- act('choose_color')} />
-
-
-
+ act('choose_color')}
+ />
);
};
@@ -132,242 +122,211 @@ export const ColormateMatrix = (props, context) => {
const { act, data } = useBackend(context);
const matrixcolors = data.matrixcolors || [];
return (
-
-
-
- act('matrix_paint')} />
- act('clear')} />
- act('drop')} />
-
-
-
- RR: act('set_matrix_color', {
- color: 1,
- value,
- })} />
-
-
- GR: act('set_matrix_color', {
- color: 4,
- value,
- })} />
-
-
- BR: act('set_matrix_color', {
- color: 7,
- value,
- })} />
-
-
-
-
- RG: act('set_matrix_color', {
- color: 2,
- value,
- })} />
-
-
- GG: act('set_matrix_color', {
- color: 5,
- value,
- })} />
-
-
- BG: act('set_matrix_color', {
- color: 8,
- value,
- })} />
-
-
-
-
- RB: act('set_matrix_color', {
- color: 3,
- value,
- })} />
-
-
- GB: act('set_matrix_color', {
- color: 6,
- value,
- })} />
-
-
- BB: act('set_matrix_color', {
- color: 9,
- value,
- })} />
-
-
-
-
- CR: act('set_matrix_color', {
- color: 10,
- value,
- })} />
-
-
- CG: act('set_matrix_color', {
- color: 11,
- value,
- })} />
-
-
- CB: act('set_matrix_color', {
- color: 12,
- value,
- })} />
-
-
-
- RG means red will become this much green.
- CR means this much red will be added.
-
-
-
+
+
+
+ RR: act('set_matrix_color', {
+ color: 1,
+ value,
+ })} />
+
+
+ GR: act('set_matrix_color', {
+ color: 4,
+ value,
+ })} />
+
+
+ BR: act('set_matrix_color', {
+ color: 7,
+ value,
+ })} />
+
+
+
+
+ RG: act('set_matrix_color', {
+ color: 2,
+ value,
+ })} />
+
+
+ GG: act('set_matrix_color', {
+ color: 5,
+ value,
+ })} />
+
+
+ BG: act('set_matrix_color', {
+ color: 8,
+ value,
+ })} />
+
+
+
+
+ RB: act('set_matrix_color', {
+ color: 3,
+ value,
+ })} />
+
+
+ GB: act('set_matrix_color', {
+ color: 6,
+ value,
+ })} />
+
+
+ BB: act('set_matrix_color', {
+ color: 9,
+ value,
+ })} />
+
+
+
+
+ CR: act('set_matrix_color', {
+ color: 10,
+ value,
+ })} />
+
+
+ CG: act('set_matrix_color', {
+ color: 11,
+ value,
+ })} />
+
+
+ CB: act('set_matrix_color', {
+ color: 12,
+ value,
+ })} />
+
+
+
+ RG means red will become this much green.
+ CR means this much red will be added.
+
+
);
};
-export const ColormateHSL = (props, context) => {
+export const ColormateHSV = (props, context) => {
const { act, data } = useBackend(context);
const { buildhue, buildsat, buildval } = data;
return (
-
-
-
- act('paint')} />
- act('clear')} />
- act('drop')} />
-
-
-
- Hue: act('set_hue', {
- buildhue: value,
- })} />
-
-
- Saturation: act('set_sat', {
- buildsat: value,
- })} />
-
-
- Value: act('set_val', {
- buildval: value,
- })} />
-
-
-
-
+
+
+ Hue:
+
+ act('set_hue', {
+ buildhue: value,
+ })} />
+
+
+
+ Saturation:
+
+ act('set_sat', {
+ buildsat: value,
+ })} />
+
+
+
+ Value:
+
+ act('set_val', {
+ buildval: value,
+ })} />
+
+
+
);
-};
\ No newline at end of file
+};