https://github.com/patitotective/tinydialogs
Tiny file dialogs bindings for Nim
https://github.com/patitotective/tinydialogs
color-picker dialogs nim nim-lang notifications tinyfd
Last synced: 2 days ago
JSON representation
Tiny file dialogs bindings for Nim
- Host: GitHub
- URL: https://github.com/patitotective/tinydialogs
- Owner: Patitotective
- License: mit
- Created: 2022-05-17T02:27:06.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-11-28T02:49:50.000Z (over 1 year ago)
- Last Synced: 2025-03-30T19:37:03.855Z (about 1 month ago)
- Topics: color-picker, dialogs, nim, nim-lang, notifications, tinyfd
- Language: C
- Homepage: https://patitotective.github.io/tinydialogs
- Size: 156 KB
- Stars: 20
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tinydialogs
High-level [Tiny file dialogs](https://sourceforge.net/projects/tinyfiledialogs) _v3.8.8_ Nim bindings.## Example
```nim
import std/os
import tinydialogsbeep()
notifyPopup("Message", "You just received a message from Beef", Info)
echo messageBox("Hey", "Do you want to receive more notifications?", YesNo, Question, Yes)
echo inputBox("Name", "Please enter your password :]", "")
echo saveFileDialog("Save the file", getCurrentDir() / "\0", ["*.txt", "*.text"], "Text file") # "\0" for an emtpy file
echo openFileDialog("Open the file", getCurrentDir() / "\0", ["*.txt", "*.text"], "Text file")
echo openMultipleFilesDialog("Open the files", getCurrentDir() / "\0", ["*.txt", "*.text"], "Text files")
echo selectFolderDialog("Open the directory of the file", getCurrentDir())
echo colorChooser("Choose a color")
echo colorChooser("Choose a color", "#000000") # Hex
echo colorChooser("Choose a color", [0u8, 0u8, 0u8]) # RGB
```Read more at the [docs](https://patitotective.github.io/tinydialogs).
## About
- GitHub: https://github.com/Patitotective/ImTemplate.
- Discord: https://discord.gg/U23ZQMsvwc.Contact me:
- Discord: **Patitotective#0127**.
- Twitter: [@patitotective](https://twitter.com/patitotective).
- Email: **[email protected]**.