diff options
| author | Kyren223 <Kyren223@proton.me> | 2025-07-08 23:11:22 +0300 |
|---|---|---|
| committer | Kyren223 <Kyren223@proton.me> | 2025-07-19 18:28:12 +0300 |
| commit | 013b65b30f463afa4abb07c22ab90ac51e15bea2 (patch) | |
| tree | 682aedf4d05536a4ff07a8e83c86f511808c500e /internal/client/ui | |
| parent | 15c045f5dfc025c91b4bfafd6119a3f373195384 (diff) | |
Rephrased device analytics line in user settings to avoid background
issues
Diffstat (limited to 'internal/client/ui')
| -rw-r--r-- | internal/client/ui/core/usersettings/usersettings.go | 12 |
1 files changed, 4 insertions, 8 deletions
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(). |
