1
0
mirror of https://github.com/schollz/croc.git synced 2024-12-25 23:03:18 +03:00

add windows icon

This commit is contained in:
Zack Scholl 2018-10-20 07:02:51 -07:00
parent 06e8260e50
commit 4aab058344
2 changed files with 8 additions and 2 deletions

Binary file not shown.

View File

@ -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())