summaryrefslogtreecommitdiff
path: root/internal/client/ui/core/usersettings
diff options
context:
space:
mode:
authorKyren223 <Kyren223@proton.me>2025-02-08 18:15:58 +0200
committerKyren223 <Kyren223@proton.me>2025-02-08 18:15:58 +0200
commit016e91c72e52b2f33a5e244a883327ca277debec (patch)
treeeac32a80435c53220e3890ecde06cd8a2746a390 /internal/client/ui/core/usersettings
parenta08694d8848fca916f1fde46efd61796a1d67912 (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.go15
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)
}