mirror of
https://github.com/Xevion/HATray.git
synced 2025-12-10 14:07:28 -06:00
feat!: complete rearrangement for multi-module platform-specific modules
This commit is contained in:
16
internal/config.go
Normal file
16
internal/config.go
Normal file
@@ -0,0 +1,16 @@
|
||||
package internal
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"log/slog"
|
||||
"os"
|
||||
)
|
||||
|
||||
func getIcon(icon string) []byte {
|
||||
iconBytes, err := icons.ReadFile(fmt.Sprintf("resources/%s.ico", icon))
|
||||
if err != nil {
|
||||
slog.Error("Unable to load icon", "error", err)
|
||||
os.Exit(1)
|
||||
}
|
||||
return iconBytes
|
||||
}
|
||||
Reference in New Issue
Block a user