inspector: code editor for script/touch/draw properties
This commit is contained in:
parent
0a1b30416f
commit
1058cb551c
8 changed files with 273 additions and 12 deletions
|
|
@ -19,7 +19,7 @@ osc-inspector-field {
|
|||
--widget-padding: -1rem;
|
||||
|
||||
|
||||
label {
|
||||
> label {
|
||||
width: 90rem;
|
||||
// order: 35;
|
||||
text-align: right;
|
||||
|
|
@ -31,7 +31,10 @@ osc-inspector-field {
|
|||
// background: rgba(white, 0.1);
|
||||
}
|
||||
|
||||
textarea, input {
|
||||
.ace_editor {
|
||||
flex:1;
|
||||
}
|
||||
> textarea, > input {
|
||||
font-family: $font-mono;
|
||||
|
||||
line-height: $field-height - 8rem;
|
||||
|
|
@ -76,6 +79,145 @@ osc-inspector-field {
|
|||
|
||||
}
|
||||
|
||||
osc-inspector-field .ace_editor {
|
||||
background-color: var(--color-background);
|
||||
color: var(--color-text);
|
||||
font-size: inherit;
|
||||
background: var(--color-background);
|
||||
line-height: 1.3;
|
||||
|
||||
.ace_gutter {
|
||||
background: #282c34;
|
||||
color: #6a6f7a
|
||||
}
|
||||
.ace_print-margin {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.ace_cursor {
|
||||
color: #528bff
|
||||
}
|
||||
.ace_marker-layer .ace_selection {
|
||||
background: #3d4350
|
||||
}
|
||||
.ace_multiselect .ace_selection.ace_start {
|
||||
box-shadow: 0 0 3px 0 #282c34;
|
||||
border-radius: 2px
|
||||
}
|
||||
.ace_marker-layer .ace_step {
|
||||
background: #c6dbae
|
||||
}
|
||||
.ace_marker-layer .ace_bracket {
|
||||
margin: -1px 0 0 -1px;
|
||||
border: 1px solid #747369
|
||||
}
|
||||
.ace_marker-layer .ace_active-line {
|
||||
background: rgba(76, 87, 103, .19)
|
||||
}
|
||||
.ace_gutter-active-line {
|
||||
background-color: rgba(76, 87, 103, .19)
|
||||
}
|
||||
.ace_marker-layer .ace_selected-word {
|
||||
border: 1px solid #3d4350
|
||||
}
|
||||
.ace_fold {
|
||||
background-color: #61afef;
|
||||
border-color: #abb2bf
|
||||
}
|
||||
.ace_keyword {
|
||||
color: #c678dd
|
||||
}
|
||||
.ace_keyword.ace_operator {
|
||||
color: #c678dd
|
||||
}
|
||||
.ace_keyword.ace_other.ace_unit {
|
||||
color: #d19a66
|
||||
}
|
||||
.ace_constant.ace_language {
|
||||
color: #d19a66
|
||||
}
|
||||
.ace_constant.ace_numeric {
|
||||
color: #d19a66
|
||||
}
|
||||
.ace_constant.ace_character {
|
||||
color: #56b6c2
|
||||
}
|
||||
.ace_constant.ace_other {
|
||||
color: #56b6c2
|
||||
}
|
||||
.ace_support.ace_function {
|
||||
color: #61afef
|
||||
}
|
||||
.ace_support.ace_constant {
|
||||
color: #d19a66
|
||||
}
|
||||
.ace_support.ace_class {
|
||||
color: #e5c07b
|
||||
}
|
||||
.ace_support.ace_type {
|
||||
color: #e5c07b
|
||||
}
|
||||
.ace_storage {
|
||||
color: #c678dd
|
||||
}
|
||||
.ace_storage.ace_type {
|
||||
color: #c678dd
|
||||
}
|
||||
.ace_invalid {
|
||||
color: #fff;
|
||||
background-color: #f2777a
|
||||
}
|
||||
.ace_invalid.ace_deprecated {
|
||||
color: #272b33;
|
||||
background-color: #d27b53
|
||||
}
|
||||
.ace_string {
|
||||
color: #98c379
|
||||
}
|
||||
.ace_string.ace_regexp {
|
||||
color: #e06c75
|
||||
}
|
||||
.ace_comment {
|
||||
font-style: italic;
|
||||
color: #5c6370
|
||||
}
|
||||
.ace_variable {
|
||||
color: #e06c75
|
||||
}
|
||||
.ace_variable.ace_parameter {
|
||||
color: #d19a66
|
||||
}
|
||||
.ace_meta.ace_tag {
|
||||
color: #e06c75
|
||||
}
|
||||
.ace_entity.ace_other.ace_attribute-name {
|
||||
color: #e06c75
|
||||
}
|
||||
.ace_entity.ace_name.ace_function {
|
||||
color: #61afef
|
||||
}
|
||||
.ace_entity.ace_name.ace_tag {
|
||||
color: #e06c75
|
||||
}
|
||||
.ace_markup.ace_heading {
|
||||
color: #98c379
|
||||
}
|
||||
.ace_indent-guide {
|
||||
background: none;
|
||||
border-right: 1rem solid rgba(white, 0.05)
|
||||
}
|
||||
.ace_tooltip {
|
||||
left:$padding!important
|
||||
}
|
||||
// .ace_search {
|
||||
// position: fixed;
|
||||
// top: var(--nav-height);
|
||||
// margin-top: $padding;
|
||||
// right: $padding * 2;
|
||||
// border-radius: 3rem;
|
||||
// }
|
||||
}
|
||||
|
||||
|
||||
osc-inspector-category {
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue