Skip to content

Commit a39a1ae

Browse files
authored
more fixes to readme lol
1 parent 16a7e4b commit a39a1ae

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

README.md

+13-12
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@ An **insanely** customizable way to interact with Home Assistant in the menubar
1010
- [App Configuration](#app-configuration)
1111
- [Menubar Configuration](#menubar-configuration)
1212
- [Menu Item Types](#menu-item-types)
13-
- [Icons](#icons)
14-
- [Templating](#templating)
13+
- [MenuAction](#menuaction)
14+
- [Icons](#icons)
15+
- [Templating](#templating)
1516

1617
# Installation
1718

@@ -173,7 +174,7 @@ Looks like a label but opens Home Assistant in your browser when clicked.
173174
* **required** `label` {`String`}: The label for this item
174175
* `icon` {`String`}: The icon name for this item
175176

176-
# `MenuAction`
177+
## MenuAction
177178

178179
A `MenuAction` is how you can interact with Home Assistant.
179180

@@ -192,7 +193,7 @@ A `MenuAction` is how you can interact with Home Assistant.
192193
}
193194
```
194195

195-
# Icons
196+
## Icons
196197

197198
To add an icon to your Menu Bar follow these steps
198199

@@ -206,7 +207,7 @@ To add an icon to your Menu Bar follow these steps
206207
* Make the size of your image `32x32`
207208
* Add `@2x` to the end of your file name to make it a "High Resolution Image" (Read below for more information)
208209

209-
## High Resolution Image
210+
### High Resolution Image
210211

211212
To make your image look better in the Menubar you can make it "High Resolution" which increases the DPI. Here are the following options:
212213

@@ -227,35 +228,35 @@ Just add one of these to the end of your file.
227228
#### Example
228229
`icon.png` -> `[email protected]`
229230

230-
## Icon Templates
231+
### Icon Templates
231232

232233
It is recommended that your icons are made a template. To make your icon a template
233234

234235
* Your image **must** be only black pixels with a transparent background
235236
* Add `Template` to the end of the name of your file.
236237

237-
## File Name Examples
238+
### File Name Examples
238239

239240
* `icon.png` -> `iconTemplate.png`
240241
241242

242-
## [More Information Here](https://www.electronjs.org/docs/latest/api/native-image#high-resolution-image)
243+
### [More Information Here](https://www.electronjs.org/docs/latest/api/native-image#high-resolution-image)
243244

244-
# Templating
245+
## Templating
245246

246247
**The customization is not over!** You can also use Home Assistant Templates in certain fields!
247248

248-
## Supported Fields
249+
### Supported Fields
249250

250251
* `label`
251252
* `icon`
252253
* `title`
253254

254-
## Converting To Templates
255+
### Converting To Templates
255256

256257
To make a field a template just add `Template` to the end of the field name and put your template in the value.
257258

258-
## Example
259+
#### Example
259260
```json
260261
{
261262
"labelTemplate": "{{ states('light.my_light') }}"

0 commit comments

Comments
 (0)