Skip to content

Commit

Permalink
add icon
Browse files Browse the repository at this point in the history
  • Loading branch information
oq-x committed Jul 4, 2023
1 parent 9e2a956 commit 4ce72d3
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 2 deletions.
Binary file removed disk-icon-darwin.png
Binary file not shown.
2 changes: 2 additions & 0 deletions icons.go

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions qartion.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package main

import (
"fmt"
"os"
"runtime"

"fyne.io/fyne/v2"
Expand Down Expand Up @@ -144,6 +145,8 @@ func LoadData(c *fyne.Container) {

func main() {
a := app.New()
_, _ = os.ReadFile("C:\\Users\\Amirb\\Downloads\\transparent-qartion.png")
a.SetIcon(fyne.NewStaticResource("logo", Logo))
w := a.NewWindow("Qartion")
if runtime.GOOS != "darwin" && runtime.GOOS != "windows" {
card := widget.NewCard("Unsupported Platform", "Qartion does not support the platform you are using.", widget.NewButton("Exit", func() {
Expand Down
1 change: 1 addition & 0 deletions settings.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ func getDefaultIconTheme() (string, int) {

func LaunchSettings(a fyne.App) {
w := a.NewWindow("Qartion - Settings")
//a.SetIcon()
w.CenterOnScreen()
iconThemeSelect := widget.NewSelect(icons, func(s string) {
var index int
Expand Down
1 change: 0 additions & 1 deletion settings.json

This file was deleted.

1 change: 0 additions & 1 deletion t.txt

This file was deleted.

0 comments on commit 4ce72d3

Please sign in to comment.