-
-
Notifications
You must be signed in to change notification settings - Fork 289
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add some colors to the initial view #88
Conversation
Nice. These elements look like they could be animated (e.g. either open on startup, or close after you drop something). |
@kornelski Yes, that would be cool. |
b2ffc7d
to
cd2b9a1
Compare
@@ -67,6 +67,11 @@ class DropView: SSView { | |||
override func draw(_ dirtyRect: CGRect) { | |||
super.draw(dirtyRect) | |||
|
|||
// We only draw it when the drop view controller is the main view controller. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what do you think about extracting it to a backgroundImage
property of a VideoDropView
and then only pass it in the controllers that do not hide the text label as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree that would be technically better. I'm just not sure it's worth the extra complexity. VideoDropViewController is pushed in many places. Would mean a lot of duplicate code for the same result. This is only a temporary thing anyway. I'll rewrite it for SwiftUI with animations later this year.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, agree there would be some extra cost for that - I was also thinking about 2 classes, one that would be invisible and one with text & background, but that would be an excellent one for SwiftUI component composition
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
The initial view is a bit boring. This idea might be too much, but at least it could start a discussion.
I want to do something with the text too, but haven't decided what yet. Ideas welcome.
The color scheme is not optimal, ideally, I want to use the colors used in #25 (comment), but this will do for now.
And would be super cool if the lines would animate out when the conversion starts.
And if they would move a little bit when you drag in a file.
Before
After