diff --git a/src/win/icon_windows_386.syso b/src/win/icon_windows_386.syso new file mode 100644 index 0000000..5289d69 Binary files /dev/null and b/src/win/icon_windows_386.syso differ diff --git a/src/win/main.go b/src/win/main.go index 820685c..0c1bd0b 100644 --- a/src/win/main.go +++ b/src/win/main.go @@ -6,6 +6,7 @@ import ( "fmt" "os" "path/filepath" + "runtime" "time" humanize "github.com/dustin/go-humanize" @@ -35,8 +36,13 @@ func main() { app := widgets.NewQApplication(len(os.Args), os.Args) window := widgets.NewQMainWindow(nil, 0) - window.SetFixedSize2(400, 150) - window.SetWindowTitle("🐊📦 croc " + Version) + if runtime.GOOS == "windows" { + window.SetFixedSize2(300, 150) + window.SetWindowTitle("croc " + Version) + } else { + window.SetFixedSize2(400, 150) + window.SetWindowTitle("🐊📦 croc " + Version) + } widget := widgets.NewQWidget(nil, 0) widget.SetLayout(widgets.NewQVBoxLayout())