28 lines
824 B
Plaintext
28 lines
824 B
Plaintext
# 3 Sections of the panel
|
|
import "nbcl/panel/panel_section_left.nbcl" as panel_section_left { * }
|
|
import "nbcl/panel/panel_section_center.nbcl" as panel_section_center { * }
|
|
import "nbcl/panel/panel_section_right.nbcl" as panel_section_right { * }
|
|
|
|
component PanelSection (section_side, widg_align) {
|
|
Box {
|
|
orinetation = "horizontal"
|
|
halign = "center"
|
|
class = "panel_section panel_section_" + section_side
|
|
height = config.panel_height
|
|
width = config.panel_width/3
|
|
space_evenly = true
|
|
|
|
match section_side {
|
|
"left" => panel_section_left.panel_left()
|
|
"center" => panel_section_center.panel_center()
|
|
"right" => panel_section_right.panel_right()
|
|
}
|
|
}
|
|
}
|
|
|
|
fn panel_section(section_side, widg_align) {
|
|
PanelSection "section_${section_side}" {
|
|
section_side = section_side
|
|
widg_align = widg_align
|
|
}
|
|
} |