notedeck

One damus client to rule them all
git clone git://jb55.com/notedeck
Log | Files | Refs | README | LICENSE

commit bf7775467d2292386516d04ac5d9dd5063b8fe31
parent 05fe164a49357f4e50e61ef9c61b46e30af1c709
Author: William Casarin <jb55@jb55.com>
Date:   Fri, 19 Apr 2024 22:16:54 -0700

readme: document previews

Signed-off-by: William Casarin <jb55@jb55.com>

Diffstat:
MREADME.md | 24++++++++++++++++++++++++
1 file changed, 24 insertions(+), 0 deletions(-)

diff --git a/README.md b/README.md @@ -76,8 +76,32 @@ The app should appear on the emulator [direnv]: https://direnv.net/ [nix]: https://nixos.org/download/ +## Previews + +You can preview individual widgets and views by running the preview script: + +```bash +./preview RelayView +./preview ProfilePreview +# ... etc +``` + +When adding new previews you need to implement the Preview trait for your +view/widget and then add it to the `src/ui_preview/main.rs` bin: + +```rust +previews!(runner, name, + RelayView, + AccountLoginView, + ProfilePreview, +); +``` + + ## Contributing + Configure the developer environment: + ```bash ./scripts/dev_setup.sh ```