Skip to content

feat(popup): add animation_duration config for popup/card widgets#744

Closed
Louis047 wants to merge 2 commits intoamnweb:mainfrom
Louis047:feat/popup-animation-duration-clean
Closed

feat(popup): add animation_duration config for popup/card widgets#744
Louis047 wants to merge 2 commits intoamnweb:mainfrom
Louis047:feat/popup-animation-duration-clean

Conversation

@Louis047
Copy link
Copy Markdown
Contributor

@Louis047 Louis047 commented Feb 24, 2026

Summary

  • Add animation_duration parameter to PopupWidget class (default: 80ms)
  • Add animation_duration config to 24 widget popup/menu validation configs
  • Update all PopupWidget instantiations to use custom animation duration

Description

This PR implements the feature requested in issue #742 - allowing users to customize the fade animation duration for popup menus and cards across all widgets that support them.

Changes

  • PopupWidget base class: Added animation_duration parameter (default: 80ms) to control fade in/out animation duration
  • Validation configs: Added animation_duration: int = 80 to 24 popup/menu configs
  • Widget implementations: Updated all PopupWidget instantiations to pass the animation_duration parameter

Widgets Updated

clock, weather, open_meteo, volume, brightness, media, todo, notes, microphone, power_menu, disk, language, home, traffic, copilot, server_monitor, pomodoro, vscode, github, libre_monitor, power_plan, quick_launch, komorebi/control, komorebi/active_layout, systray/popup

Usage Example

widgets:
  - type: clock
    calendar:
      animation_duration: 150
  
  - type: weather
    weather_card:
      animation_duration: 200

Related Issue

Implements #742

@Louis047
Copy link
Copy Markdown
Contributor Author

If this gets approval and required improvements, do let me know so I can go ahead and implement it as well, including to add details about animation_duration property in docs.

@Louis047 Louis047 force-pushed the feat/popup-animation-duration-clean branch 4 times, most recently from 6299487 to bfbe82e Compare March 2, 2026 16:39
@Louis047 Louis047 force-pushed the feat/popup-animation-duration-clean branch 3 times, most recently from 63e66fe to 6299487 Compare March 6, 2026 10:53
@Louis047 Louis047 closed this Mar 6, 2026
@Louis047 Louis047 force-pushed the feat/popup-animation-duration-clean branch from 6299487 to 783d4f9 Compare March 6, 2026 10:57
@Louis047 Louis047 reopened this Mar 6, 2026
@Louis047 Louis047 force-pushed the feat/popup-animation-duration-clean branch 2 times, most recently from 6299487 to 783d4f9 Compare March 6, 2026 11:01
- Add animation_duration parameter to PopupWidget class (default: 80ms)
- Add animation_duration config to 24 widget popup/menu configs
- Update 26 PopupWidget instantiations to use custom animation duration
- Covers all widgets with popup/card support

This allows users to customize the fade animation duration for popup menus
and cards, similar to the existing power_menu animation_duration option.

Resolves: amnweb#742
@Louis047
Copy link
Copy Markdown
Contributor Author

Superseded by #781 to provide the same changes on a clean branch with a clean review timeline.

@Louis047 Louis047 closed this Mar 12, 2026
@Louis047 Louis047 deleted the feat/popup-animation-duration-clean branch March 24, 2026 18:42
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