add docs regarding custom theme development (#461)

This commit is contained in:
Michał Leszczyński
2025-06-23 03:38:19 +02:00
committed by GitHub
parent 757ef477ea
commit cb835dcc68
2 changed files with 41 additions and 0 deletions

View File

@@ -0,0 +1,40 @@
# HaLo Gateway: Creating custom themes
## Creating a new theme
1. Obtain recent [halo-tools](https://github.com/arx-research/libhalo/releases) release.
2. In the working directory with the `halo-gateway` binary, run the following command:
```
git clone https://github.com/arx-research/halo-gateway-themes themes
```
3. Your resulting directory structure should resemble this:
```
$ find .
.
./halo-gateway
./themes
./themes/example
./themes/example/gateway_executor.html
./themes/example/lennyface.png
./themes/example/style.css
```
4. Copy the `themes/example` directory as `themes/<your-theme-name>` and edit it.
## Testing your theme
1. Launch `./halo-gateway --disable-cache` locally to so spin up a local server.
2. Connect with your server using [LibHaLo Demo on using Gateway](https://halo-demos.arx.org/examples/gateway_requestor.html), fill out the form as follows:
| Setting name | Setting value |
|----------------------------------------------------|----------------------------|
| Override the default gateway URL | `ws://127.0.0.1:32842` |
| Override the default URL in QR code | `http://127.0.0.1:32842/e` |
| Override theme name | `your-theme-name` |
| How would you like to sign the message | _(whatever)_ |
| Hex-encoded message to be signed with ECDSA/Keccak | _(whatever)_ |
3. Click on "Pair and request to sign with key #1" which should create a QR code (and a link) pointing to the gateway with your desired theme.
## Deploying your theme to public Arx HaLo Gateway servers
Feel free to create a Pull Request on [arx-research/halo-gateway-themes](https://github.com/arx-research/halo-gateway-themes) repository.