mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-13 11:43:31 +00:00
tgui input tweaks
This commit is contained in:
@@ -17,6 +17,7 @@ import './styles/themes/pda-retro.scss';
|
|||||||
import './styles/themes/retro.scss';
|
import './styles/themes/retro.scss';
|
||||||
import './styles/themes/syndicate.scss';
|
import './styles/themes/syndicate.scss';
|
||||||
import './styles/themes/wizard.scss';
|
import './styles/themes/wizard.scss';
|
||||||
|
import './styles/themes/abstract.scss';
|
||||||
|
|
||||||
import { perf } from 'common/perf';
|
import { perf } from 'common/perf';
|
||||||
import { setupHotReloading } from 'tgui-dev-server/link/client';
|
import { setupHotReloading } from 'tgui-dev-server/link/client';
|
||||||
|
|||||||
@@ -70,6 +70,7 @@ export class AlertModal extends Component {
|
|||||||
return (
|
return (
|
||||||
<Window
|
<Window
|
||||||
title={title}
|
title={title}
|
||||||
|
theme="abstract"
|
||||||
width={350}
|
width={350}
|
||||||
height={windowHeight}
|
height={windowHeight}
|
||||||
canClose={timeout > 0}>
|
canClose={timeout > 0}>
|
||||||
|
|||||||
@@ -60,6 +60,7 @@ export const InputModal = (props, context) => {
|
|||||||
width="100%"
|
width="100%"
|
||||||
height="100%"
|
height="100%"
|
||||||
autoFocus
|
autoFocus
|
||||||
|
dontUseTabForIndent
|
||||||
onKeyDown={handleKeyDown}
|
onKeyDown={handleKeyDown}
|
||||||
onChange={(_e, val) => {
|
onChange={(_e, val) => {
|
||||||
setCurValue(val);
|
setCurValue(val);
|
||||||
@@ -70,7 +71,7 @@ export const InputModal = (props, context) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Window title={title} width={initialWidth} height={initialHeight}>
|
<Window title={title} theme="abstract" width={initialWidth} height={initialHeight}>
|
||||||
{timeout !== undefined && <Loader value={timeout} />}
|
{timeout !== undefined && <Loader value={timeout} />}
|
||||||
<Window.Content>
|
<Window.Content>
|
||||||
<Stack fill vertical>
|
<Stack fill vertical>
|
||||||
|
|||||||
@@ -120,6 +120,7 @@ export const ListInput = (props, context) => {
|
|||||||
return (
|
return (
|
||||||
<Window
|
<Window
|
||||||
title={title}
|
title={title}
|
||||||
|
theme="abstract"
|
||||||
width={325}
|
width={325}
|
||||||
height={325}>
|
height={325}>
|
||||||
{timeout !== undefined && <Loader value={timeout} />}
|
{timeout !== undefined && <Loader value={timeout} />}
|
||||||
|
|||||||
19
tgui/packages/tgui/styles/themes/abstract.scss
Normal file
19
tgui/packages/tgui/styles/themes/abstract.scss
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
/**
|
||||||
|
* Copyright (c) 2021 Aronai Sieyes
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
|
@use 'sass:color';
|
||||||
|
@use 'sass:meta';
|
||||||
|
|
||||||
|
.theme-abstract {
|
||||||
|
.TitleBar__statusIcon {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
.Layout__content {
|
||||||
|
background-image: none;
|
||||||
|
}
|
||||||
|
.TitleBar__title {
|
||||||
|
left: 12px;
|
||||||
|
}
|
||||||
|
}
|
||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user