Skip to content

Add Connection animation with delay timers#272

Closed
johnny9 wants to merge 2 commits into
bitcoin-core:mainfrom
johnny9:connection-animation
Closed

Add Connection animation with delay timers#272
johnny9 wants to merge 2 commits into
bitcoin-core:mainfrom
johnny9:connection-animation

Conversation

@johnny9
Copy link
Copy Markdown
Collaborator

@johnny9 johnny9 commented Feb 21, 2023

An extension of #261 with a 5 second delay and limited to 60fps

Windows
Intel macOS
Apple Silicon macOS
ARM64 Android

Copy link
Copy Markdown
Contributor

@jarolrod jarolrod left a comment

Choose a reason for hiding this comment

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

Concept ACK, rebase over changes to #261?

Comment thread src/qml/components/blockclockdial.cpp
m_connecting_start_angle = decrementGradientAngle(m_connecting_start_angle);
}

void BlockClockDial::paintBackground(QPainter * painter)
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.

one thing we can lump in here, since this is introducing the idea of connected into this component, is some logic to only draw the background when connecting. Right now the dial can draw blocks or some of the progress while it is connected.

diff --git a/src/qml/components/blockclockdial.cpp b/src/qml/components/blockclockdial.cpp
index 07f2af85d..63e83ff4d 100644
--- a/src/qml/components/blockclockdial.cpp
+++ b/src/qml/components/blockclockdial.cpp
@@ -252,9 +252,9 @@ void BlockClockDial::paint(QPainter * painter)
         return;
     }

-    if (synced()) {
+    if (synced() && connected()) {
         paintBlocks(painter);
-    } else {
+    } else if (!synced() && connected()) {
         paintProgress(painter);
     }
 }

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.

This is what I'm referring to on current master

connecting syncing
Screen Shot 2023-03-01 at 5 00 47 PM Screen Shot 2023-03-01 at 5 00 50 PM

@johnny9 johnny9 force-pushed the connection-animation branch 2 times, most recently from 34170ae to 140e2de Compare March 5, 2023 02:49
@johnny9 johnny9 marked this pull request as draft March 5, 2023 03:09
@johnny9
Copy link
Copy Markdown
Collaborator Author

johnny9 commented Mar 10, 2023

Going with the "Grow" animation

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.

2 participants