Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tweak editor toolbar styling #168

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion gui/src/app/FileEditor/TextEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,10 @@ const ToolbarItemComponent: FunctionComponent<{ item: ToolbarItem }> = ({
}
} else if (item.type === "text") {
return (
<span style={{ color: item.color || "gray" }} title={item.label}>
<span
style={{ color: item.color || "gray", position: "relative", top: 1 }}
title={item.label}
>
{item.label}&nbsp;&nbsp;&nbsp;
</span>
);
Expand Down
10 changes: 5 additions & 5 deletions gui/src/app/Scripting/ScriptEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -145,19 +145,19 @@ const makeToolbar = (o: {
let label: string;
let color: string;
if (status === "loading") {
label = `Loading ${name}...`;
label = `loading ${name}...`;
color = "blue";
} else if (status === "installing") {
label = `Installing packages for ${name}...`;
label = `installing packages for ${name}...`;
color = "blue";
} else if (status === "running") {
label = "Running...";
label = "running...";
color = "blue";
} else if (status === "completed") {
label = "Completed";
label = "completed";
color = "green";
} else if (status === "failed") {
label = "Failed";
label = "failed";
color = "red";
} else {
label = "";
Expand Down
1 change: 1 addition & 0 deletions gui/src/localStyles.css
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@
.EditorMenuBar {
background-color: lightgray;
height: 25px;
padding-top: 5px;
}

.EditorWithToolbar {
Expand Down