Skip to content

Commit

Permalink
WUnderground weather widget update
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkXero-dev committed Mar 21, 2024
1 parent 66665f9 commit c12f8f5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ let iconThemeMap = {
4: "weather-storm-symbolic",
5: "weather-snow-rain-symbolic",
6: "weather-snow-rain-symbolic",
7: "weather-freezing-scattered-symbolic",
7: "weather-freezing-rain-symbolic",
8: "weather-freezing-rain-symbolic",
9: "weather-showers-scattered-symbolic",
10: "weather-freezing-rain-symbolic",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,13 @@ GridLayout {
Kirigami.Icon {
id: topPanelIcon

source: "plasmoid/contents/images/wind-barbs/" + Utils.getWindBarb(weatherData["details"]["windSpeed"])+ ".svg"
source: "gnumeric-object-arrow-symbolic"
//source: "plasmoid/contents/images/wind-barbs/" + Utils.getWindBarb(weatherData["details"]["windSpeed"])+ ".svg"

rotation: weatherData["winddir"] - 270
// wind barb icons are -90/270 degrees deviated from 0 degrees (north)
//rotation: weatherData["winddir"] - 270
// new rotation for icons:
rotation: weatherData["winddir"] - 135

Layout.minimumWidth: Kirigami.Units.iconSizes.large
Layout.minimumHeight: Kirigami.Units.iconSizes.large
Expand Down

0 comments on commit c12f8f5

Please sign in to comment.