diff options
| author | Kyren223 <Kyren223@proton.me> | 2025-07-03 14:44:28 +0300 |
|---|---|---|
| committer | Kyren223 <Kyren223@proton.me> | 2025-07-03 14:44:28 +0300 |
| commit | b0681791e3566eaed5d7df4c9c5c13bd1b2b68f8 (patch) | |
| tree | 2e697dcab63f0128f2e397614228ab77987434a0 /internal | |
| parent | b951d00f792360e84fe1d196b0dc92d9aabb18a4 (diff) | |
Fixed ci based on check-ci (incomplete)
Diffstat (limited to 'internal')
| -rw-r--r-- | internal/client/config/config.go | 4 | ||||
| -rw-r--r-- | internal/client/ui/core/chat/chat.go | 2 | ||||
| -rw-r--r-- | internal/client/ui/core/frequencycreation/frequencycreation.go | 3 | ||||
| -rw-r--r-- | internal/client/ui/core/frequencyupdate/frequencyupdate.go | 3 | ||||
| -rw-r--r-- | internal/packet/packet.go | 2 |
5 files changed, 4 insertions, 10 deletions
diff --git a/internal/client/config/config.go b/internal/client/config/config.go index c3264c5..4ceea6b 100644 --- a/internal/client/config/config.go +++ b/internal/client/config/config.go @@ -39,13 +39,13 @@ func VerifyAndFix(config *Config) error { if config.Colors != nil { for i, color := range config.Colors { if !colors.IsHex(color) { - return fmt.Errorf("Color at %v is not a valid hex color", i) + return fmt.Errorf("color at %v is not a valid hex color", i) } } if len(config.Colors) != colors.Count { return fmt.Errorf( - "Expected %v colors, got %v colors, set this value to null to use the default colors", + "expected %v colors, got %v colors, set this value to null to use the default colors", colors.Count, len(config.Colors), ) } diff --git a/internal/client/ui/core/chat/chat.go b/internal/client/ui/core/chat/chat.go index 89a066b..f9224e4 100644 --- a/internal/client/ui/core/chat/chat.go +++ b/internal/client/ui/core/chat/chat.go @@ -1570,7 +1570,7 @@ func (m *Model) SetWidth(width int) { func (m *Model) renderFrequencyName() string { name := "" - color := colors.White + var color lipgloss.Color networkId := state.NetworkId(m.networkIndex) if m.frequencyIndex != -1 && networkId != nil { diff --git a/internal/client/ui/core/frequencycreation/frequencycreation.go b/internal/client/ui/core/frequencycreation/frequencycreation.go index dac2392..8c25101 100644 --- a/internal/client/ui/core/frequencycreation/frequencycreation.go +++ b/internal/client/ui/core/frequencycreation/frequencycreation.go @@ -22,9 +22,6 @@ var ( padding = 4 headerStyle = func() lipgloss.Style { return lipgloss.NewStyle().Foreground(colors.Turquoise) } - focusStyle = func() lipgloss.Style { - return lipgloss.NewStyle().Background(colors.Background).Foreground(colors.Focus) - } underlineStyle = func(s string, width int, color lipgloss.Color) string { underline := strings.Repeat("━", width) diff --git a/internal/client/ui/core/frequencyupdate/frequencyupdate.go b/internal/client/ui/core/frequencyupdate/frequencyupdate.go index 2e1894f..5f54a6d 100644 --- a/internal/client/ui/core/frequencyupdate/frequencyupdate.go +++ b/internal/client/ui/core/frequencyupdate/frequencyupdate.go @@ -23,9 +23,6 @@ var ( padding = 4 headerStyle = func() lipgloss.Style { return lipgloss.NewStyle().Foreground(colors.Turquoise) } - focusStyle = func() lipgloss.Style { - return lipgloss.NewStyle().Background(colors.Background).Foreground(colors.Focus) - } underlineStyle = func(s string, width int, color lipgloss.Color) string { underline := strings.Repeat("━", width) diff --git a/internal/packet/packet.go b/internal/packet/packet.go index ffda3ef..543b227 100644 --- a/internal/packet/packet.go +++ b/internal/packet/packet.go @@ -97,7 +97,7 @@ func Init() { } func (e PacketType) IsSupported() bool { - return 0 <= e && e < PacketMax + return e < PacketMax } func (e PacketType) String() string { |
