-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: make changes after repo moved here (#27)
* go mod edit -module gio.tools/icons * go mod edit -go 1.21.0 * have the generator make the base package's data and the browser's icon data
- Loading branch information
1 parent
4c9c3ef
commit 1ab7898
Showing
9 changed files
with
2,025 additions
and
1,000 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
gio-icon-browser | ||
wasm_assets | ||
/gio-icon-browser | ||
/wasm_assets |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package icons | ||
|
||
import "gioui.org/widget" | ||
|
||
// The function `MustIcon` is primarily used to parse each icon's source. Shortening the | ||
// name to `mi` reduces the generated file size by about 6kb. | ||
var mi = MustIcon | ||
|
||
// MustIcon returns a new `*widget.Icon` for the given byte slice or panics on error. | ||
func MustIcon(data []byte) *widget.Icon { | ||
ic, err := widget.NewIcon(data) | ||
if err != nil { | ||
panic(err) | ||
} | ||
return ic | ||
} |