96 lines
960 B
JavaScript
96 lines
960 B
JavaScript
|
|
|
||
|
|
|
||
|
|
export default class header{
|
||
|
|
|
||
|
|
constructor( text, gridName ) {
|
||
|
|
|
||
|
|
this.text = text;
|
||
|
|
this.gridArea = gridName;
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
gridArea = "passwordLabel";
|
||
|
|
|
||
|
|
text = "password";
|
||
|
|
|
||
|
|
color = "#665f5f";
|
||
|
|
|
||
|
|
padding = 10;
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
#ifdef WINDOWS
|
||
|
|
|
||
|
|
fontWeight = "bold";
|
||
|
|
|
||
|
|
fontSize = 24;
|
||
|
|
|
||
|
|
margin = 0;
|
||
|
|
|
||
|
|
#ifdef DARK
|
||
|
|
|
||
|
|
color = "white"
|
||
|
|
|
||
|
|
//background = "#1c1c1c61";
|
||
|
|
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#ifdef LIGHT
|
||
|
|
|
||
|
|
color = "#282626";
|
||
|
|
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#endif
|
||
|
|
|
||
|
|
|
||
|
|
#ifdef MACOS
|
||
|
|
|
||
|
|
margin = 6;
|
||
|
|
|
||
|
|
fontWeight = "bold";
|
||
|
|
|
||
|
|
fontSize = 16;
|
||
|
|
|
||
|
|
marginLeft = 4;
|
||
|
|
|
||
|
|
#ifdef DARK
|
||
|
|
|
||
|
|
color = "white"
|
||
|
|
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#ifdef LIGHT
|
||
|
|
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#endif
|
||
|
|
|
||
|
|
|
||
|
|
#ifdef ANDROID
|
||
|
|
|
||
|
|
text = "Menu";
|
||
|
|
|
||
|
|
flexDirection = "column";
|
||
|
|
|
||
|
|
fontSize = 36;
|
||
|
|
|
||
|
|
paddingTop = 100;
|
||
|
|
|
||
|
|
fontWeight = "300"
|
||
|
|
|
||
|
|
paddingBottom = 100;
|
||
|
|
|
||
|
|
textAlign = "center";
|
||
|
|
|
||
|
|
width = "100vw";
|
||
|
|
|
||
|
|
padding = "0"
|
||
|
|
|
||
|
|
margin = 0;
|
||
|
|
|
||
|
|
#endif
|
||
|
|
|
||
|
|
}
|
||
|
|
|