Skip to content

Commit

Permalink
Wind vane and wintry mix icon change: #52
Browse files Browse the repository at this point in the history
  • Loading branch information
k-donn committed Mar 20, 2024
1 parent ad1bd62 commit 4daf558
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ Big thanks to [Zren](https://github.com/Zren) for the files [NoApplyField](./pla

- Porting
- [ ] Update icons
- [ ] Add AQI
- [ ] Update i18n merge/build scripts

- i18n
Expand Down
2 changes: 1 addition & 1 deletion plasmoid/contents/code/pws-api.js
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
8 changes: 6 additions & 2 deletions plasmoid/contents/ui/DetailsItem.qml
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 4daf558

Please sign in to comment.