Skip to content

Commit

Permalink
change icons for day/night
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidFW1960 committed Jul 26, 2019
1 parent dafa2b4 commit 819462d
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions bom-weather-card.js
Original file line number Diff line number Diff line change
Expand Up @@ -233,13 +233,13 @@ class BOMWeatherCard extends LitElement {

get weatherIcons() {
return {
'sunny': 'day',
'clear': 'day',
'mostly-sunny': 'day',
'partly-cloudy': 'cloudy-day-3',
'sunny': `${this.dayOrNight}`,
'clear': `${this.dayOrNight}`,
'mostly-sunny': `fair-${this.dayOrNight}`,
'partly-cloudy': `cloudy-${this.dayOrNight}-3`,
'cloudy': 'cloudy',
'hazy': 'cloudy-day-1',
'hazey': 'cloudy-day-1',
'hazy': `cloudy-${this.dayOrNight}-1`,
'hazey': `cloudy-${this.dayOrNight}-1`,
'light-rain': 'rainy-1',
'windy': 'cloudy',
'fog': 'cloudy',
Expand Down Expand Up @@ -268,7 +268,7 @@ class BOMWeatherCard extends LitElement {
'hail': 'rainy-7',
'lightning': 'thunder',
'thunderstorm': 'thunder',
'windy-variant': html`cloudy-${this.dayOrNight}-3`,
'windy-variant': `cloudy-${this.dayOrNight}-3`,
'exceptional': '!!',
}
}
Expand Down

0 comments on commit 819462d

Please sign in to comment.