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:
parent
06e8260e50
commit
4aab058344
BIN
src/win/icon_windows_386.syso
Normal file
BIN
src/win/icon_windows_386.syso
Normal file
Binary file not shown.
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user