From 016e91c72e52b2f33a5e244a883327ca277debec Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Sat, 8 Feb 2025 18:15:58 +0200 Subject: Network join colors are now runtime-friendly --- internal/client/ui/core/usersettings/usersettings.go | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'internal/client/ui/core/usersettings') 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) } -- cgit v1.3.1