summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--internal/client/config/config.go4
-rw-r--r--internal/client/ui/core/chat/chat.go2
-rw-r--r--internal/client/ui/core/frequencycreation/frequencycreation.go3
-rw-r--r--internal/client/ui/core/frequencyupdate/frequencyupdate.go3
-rw-r--r--internal/packet/packet.go2
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 {