diff options
| author | Kyren223 <Kyren223@proton.me> | 2025-02-08 18:15:58 +0200 |
|---|---|---|
| committer | Kyren223 <Kyren223@proton.me> | 2025-02-08 18:15:58 +0200 |
| commit | 016e91c72e52b2f33a5e244a883327ca277debec (patch) | |
| tree | eac32a80435c53220e3890ecde06cd8a2746a390 /internal/client/ui/core/usersettings | |
| parent | a08694d8848fca916f1fde46efd61796a1d67912 (diff) | |
Network join colors are now runtime-friendly
Diffstat (limited to 'internal/client/ui/core/usersettings')
| -rw-r--r-- | internal/client/ui/core/usersettings/usersettings.go | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/internal/client/ui/core/usersettings/usersettings.go b/internal/client/ui/core/usersettings/usersettings.go index 49fa4ea..b4ca29d 100644 --- a/internal/client/ui/core/usersettings/usersettings.go +++ b/internal/client/ui/core/usersettings/usersettings.go @@ -130,17 +130,22 @@ func (m Model) View() string { } private = privateStyle.Render(private) - update := lipgloss.NewStyle().Width(m.nameWidth). - Background(colors.Background).Align(lipgloss.Center). + update := lipgloss.NewStyle(). + Width(m.nameWidth). + Background(colors.Background). + Align(lipgloss.Center). Render(m.update) content := flex.NewVertical(name, description, private, update).WithGap(1).View() return lipgloss.NewStyle(). - Padding(1, 4).Align(lipgloss.Center, lipgloss.Center). Border(lipgloss.ThickBorder()). - BorderBackground(colors.Background).BorderForeground(colors.White). - Background(colors.Background).Foreground(colors.White). + Padding(1, 4). + Align(lipgloss.Center, lipgloss.Center). + BorderBackground(colors.Background). + BorderForeground(colors.White). + Background(colors.Background). + Foreground(colors.White). Render(content) } |
