diff --git a/main.go b/main.go index 3432d1e..7be651b 100644 --- a/main.go +++ b/main.go @@ -5,7 +5,6 @@ import ( "encoding/xml" "errors" "fmt" - _ "image/color" "io" "log" "math/rand/v2" @@ -29,13 +28,9 @@ import ( "github.com/shreve/musicwand/pkg/mpris" // xmpp - required - _ "mellium.im/xmpp/disco" "mellium.im/xmpp/jid" "mellium.im/xmpp/muc" - _ "mellium.im/xmpp/stanza" oasisSdk "pain.agency/oasis-sdk" - // gui - optional - // catppuccin "github.com/mbaklor/fyne-catppuccin" // TODO: integrated theme switcher ) @@ -81,14 +76,14 @@ type CustomMultiLineEntry struct { } func isUTF8Locale() bool { - localeVars := []string{"LC_ALL", "LC_CTYPE", "LANG"} - for _, envVar := range localeVars { - value := os.Getenv(envVar) - if strings.Contains(strings.ToLower(value), "utf-8") { - return true - } - } - return false + localeVars := []string{"LC_ALL", "LC_CTYPE", "LANG"} + for _, envVar := range localeVars { + value := os.Getenv(envVar) + if strings.Contains(strings.ToLower(value), "utf-8") { + return true + } + } + return false } func NewCustomMultiLineEntry() *CustomMultiLineEntry { @@ -435,7 +430,7 @@ func main() { notifications = config.Notifications if isUTF8Locale() { - replyBodyIcon = "↱" + replyBodyIcon = "↱" replyNameIcon = "→ " }