error handling, launcher ui, read-only mode, rm plot/smooth

This commit is contained in:
bordun 2020-03-09 19:12:43 +01:00
parent cee4cb81b7
commit 4f31985930
59 changed files with 1299 additions and 781 deletions

View file

@ -102,7 +102,7 @@ $line-height: 30rem;
.separator{
margin: 2rem 1rem;
height: 1rem;
background-color: var(--color-ui-background);
opacity: 0.5;
background-color: var(--color-text);
opacity: 0.1;
}
}

View file

@ -24,7 +24,7 @@ osc-inspector-field {
cursor: help;
}
textarea {
textarea, input {
font-family: mono;
line-height: $field-height - 8rem;

162
src/scss/ui/launcher.scss Normal file
View file

@ -0,0 +1,162 @@
$error: rgb(249, 88, 37);
$warning: rgb(209, 154, 47);
#osc-launcher {
osc-panel-header {
background-color: var(--color-ui-background);
--alpha-fill: .75;
text-align: left;
justify-content: center;
.spacer {
flex: 1;
}
span {
opacity: 0.5;
position: absolute;
right: 12rem;
}
flex-shrink: 0;
}
flex-direction: column;
osc-panel-container.center {
background-color: var(--color-background);
min-height: 0;
osc-panel-content {
padding: 12rem 8rem 8rem;
}
}
osc-panel-content {
overflow-y: auto;
flex: 1;
}
osc-panel-container.bottom {
padding: 12rem 8rem;
&.minimized {
padding: 0;
}
background-color: var(--color-ui-background);
max-height: calc(100% - var(--nav-height));
--color-background: --color-ui-background; // scrollbar
}
.toggle-button {
display: none;
}
}
osc-settings {
// flex: 1;
display: grid;
grid-template-columns: repeat(2, 1fr);
&.disabled {
pointer-events: none;
}
}
osc-settings-field {
display: flex;
flex-direction: row;
margin: 2rem;
line-height: 20rem;
position: relative;
label {
width: 100rem;
text-align: right;
margin-right: 8rem;
position: relative;
cursor: help;
span {
opacity: 0.5;
}
}
input {
appearance: none;
background: var(--color-ui-background);
flex: 1;
padding: 0 4rem;
width: 100rem;
}
&.error label {
color: $error;
opacity: 0.75;
}
&.restart label:after {
content: "";
position: absolute;
top:0;
left:4rem;
right:-4rem;
bottom:0;
background: $warning;
opacity: 0.25;
border-radius: 4rem;
}
}
osc-settings-checkbox, osc-settings-reset, osc-settings-file {
@extend osc-inspector-checkbox;
width: 18rem;
height: 18rem;
background: var(--color-ui-background);
--widget-padding: -1rem;
i {
color: var(--color-text);
opacity: 0.5;
}
&:hover i {
opacity: .75;
}
&.on {
--alpha-fill: 0.5;
i {
color: white;
opacity: 1;
}
}
}
#osc-terminal {
line-height: 18rem;
user-select:text;
cursor: auto;
> div {
margin: 0 12rem 4rem;
}
* {
user-select:text;
cursor: auto;
white-space: pre-wrap;
}
.help {
font-style: italic;
opacity: 0.75;
}
.warning {
color: $warning;
opacity: 0.75;
}
.error {
color: $error;
opacity: 0.75;
}
a {
text-decoration: underline;
cursor: pointer;
}
}

View file

@ -12,17 +12,13 @@ osc-workspace {
flex-direction: row;
overflow: hidden;
background-image: url(../assets/logo.png);
background-size: 80rem;
background-position: center;
background-repeat: no-repeat;
}
osc-panel-container {
position: relative;
display:flex;
flex-direction: column;
&.center {
@ -58,6 +54,24 @@ osc-panel-container {
left: -1rem;
}
&.bottom {
z-index: 2;
min-height: 0;
height: 0;
&:after {
// hover trap to display toggle-button when closed
content: "";
position: absolute;
top: -1rem;
height: 1rem;
left: 0;
right: 0;
z-index: 1;
}
}
.resize-handle {
position: absolute;
top: 0;
@ -71,6 +85,14 @@ osc-panel-container {
&.left {
right: 0;
}
&.bottom {
top:0;
left:0;
right:0;
height: 4rem;
width: auto;
cursor: ns-resize;
}
}
.toggle-button {
@ -120,11 +142,33 @@ osc-panel-container {
}
}
&.bottom {
border-top-left-radius: 25rem;
border-top-right-radius: 25rem;
top: -25rem;
height: 25rem;
width: 50rem;
left: 50%;
margin-left: -25rem;
margin-top: 0;
cursor: pointer;
transform: translateY(25rem);
&:after {
content:"\f107";
margin-top: 2rem;
width: 50rem;
height: 25rem;
line-height: 25rem;
}
}
}
&:hover .toggle-button, .toggle-button:hover {
transition: transform 0.2s ease-out 0s;
transform: translateX(0);
transform: translateX(0) translateY(0);
&:after {
transition: opacity 0.1s ease-in 0.1s;
opacity: 1;
@ -138,6 +182,9 @@ osc-panel-container {
&.right:after {
content:"\f104";
}
&.bottom:after {
content:"\f106";
}
}
&.disabled .toggle-button {
@ -223,3 +270,20 @@ osc-panel-content {
}
#osc-greeting-header {
--alpha-fill: 0.75;
span {
opacity: 0.5;
position: absolute;
right: 12rem;
}
&.hidden {
display: none;
}
}
#osc-container {
background: var(--color-background)
}