-
Notifications
You must be signed in to change notification settings - Fork 328
feat: New Border Title API #97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from 6 commits
b1cac8a
f3ebe5c
2b9468b
2795dbc
346a978
80468e0
32c0787
3e6dff3
fec27d1
cd06217
9b317d1
80169c0
27c2a27
314a2e2
78fea2f
0c829e8
4cf8c19
9e516bc
d59ed63
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| **/.idea/ | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -95,6 +95,8 @@ var ( | |
| dialogBoxStyle = lipgloss.NewStyle(). | ||
| Border(lipgloss.RoundedBorder()). | ||
| BorderForeground(lipgloss.Color("#874BFD")). | ||
| BorderTitleForeground(lipgloss.Color("#FFFFFF")). | ||
| BorderTitleAlignment(lipgloss.Center). | ||
| Padding(1, 0). | ||
| BorderTop(true). | ||
| BorderLeft(true). | ||
|
|
@@ -239,7 +241,7 @@ func main() { | |
|
|
||
| dialog := lipgloss.Place(width, 9, | ||
| lipgloss.Center, lipgloss.Center, | ||
| dialogBoxStyle.Render(ui), | ||
| dialogBoxStyle.Copy().BorderTitle(" Question ").Render(ui), | ||
|
||
| lipgloss.WithWhitespaceChars("猫咪"), | ||
| lipgloss.WithWhitespaceForeground(subtle), | ||
| ) | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.