Skip to content

Commit

Permalink
Add alignment test
Browse files Browse the repository at this point in the history
  • Loading branch information
Evertras committed Jan 29, 2024
1 parent 9fb4a5b commit 0dbdaec
Show file tree
Hide file tree
Showing 2 changed files with 77 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ demo-clocks: git-hooks
demo-command: git-hooks
@go run ./cmd/yakdash/main.go -c examples/command.yaml

.PHONY: demo-alignment
demo-alignment: git-hooks
@go run ./cmd/yakdash/main.go -c examples/alignment.yaml

################################################################################
# Build
bin/yakdash: git-hooks $(GO_FILES)
Expand Down
73 changes: 73 additions & 0 deletions examples/alignment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
layout:
screens:
- stack: vertical
children:
- stack: horizontal
children:
- name: "TL"
module: text
style:
align-vertical: top
align-horizontal: left
config:
text: "Top left"
- name: "TC"
module: text
config:
text: "Top center"
style:
align-vertical: top
align-horizontal: center
- name: "TR"
module: text
config:
text: "Top right"
style:
align-vertical: top
align-horizontal: right
- stack: horizontal
children:
- name: "CL"
module: text
style:
align-vertical: center
align-horizontal: left
config:
text: "Center left"
- name: "CC"
module: text
config:
text: "Center center"
style:
align-vertical: center
align-horizontal: center
- name: "CR"
module: text
config:
text: "Center right"
style:
align-vertical: center
align-horizontal: right
- stack: horizontal
children:
- name: "BL"
module: text
style:
align-vertical: bottom
align-horizontal: left
config:
text: "Bottom left"
- name: "BC"
module: text
config:
text: "Bottom center"
style:
align-vertical: bottom
align-horizontal: center
- name: "BR"
module: text
config:
text: "Bottom right"
style:
align-vertical: bottom
align-horizontal: right

0 comments on commit 0dbdaec

Please sign in to comment.