Skip to content

Commit

Permalink
fix(widget): correct syntax error in weather_card configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
amnweb committed Jan 13, 2025
1 parent 4f4e41c commit 454b8b8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions docs/widgets/(Widget)-Weather.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
| `api_key` | string | `'0'` | The API key for accessing the weather service. |
| `icons` | dict | `{ 'sunnyDay': '\ue30d', 'clearNight': '\ue32b', 'cloudyDay': '\ue312', 'cloudyNight': '\ue311', 'rainyDay': '\udb81\ude7e', 'rainyNight': '\udb81\ude7e', 'snowyIcyDay': '\udb81\udd98', 'snowyIcyNight': '\udb81\udd98', 'blizzard': '\uebaa', 'default': '\uebaa' }` | A dictionary of icons for different weather conditions. |
| `callbacks` | dict | `{ 'on_left': 'do_nothing', 'on_middle': 'do_nothing', 'on_right': 'do_nothing' }` | Callbacks for mouse events on the weather widget. |
| `weather_card` | dict | `{ 'enabled': True, 'blur': True, 'round_corners': True, 'round_corners_type': 'normal', 'border_color': 'System', 'alignment': 'right', 'direction': 'down', 'distance': 6, 'icon_size': 64 }` | Configuration for the weather card popup display. Controls visibility, appearance, and positioning. |
| `weather_card` | dict | `{ blur': True, 'round_corners': True, 'round_corners_type': 'normal', 'border_color': 'System', 'alignment': 'right', 'direction': 'down', 'distance': 6, 'icon_size': 64 }` | Configuration for the weather card popup display. Controls visibility, appearance, and positioning. |
| `animation` | dict | `{'enabled': True, 'type': 'fadeInOut', 'duration': 200}` | Animation settings for the widget. |
| `container_padding` | dict | `{'top': 0, 'left': 0, 'bottom': 0, 'right': 0}` | Explicitly set padding inside widget container. |

Expand Down Expand Up @@ -43,7 +43,6 @@ weather:
blizzard: "\uebaa"
default: "\uebaa"
weather_card:
enabled: True
blur: True
round_corners: True
round_corners_type: "normal"
Expand All @@ -65,7 +64,6 @@ weather:
- **units:** The units for the weather data. Can be `'metric'` or `'imperial'`.
- **icons:** A dictionary of icons for different weather conditions `sunnyDay`, `sunnyNight`, `clearDay`, `clearNight`, `cloudyDay`, `cloudyNight`, `rainyDay`, `rainyNight`, `snowyIcyDay`, `snowyIcyNight`, `blizzard`, `default`.
- **weather_card:** Configuration for the weather card popup display. Controls visibility, appearance, and positioning.
- **enabled:** Enable weather card.
- **blur:** Enable blur effect for the weather card.
- **round_corners:** Enable round corners for weather card.
- **round_corners_type:** Border type for weather card can be `normal` and `small`. Default is `normal`.
Expand Down

0 comments on commit 454b8b8

Please sign in to comment.