Introduce Config to NBCL
- Panel height in config file - Update component name, too
This commit is contained in:
parent
f0b919c4ca
commit
74b209b1e6
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
nbcl/config.nbcl
|
||||
@ -1 +1,2 @@
|
||||
import "nbcl/config.nbcl" as config
|
||||
import "nbcl/panel/panel_window.nbcl" as ewwii_panel
|
||||
3
nbcl/config.example.nbcl
Normal file
3
nbcl/config.example.nbcl
Normal file
@ -0,0 +1,3 @@
|
||||
# Example config
|
||||
|
||||
const panel_height = 27
|
||||
@ -1,4 +1,4 @@
|
||||
component PanelComp () {
|
||||
component EwwiiPanel () {
|
||||
Box {
|
||||
orinetation = "horizontal"
|
||||
halign = "center"
|
||||
|
||||
@ -9,13 +9,13 @@ Window "ewwii_panel" {
|
||||
anchor = "top center"
|
||||
x = "0px"
|
||||
y = "0px"
|
||||
height = "27px"
|
||||
height = config.panel_height.to_string() +"px"
|
||||
width = "100%"
|
||||
}
|
||||
reserve = {
|
||||
distance = "27px"
|
||||
distance = config.panel_height.to_string() +"px"
|
||||
side = "top"
|
||||
}
|
||||
|
||||
PanelComp {}
|
||||
EwwiiPanel {}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user