mirror of
https://github.com/schollz/croc.git
synced 2025-10-11 13:21:00 +02:00
add windows icon
This commit is contained in:
parent
06e8260e50
commit
4aab058344
2 changed files with 8 additions and 2 deletions
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)
|
||||
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…
Add table
Add a link
Reference in a new issue