`
Usually you should store all files used by the webview in the Preset's data directory. You can reference these files from within the webview using the presetfile:// protocol. For example `
`
### Refreshing the Content
By default the content of the webview will stay loaded in background and it is assumed that it doesn't change. However during development you often want to see the latest changes immediately. To achieve this, open the advanced section and select "Do NOT keep content active in background". Afterwards the webview will reload everytime you hide/unhide it.
results matching ""
===================
No results matching ""
======================
---
# Standard Button & Formatting · GitBook
[Standard Button & Formatting](https://docs.folivora.ai/)
==========================================================
Standard Stream Deck Buttons
============================
This documentation uses the following example preset to explain some of the features. [Example Preset Direct Link](https://folivora.ai/releases/ExampleStreamDeck.bttpreset)

Function
--------
Stream Deck Buttons can be used to trigger any sort of action in BetterTouchTool. In their standard configuration a button press triggers the assigned action sequence as soon as you press the button down.
Appearance
----------
There are many ways to customize the appearance of Stream Deck buttons in BetterTouchTool:
* Changing the background color
* Using rich text including any color and font combination
* Using all sorts of icons including SF Symbol icons (see [https://developer.apple.com/sf-symbols/](https://developer.apple.com/sf-symbols/)
)
BetterTouchTool integrates a very basic rich text editor that lets you adjust fonts, colors & spacing. For more control you can also use the Apple Text Edit app and then just copy the formatted text into the BTT editor.
### Example: Adjusting Space Between Lines
To adjust the spacing between lines select the "Other..." option from the spacing dropdown:

In BTT the "Line height - at most" setting works best to make smaller spacing:

Advanced Configuration
----------------------
Stream Deck Buttons do offer various advanced options, see the following examples:
* [Button with different actions for long press and short press](https://docs.folivora.ai/docs/1302_stream_deck_long_press.html)
* [Button which repeats its actions while being pressed](https://docs.folivora.ai/docs/1303_stream_deck_repeat.html)
* [Showing buttons only on specific devices](https://docs.folivora.ai/docs/1305_stream_deck_specific_devices.html)
results matching ""
===================
No results matching ""
======================
---
# Development Hints · GitBook
[Development Hints](https://docs.folivora.ai/)
===============================================
Development Hints
-----------------
Some useful tips & tricks that make working with the web view easier.
1.) **Use an external HTML file.** Best solution is to place it in the preset's data folder and reference it using BTT\_PRESET\_PATH/thenameofthefile.html. You can use your facorite editor (I recommend Visual Studio Code) to edit the file. .
2.) **Disable caching while developing.** You probably want the webview to automatically reload when hiding / closing it. To achieve this, enable the "DO NOT keep active in background" option. .
3.) **Use the debugger / inspector.** You can right-click any BTT webview and choose "Inspect Element" to open the webview inspector. This can be a bit slow though. If you want faster debugging enable Safari's developer mode, then you can also access the BTT webviews through the Safari Develop menu:
.
results matching ""
===================
No results matching ""
======================
---
# Starter Template · GitBook
[Starter Template](https://docs.folivora.ai/)
==============================================
A simple example menu that shows various possibilities:
It should look like this: 