diff options
| author | Tulir Asokan <tulir@maunium.net> | 2020-09-11 19:07:54 +0300 |
|---|---|---|
| committer | Tulir Asokan <tulir@maunium.net> | 2020-09-11 19:07:54 +0300 |
| commit | a0470519d74cebb70b5699e9f5c9dd4982fcabe3 (patch) | |
| tree | fa06943102d9195569d315eab80cd69628f7b39b /README.md | |
| parent | 32058373ff6398fe8b53bc4f4acb577b4fa159e1 (diff) | |
Add support for dark theme. Fixes #17
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -30,7 +30,7 @@ This requires logging in with your account instead of a bot token. "stickerpicker": { "content": { "type": "m.stickerpicker", - "url": "https://your.sticker.picker.url/index.html", + "url": "https://your.sticker.picker.url/?theme=$theme", "name": "Stickerpicker", "data": {} }, @@ -44,6 +44,9 @@ This requires logging in with your account instead of a bot token. If you do not yet have a `m.widgets` event, simply create it with that content. You can also [use the client-server API directly][1] instead of using Element Web. + + The `theme=$theme` query parameter will make the widget conform to Element's theme automatically. + You can also use `light`, `dark` or `black` instead of `$theme` to always use a specific theme. 3. Open the sticker picker and enjoy the fast sticker picking experience. [1]: https://matrix.org/docs/spec/client_server/latest#put-matrix-client-r0-user-userid-account-data-type |
