windows fixes (#374)

Co-authored-by: Matthew Glazar <strager.nds@gmail.com>
This commit is contained in:
Dax
2025-06-24 18:05:04 -04:00
committed by GitHub
parent a2d3b9f0c8
commit ec001ca02f
5 changed files with 31 additions and 4 deletions

View File

@@ -6,6 +6,7 @@ import (
"fmt"
"image/color"
"os"
"path"
"path/filepath"
"strings"
@@ -42,7 +43,7 @@ func LoadThemesFromJSON() error {
continue
}
themeName := strings.TrimSuffix(entry.Name(), ".json")
data, err := themesFS.ReadFile(filepath.Join("themes", entry.Name()))
data, err := themesFS.ReadFile(path.Join("themes", entry.Name()))
if err != nil {
return fmt.Errorf("failed to read theme file %s: %w", entry.Name(), err)
}