[MIRROR] Cleans up some tgui styling (#11416)

Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2025-08-14 07:25:47 -07:00
committed by GitHub
parent f7bbeb6239
commit 25a8a1f773
6 changed files with 26 additions and 19 deletions

View File

@@ -100,8 +100,8 @@ export const telemetryMiddleware = (store) => {
}), }),
); );
} }
// Save telemetry // Save telemetry
if (telemetryMutated) { if (telemetryMutated) {
logger.debug('saving telemetry to storage', telemetry); logger.debug('saving telemetry to storage', telemetry);
storage.set('telemetry', telemetry); storage.set('telemetry', telemetry);
} }

View File

@@ -6,8 +6,8 @@ import {
Knob, Knob,
LabeledControls, LabeledControls,
LabeledList, LabeledList,
Section,
RoundGauge, RoundGauge,
Section,
Slider, Slider,
} from 'tgui-core/components'; } from 'tgui-core/components';
import { toFixed } from 'tgui-core/math'; import { toFixed } from 'tgui-core/math';
@@ -81,11 +81,11 @@ export const GasTemperatureSystem = (props) => {
value={reagentPower} value={reagentPower}
ranges={{ ranges={{
bad: [-3, 0.5], bad: [-3, 0.5],
average: [0.5,1.5], average: [0.5, 1.5],
good: [1.5,5], good: [1.5, 5],
}} }}
format={(value) => { format={(value) => {
return `${toFixed(value,1)} x`; return `${toFixed(value, 1)} x`;
}} }}
minValue={-3} minValue={-3}
maxValue={5} maxValue={5}

View File

@@ -70,7 +70,7 @@ export const SubtabEquipment = (props: {
<Button onClick={() => act('set_ringtone')}> <Button onClick={() => act('set_ringtone')}>
{ringtone || 'None'} {ringtone || 'None'}
</Button> </Button>
<Button icon="volume-high" onClick={() => act('test_ringtone')}/> <Button icon="volume-high" onClick={() => act('test_ringtone')} />
</LabeledList.Item> </LabeledList.Item>
{/* <LabeledList.Item label="Spawn With Shoes"> {/* <LabeledList.Item label="Spawn With Shoes">
<Button onClick={() => act('toggle_shoes')}> <Button onClick={() => act('toggle_shoes')}>

View File

@@ -175,14 +175,14 @@ export type DistilledReactions = DistillComponent | DistillComponent[] | null;
export type DistillComponent = export type DistillComponent =
| (ReactionComponent & | (ReactionComponent &
Partial<{ Partial<{
temp_min: number; temp_min: number;
temp_max: number; temp_max: number;
xgm_min: number; xgm_min: number;
xgm_max: number; xgm_max: number;
require_xgm_gas: string; require_xgm_gas: string;
rejects_xgm_gas: string; rejects_xgm_gas: string;
}>) }>)
| null; | null;
export type ReactionComponent = { export type ReactionComponent = {

View File

@@ -11,7 +11,7 @@ import {
Stack, Stack,
Tooltip, Tooltip,
} from 'tgui-core/components'; } from 'tgui-core/components';
import { BooleanLike } from 'tgui-core/react'; import type { BooleanLike } from 'tgui-core/react';
type Data = { type Data = {
stun_time: number; stun_time: number;
@@ -43,7 +43,10 @@ export const ShadekinConfig = (props) => {
const isSubtle = const isSubtle =
flicker_time < 5 || flicker_break_chance < 5 || flicker_distance < 5; flicker_time < 5 || flicker_break_chance < 5 || flicker_distance < 5;
const windowHeight = (isSubtle ? 220 : 190) + (extended_kin ? 95 : 0) + (savefile_selected ? 0 : 90); const windowHeight =
(isSubtle ? 220 : 190) +
(extended_kin ? 95 : 0) +
(savefile_selected ? 0 : 90);
return ( return (
<Window width={300} height={windowHeight} theme="abductor"> <Window width={300} height={windowHeight} theme="abductor">
@@ -56,7 +59,11 @@ export const ShadekinConfig = (props) => {
)} )}
{!savefile_selected && ( {!savefile_selected && (
<Stack.Item> <Stack.Item>
<NoticeBox>WARNING: Your current selected savefile (in Character Setup) is not the same as your currently loaded savefile. Please select it to prevent savefile corruption.</NoticeBox> <NoticeBox>
WARNING: Your current selected savefile (in Character Setup) is
not the same as your currently loaded savefile. Please select it
to prevent savefile corruption.
</NoticeBox>
</Stack.Item> </Stack.Item>
)} )}
<Stack.Item> <Stack.Item>

View File

@@ -17,5 +17,5 @@
"strictNullChecks": true, "strictNullChecks": true,
"target": "ESNext" "target": "ESNext"
}, },
"include": ["./*.d.ts", "./packages", "vitest.config.mts"] "include": ["./*.d.ts", "./packages"]
} }