Skip to content

clinton-mwachia/FyneCookbook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

89 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📘 FyneCookbook

Webiste: FyneCookbook

FyneCookbook is a learning resource for the Fyne toolkit in Go. It provides examples, recipes, and reusable snippets for building modern desktop, mobile, and cross-platform applications with Fyne v2.6.1.

This website is powered by Startlight


🚀 Features

  • 📂 Organized examples for widgets, layouts, dialogs, menus, shortcuts, system tray, preferences, and more.
  • 🎨 Demonstrates custom theming with your own colors, icons, and styles.
  • 🌐 Shows how to add translations (i18n) using JSON.
  • 💾 Covers Preferences API for saving user settings.
  • 🖼️ Includes metadata configuration via FyneApp.toml.
  • 🔔 Demonstrates system tray integration for desktop apps.
  • ⚡ Practical CRUD example with table widget.
  • 📑 Easy-to-follow recipes, each one standalone and extendable.

📦 Installation

Clone the repository:

git clone https://github.com/clinton-mwachia/fyneCookbook.git
cd fyneCookbook

Run the app:

npm install

Run the app

npm run dev

📚 Example Recipes

  • UI Components: Labels, Buttons, Lists, Tables, Forms
  • Dialogs: Confirm, Info, FileOpen, Custom dialogs
  • Theme: Light/Dark mode toggle, custom theme, custom icons
  • Menus: System tray, shortcuts, global menus
  • Data: Preferences API, metadata, translations (JSON-based)
  • Advanced: CRUD with tables, resizing, layouts

🌍 Translations

Example en.json file:

{
  "hello": "Hello",
  "goodbye": "Goodbye"
}

Load translations at runtime with the translation recipe.


📦 Metadata

FyneApp.toml handles build metadata:

[Details]
Name = "FyneCookbook"
ID = "com.moshecrafts.fynecookbook"
Version = "1.0.0"
Icon = "assets/icon.png"

🤝 Contributing

Contributions are welcome! Feel free to fork, improve, and submit pull requests with new recipes or bug fixes.


📜 License

MIT License © 2025 Moshe Crafts

About

Fyne Cookbook – Practical GUI Recipes in Go

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors