Skip to content

Commit

Permalink
Fix TextEditor icon and use it for the windows
Browse files Browse the repository at this point in the history
  • Loading branch information
andydotxyz committed Jun 21, 2019
1 parent 650f798 commit 6de4e67
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion cmd/textedit/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@ package main
import (
"fyne.io/fyne/app"

"github.com/fyne-io/examples/img/icon"
"github.com/fyne-io/examples/textedit"
)

func main() {
app := app.New()
// app.SetIcon(icon.TexteditBitmap)
app.SetIcon(icon.TextEditorBitmap)

textedit.Show(app)
app.Run()
Expand Down
2 changes: 1 addition & 1 deletion img/icon/bundled.go

Large diffs are not rendered by default.

Binary file modified img/icon/texteditor.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions textedit/ui.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import (
"fyne.io/fyne/layout"
"fyne.io/fyne/theme"
"fyne.io/fyne/widget"

"github.com/fyne-io/examples/img/icon"
)

type textEdit struct {
Expand All @@ -22,6 +24,7 @@ func (e *textEdit) updateStatus() {
// Show loads a new text editor
func Show(app fyne.App) {
window := app.NewWindow("Text Editor")
window.SetIcon(icon.TextEditorBitmap)

entry := widget.NewMultiLineEntry()
toolbar := widget.NewToolbar(widget.NewToolbarAction(theme.DocumentCreateIcon(), func() {
Expand Down

0 comments on commit 6de4e67

Please sign in to comment.