73 lines
722 B
JavaScript
73 lines
722 B
JavaScript
|
|
|
||
|
|
|
||
|
|
export default class panelRow{
|
||
|
|
|
||
|
|
width = "100%";
|
||
|
|
|
||
|
|
//layers = 1;
|
||
|
|
sizing = "border-box";
|
||
|
|
|
||
|
|
|
||
|
|
#ifdef WINDOWS
|
||
|
|
|
||
|
|
marginTop = 20;
|
||
|
|
|
||
|
|
#ifdef LIGHT
|
||
|
|
|
||
|
|
background = "#F7FAFC";
|
||
|
|
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#ifdef DARK
|
||
|
|
|
||
|
|
background = "#2b2b2b";
|
||
|
|
|
||
|
|
background = "#0c0e165c";
|
||
|
|
|
||
|
|
#endif
|
||
|
|
|
||
|
|
borderRadius = 12;
|
||
|
|
|
||
|
|
|
||
|
|
#endif
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
afterLoad() {
|
||
|
|
|
||
|
|
#ifdef MACOS
|
||
|
|
|
||
|
|
var children = this.parent.getChildren();
|
||
|
|
|
||
|
|
var count = children.length-1
|
||
|
|
|
||
|
|
var lastChild = children[count]
|
||
|
|
|
||
|
|
lastChild.borderBottom = "none";
|
||
|
|
|
||
|
|
#endif
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
#ifdef MACOS
|
||
|
|
|
||
|
|
margin = "0 6px";
|
||
|
|
|
||
|
|
#ifdef LIGHT
|
||
|
|
|
||
|
|
borderBottom = "1px solid rgb(241 241 241)"
|
||
|
|
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#ifdef DARK
|
||
|
|
|
||
|
|
borderBottom = "1px solid #ffffff26"
|
||
|
|
|
||
|
|
width = "96%"
|
||
|
|
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#endif
|
||
|
|
|
||
|
|
}
|