Thanks to visit codestin.com
Credit goes to github.com

Skip to content

ui: move shake into BigButton#37364

Merged
sshane merged 3 commits into
masterfrom
move-shake-into-button
Feb 24, 2026
Merged

ui: move shake into BigButton#37364
sshane merged 3 commits into
masterfrom
move-shake-into-button

Conversation

@sshane

@sshane sshane commented Feb 24, 2026

Copy link
Copy Markdown
Collaborator

split from #37264

@github-actions github-actions Bot added the ui label Feb 24, 2026
@sshane sshane changed the title move ui: move shake into BigButton Feb 24, 2026
@github-actions

github-actions Bot commented Feb 24, 2026

Copy link
Copy Markdown
Contributor

UI Preview

mici: Videos are identical! View Diff Report
big: Videos are identical! View Diff Report

@sshane

sshane commented Feb 24, 2026

Copy link
Copy Markdown
Collaborator Author

why didn't ty/ruff detect missing function :(

@sshane sshane merged commit 76a5527 into master Feb 24, 2026
11 checks passed
@sshane sshane requested a review from Copilot February 24, 2026 04:45
@sshane sshane deleted the move-shake-into-button branch February 24, 2026 04:45

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR refactors the shake animation functionality from the WifiButton class into the base BigButton class, making it reusable for all button types that inherit from BigButton.

Changes:

  • Moved shake animation logic (trigger, offset calculation, and position override) from WifiButton to BigButton
  • Added math import to button.py for the shake offset calculation
  • Updated WifiButton.set_wrong_password() to call the new trigger_shake() method

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
selfdrive/ui/mici/widgets/button.py Added shake animation functionality to BigButton class including trigger_shake() method, _shake_offset property, and set_position() override
selfdrive/ui/mici/layouts/settings/network/wifi_ui.py Removed duplicate shake implementation from WifiButton and updated to use inherited trigger_shake() method

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

FrogAi pushed a commit to FrogAi/FrogPilot that referenced this pull request Apr 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants