-
Notifications
You must be signed in to change notification settings - Fork 65
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
Turn the Gallery button into a switch #148
Conversation
I'm thinking the transition could be refined by clearing the view and showing the spinner since the whole page has to be reloaded... No idea if that's easily doable or if that really improves the user experience. |
Also cc @owncloud/designers, please review! :) |
7628b2a
to
3ab01b6
Compare
3ab01b6
to
fa5221e
Compare
This time I'm happy with the way it works. Please review on 8.0 @jancborchardt @jospoortvliet @libasys @nclm @deMattin @setnes |
The ultimatedev branch for 8.1 contains this PR |
Another thing: I would say we should put this switcher on the far right of the controls bar. Otherwise it takes focus away from the New & Upload buttons. |
Done with the newest commit :) |
I agree for the Files/Gallery switch, but it's going to be a problem with the sorting buttons since each button has 2 functions: activate the sort and change the order. Any idea on how to solve that? Historically, that button has always been on the left, but I'm happy with the change if that's the new way forward :) |
There’s only one problem now: The sort by date / name toggle doesn’t have a pressed state anymore. Can you add the .disabled-button logic to it because that’s the class we use now? |
What do you mean by »activate the sort«? Isn’t the default sort by date? |
The default is by date, but if you click on the button again, you change the order. If that button is marked as disabled, then you can't do that any more and if it's greyed out, people won't think of using it. |
A 3rd button to change the order is always an option, but it's starting to get crowded up there... No? |
A dropdown is another option, but that means a minimum of 2 clicks for every change, unless we use a hover. |
Aaah right! Yeah, a third button would be too much. I’m thinking if it would be better to have one button for sorting in there which drops down a menu where you can choose:
I don’t think that’s too bad regarding the 2 clicks because it’s something which is not changed so often, eh? |
The other question is: Do we really need reverse chronological order? |
+ remove unused style
We can't use CSS3 because of IE
From my side only #311 is necessary, and I still think we should merge that instead of relying on this very large pull request first. We can then rebase this to go forward. @oparoz we have core feature freeze today so please make sure we merge #311 today – or if you choose to merge this, make sure it looks like intended by #311 |
yes. would be great to get this in. The rest can be done for the next release. |
f150b06
to
2ea43d4
Compare
#311 cannot be merged, it doesn't look right on the Gallery side 3 button styles in one app |
This PR isn't large, it's just swapping things around and has a more generic way of building buttons.
|
@oparoz that looks totally fine with the view switcher.
|
The sharing button can't go on the left, see #148 (comment) The sorting buttons can be hidden later. We just can't have a UI in transition and which looks broken to users. |
Turn the Gallery button into a switch
Cool! :) See, the files view looks much nicer now with the way less obtrusive switcher. |
I'm still not convinced, but it's more difficult to make the switch work with a flat design which has no borders or colours and very little foreground/background contrasts. I would probably have to play with the size of the button or something, but I would love to see the full UI elements sheet at some point. For sorting, it's more complex since there are 3 states, so one of them has the same border as the hover, because white on white doesn't work. We'll see how that evolves. Gallery view |
I know it's painful... But the end result does look good. I guess - no pain = no gain, right? |
yes. this is a good solution. Thanks guys |
Implementation of #145
PR for ownCloud 8.0
@jancborchardt @libasys @nclm @deMattin, please test.