From 013b65b30f463afa4abb07c22ab90ac51e15bea2 Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Tue, 8 Jul 2025 23:11:22 +0300 Subject: Rephrased device analytics line in user settings to avoid background issues --- internal/client/ui/core/usersettings/usersettings.go | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'internal/client/ui/core') diff --git a/internal/client/ui/core/usersettings/usersettings.go b/internal/client/ui/core/usersettings/usersettings.go index 1a8dfa3..e4f490c 100644 --- a/internal/client/ui/core/usersettings/usersettings.go +++ b/internal/client/ui/core/usersettings/usersettings.go @@ -144,23 +144,19 @@ func (m Model) View() string { configFile := "Config File: " + highlightedStyle().Render(config.ConfigFile) configFile = lipgloss.NewStyle(). + Background(colors.Background).Foreground(colors.White). Width(m.nameWidth). Render(configFile) option := highlightedStyle().Render("\"anonymous_device_analytics\": false") - analyticsOptOut := "Anonymous device analytics can be disabled by setting " + option + " in your config file" + analyticsOptOut := "Anonymous device analytics can be disabled in your config file by setting: " + option analyticsOptOut = lipgloss.NewStyle(). + Background(colors.Background).Foreground(colors.White). Width(m.nameWidth). Render(analyticsOptOut) - legalNote := "Official instance Terms of Service & Privacy Policy: " + highlightedStyle().Render("https://kyren.codes/eko/legal") - legalNote = lipgloss.NewStyle(). - Width(m.nameWidth). - Render(legalNote) - content := flex.NewVertical( - legalNote, analyticsOptOut, - configFile, name, description, private, update, + analyticsOptOut, configFile, name, description, private, update, ).WithGap(1).View() return lipgloss.NewStyle(). -- cgit v1.3.1