forked from SAtacker/quick-ftxui
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Feature] Adding text and separator dom elements (#14)
* Bumped up FTXUI to 5.0.0 * Text also supports color formatting * Separator supports Dashed, Light, Heavy and Double styles Signed-off-by: Vedant <[email protected]>
- Loading branch information
Showing
6 changed files
with
138 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
Vertical{ | ||
text("Normal") | ||
Normal separator | ||
text("Light") | ||
Light separator | ||
text("Heavy") | ||
Heavy separator | ||
Horizontal { | ||
text("Double") | ||
Double separator | ||
text("lorem ipsum") | ||
} | ||
separator | ||
text("Dashed") | ||
Dashed separator | ||
Button { | ||
"Exit", | ||
"Exit", | ||
Animated | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
Vertical { | ||
Blue text("The given button opens chrome in Linux") | ||
str a | ||
Red Button { | ||
"chrome", | ||
System("/usr/bin/google-chrome-stable"), | ||
Animated, | ||
a | ||
} | ||
Green text("This text is Green") | ||
Button { | ||
"Exit", | ||
"Exit" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters