Skip to content

Commit 802ccc3

Browse files
authored
Merge pull request #30 from togglebyte/dev
Dev
2 parents e5191f8 + 7cfdd35 commit 802ccc3

File tree

4 files changed

+31
-2
lines changed

4 files changed

+31
-2
lines changed

CONTRIBUTING.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Contributing to the Anathema Guide
2+
3+
Base your fork on the "dev" branch:
4+
```
5+
git clone https://github.com/togglebyte/anathema-guide
6+
git switch dev
7+
```
8+
9+
Submit any PR to be merged back into the "dev" branch.
10+
11+
## Getting help
12+
13+
For help ask on [Discord](https://discord.gg/yZgdmXKf6p).

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
# Anathema guide
22

33
[The Guide](https://togglebyte.github.io/anathema-guide/) to using the Anathema TUI library.
4+
5+
## Contributing
6+
7+
See `CONTRIBUTING.md`

src/runtime.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ let mut backend = TuiBackend::builder()
1818
backend.finalize();
1919
2020
let mut builder = Runtime::builder(doc, &backend);
21-
runtime.fps(30); // default
22-
runtime.finish(&mut backend, |rt, backend| rt.run(backend)).unwrap();
21+
builder.fps(30); // default
22+
builder.finish(&mut backend, |rt, backend| rt.run(backend)).unwrap();
2323
```
2424

2525
## Registering components

src/templates/elements/border.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,18 @@ border [border_style: "thick"]
8787
╚══════════════╝
8888
```
8989

90+
For rounded corners use `"rounded"` as the `border_style`.
91+
92+
```
93+
border [border_style: "rounded"]
94+
text "What a border!"
95+
```
96+
```
97+
╭──────────────╮
98+
│What a border!│
99+
╰──────────────╯
100+
```
101+
90102
It's also possible to customise the border style by providing an eight character
91103
string as input, where each character represents a section of the border in the
92104
following order:

0 commit comments

Comments
 (0)