Skip to content
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

Merged
merged 5 commits into from
Aug 4, 2019
Merged

Conversation

sindresorhus
Copy link
Owner

@sindresorhus sindresorhus commented Jun 22, 2019

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

Screen Shot 2019-06-22 at 15 02 26

After

Screen Shot 2019-06-22 at 15 00 38

@kornelski
Copy link
Collaborator

Nice. These elements look like they could be animated (e.g. either open on startup, or close after you drop something).

@sindresorhus
Copy link
Owner Author

@kornelski Yes, that would be cool.

@sindresorhus sindresorhus marked this pull request as ready for review August 4, 2019 21:12
@sindresorhus sindresorhus changed the title Improve the initial view Add some colors to the initial view Aug 4, 2019
@@ -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.
Copy link
Contributor

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?

Copy link
Owner Author

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.

Copy link
Contributor

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

Copy link
Contributor

@sunshinejr sunshinejr left a comment

Choose a reason for hiding this comment

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

👍

@sindresorhus sindresorhus merged commit 19d5a3c into master Aug 4, 2019
@sindresorhus sindresorhus deleted the improved-start-view branch August 4, 2019 21:37
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.

None yet

3 participants