First commit
This commit is contained in:
73
application/elements/panel/row.js
Normal file
73
application/elements/panel/row.js
Normal file
@@ -0,0 +1,73 @@
|
||||
|
||||
|
||||
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
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user