Skip to content

Commit 4c5b0cd

Browse files
committed
fix(weather_widget): update label class based on alternate state
- Adjusted the label class assignment in the WeatherWidget to conditionally apply an alternate class.
1 parent 2503835 commit 4c5b0cd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/core/widgets/yasb/weather.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ def process_content(content: str, is_alt: bool = False) -> list[QLabel]:
384384
label.hide()
385385
else:
386386
label = QLabel(part)
387-
label.setProperty("class", "label")
387+
label.setProperty("class", "label alt" if is_alt else "label")
388388
label.setText("weather update...")
389389
label.setAlignment(Qt.AlignmentFlag.AlignCenter)
390390
label.setCursor(Qt.CursorShape.PointingHandCursor)

0 commit comments

Comments
 (0)