Skip to content

Commit

Permalink
Many small changes. Back to blue.
Browse files Browse the repository at this point in the history
  • Loading branch information
glaroc committed Jan 8, 2025
1 parent 577a8e0 commit 9b295fe
Show file tree
Hide file tree
Showing 8 changed files with 41 additions and 13 deletions.
2 changes: 1 addition & 1 deletion ui/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;600;700&display=swap"
href="https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&family=Lato:wght@300;400;500;600;700&display=swap"
/>
<link rel="apple-touch-icon" href="/favicon.ico" />
<!--
Expand Down
14 changes: 13 additions & 1 deletion ui/src/Layout.css
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
nav {
padding-top: 1em;
padding-bottom: 1em;
font-family: Lato, sans-serif;
font-weight: 500;
font-size: 1.1em;
}

a {
color: var(--biab-yellow-light);
color: var(--biab-blue-light);
}
a.active {
color: white;
Expand Down Expand Up @@ -81,6 +84,15 @@ h2 {
overflow-y: auto;
}

.fullScreenPopup a{
color: var(--biab-green-main);

}

.fullScreenPopup h2{
color: var(--biab-green-main);
}

img#logo {
max-width: 10vw;
padding: 5px 10px;
Expand Down
2 changes: 1 addition & 1 deletion ui/src/components/RunHistory.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export default function RunHistory() {

return (
<p style={{ whiteSpace: "pre-wrap" }}>
{runHistory ? runHistory : <Spinner />}
{runHistory ? runHistory : <Spinner variant='light'/>}
</p>
);
}
Expand Down
11 changes: 9 additions & 2 deletions ui/src/components/Spinner.jsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
import spinnerImg from "../img/spinner.svg";
import spinnerImgLight from "../img/spinner_light.svg";

export function Spinner(){
export function Spinner({variant}){
if (variant=='light'){
return <img src={spinnerImgLight} className="spinner" alt="Spinner" />
}
return <img src={spinnerImg} className="spinner" alt="Spinner" />
}

export function InlineSpinner(){
export function InlineSpinner({variant}){
if (variant=='light'){
return <img src={spinnerImgLight} className="spinner-inline" alt="Spinner" />
}
return <img src={spinnerImg} className="spinner-inline" alt="Spinner" />
}
2 changes: 1 addition & 1 deletion ui/src/components/Versions.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default function Versions() {

return (
<p style={{ whiteSpace: "pre-wrap" }}>
{versions ? versions : <Spinner />}
{versions ? versions : <Spinner variant='light' />}
</p>
);
}
9 changes: 6 additions & 3 deletions ui/src/components/form/ScriptInput.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export default function ScriptInput({
sx={{
fontSize: "1em",
fontFamily: "Roboto",
width: 328,
width: size=='small'?220:328,
"& .MuiOutlinedInput-notchedOutline": {
borderColor: "var(--biab-green-trans-main)",
},
Expand All @@ -75,7 +75,7 @@ export default function ScriptInput({
"&. MuiInputLabel-formControl": {
color: "var(---biab-green-trans-main)",
},
}}
}}
disabled={passedProps.disabled}
value={fieldValue}
onChange={(event, newValue) => {
Expand Down Expand Up @@ -109,11 +109,11 @@ export default function ScriptInput({
value={joinIfArray(fieldValue)}
onChange={(e) => setFieldValue(e.target.value)}
placeholder={ARRAY_PLACEHOLDER}
keepWidth={true}
cols={cols}
onBlur={onUpdateArray}
slotProps={{ htmlInput: { style: { resize: "vertical" } } }}
onKeyDown={(e) => e.ctrlKey && onUpdateArray(e)}
sx={{width: size=='small'?220:328}}
/>
);
}
Expand Down Expand Up @@ -155,6 +155,7 @@ export default function ScriptInput({
onValueUpdated(parseInt(e.target.value));
}}
placeholder={CONSTANT_PLACEHOLDER}
sx={{width: size=='small'?220:328}}
/>
);

Expand All @@ -176,6 +177,7 @@ export default function ScriptInput({
passedProps.className ? passedProps.className : ""
}`}
placeholder={CONSTANT_PLACEHOLDER}
sx={{width: size=='small'?220:328}}
/>
);

Expand Down Expand Up @@ -207,6 +209,7 @@ export default function ScriptInput({
onKeyDown={(e) => {
if (e.key === "Enter" || e.ctrlKey) updateValue(e);
}}
sx={{width: size=='small'?220:328}}
/>
);
}
Expand Down
8 changes: 8 additions & 0 deletions ui/src/img/spinner_light.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 2 additions & 4 deletions ui/src/index.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Montserrat",
"Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
sans-serif;
font-family: "Montserrat", sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
Expand All @@ -17,7 +15,7 @@ code {
--biab-green-trans-main: #1d736888;
--biab-purple-main: #3d1b40;
--biab-blue-main: #28457a;
--biab-blue-light: #647ca8;
--biab-blue-light: #76d2ff;
--biab-orange-main: #b7672e;
--biab-yellow-main: #b7872e;
--biab-yellow-light: #fdd58c;
Expand Down

0 comments on commit 9b295fe

Please sign in to comment.