Skip to content

feat(display): add global whole-numbers display setting#476

Merged
Orinks merged 4 commits intodevfrom
feat/round-values-setting
Mar 17, 2026
Merged

feat(display): add global whole-numbers display setting#476
Orinks merged 4 commits intodevfrom
feat/round-values-setting

Conversation

@Orinks
Copy link
Owner

@Orinks Orinks commented Mar 17, 2026

Summary

  • add round_values boolean setting to AppSettings (default: False)
  • when enabled, all displayed numeric weather values are rounded to whole numbers
  • affects conditions, forecast, hourly, tray text, and all formatted values
  • checkbox added to Settings dialog: "Show values as whole numbers (no decimals)"
  • central precision control through existing display/formatter pipeline

Testing

  • pytest tests/test_current_conditions.py tests/test_system_tray.py tests/test_settings_dialog_tray_text.py tests/test_tray_text_format_dialog.py

Orinks and others added 4 commits March 17, 2026 18:29
Adds a boolean AppSettings.round_values (default False) that strips
decimals from all displayed weather values when enabled. Wires through
current conditions, forecast, and taskbar icon text. Adds a checkbox
in the Settings dialog Display section. Fixes a test assertion using
0.15 (FP banker's rounding) in favour of 0.17.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@Orinks Orinks merged commit e33a110 into dev Mar 17, 2026
3 checks passed
@Orinks Orinks deleted the feat/round-values-setting branch March 17, 2026 18:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant