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
Secondary toolbar #2792
Secondary toolbar #2792
Conversation
@timvandermeij First of all, nice that you're working on this!
Edit:
I would suggest that this new toolbar should overlay the document (perhaps with a slight opaque background colour), |
/botio-windows preview |
From: Bot.io (Windows)ReceivedCommand cmd_preview from @waddlesplash received. Current queue size: 1 Live output at: http://107.22.172.223:8877/945e81b72442ac0/output.txt |
From: Bot.io (Windows)FailedFull output at http://107.22.172.223:8877/945e81b72442ac0/output.txt Total script time: 0.14 mins |
@timvandermeij there are apparently some conflicts with the current master, can you fix? |
@Snuffleupagus: I will address your comments as soon as possible. I'm currently very busy, but I expect that I can address your comments and do some additional finetuning to the settings bar in the next two days. @waddlesplash: I'll fix this also in the next two days. |
You need to pull and fix conflicts, apparently. |
Oh, I see. I'll also do that in the next few days. |
I have improved my design. Changes are:
Please take a look at the render of the design below and let me know what you think about this improved design. If you like the changes, I'll implement them when I upload my new code for the settings bar. Note: I'm not a professional designer, so more experienced UX designers can probably make some more improvements. :) @jviereck: the PSD file of this new design can be downloaded from here: [removed, old design] |
The new design looks much better than the old one! |
@waddlesplash: thank you! Really nice to know that you like it! I will fix the conflicts and the strict equalities issue that @Snuffleupagus reported right now. Then, I'll push the changes such that a new preview can be made. Tomorrow, I'll fix the other issues that @Snuffleupagus reported and start on implementing the new design. |
Conflicts are now resolved and strict equality issue is also fixed. I think a new preview can be generated now. I guess there might be one problem: I used 'git pull mozilla master' to get all new changes and to be able to fix the conflicts, but in my commit above I see that also all of your changes are pushed. Is that a problem (maybe if I squash everything later, it won't be a big deal) and if yes, how can I fix it such that only my changes get pushed? |
/botio-linux preview |
From: Bot.io (Linux)ReceivedCommand cmd_preview from @Snuffleupagus received. Current queue size: 0 Live output at: http://107.21.233.14:8877/4191b9bf9789ae2/output.txt |
From: Bot.io (Linux)SuccessFull output at http://107.21.233.14:8877/4191b9bf9789ae2/output.txt Total script time: 0.16 mins Published |
Looks nice, you've made quite a bit of progress!
@timvandermeij As you suggested, just squash the commits and it will be OK. Also, I really think that we need feedback on this from UI/UX sooner rather than later, to prevent having to change to many things later on. |
This doesn't work on things with small screen size, e.g. mobile devices. Example: 7" tablet: See screenshot. (This will be fixed by addressing @Snuffleupagus's comment 2.) How about replicating what the viewer does when it has a small screen and needs to display the sidebar, except ALWAYS do it that way. (Hint: try it in Responsive Design View with a screen width of around 455px). As for the patch, ignore it. It appears fine in the "files changed" so it should be fine elsewhere. |
I agree. The viewport size should not change. It is item 1 on the to-do list, but thanks tot your comments I have some more ideas to fix it. Will look into it later this day. |
/botio-linux preview |
From: Bot.io (Linux)ReceivedCommand cmd_preview from @waddlesplash received. Current queue size: 2 Live output at: http://107.21.233.14:8877/8a748032947f353/output.txt |
From: Bot.io (Linux)SuccessFull output at http://107.21.233.14:8877/8a748032947f353/output.txt Total script time: 0.28 mins Published |
I added a new commit. Can somebody generate a new preview? |
/botio-linux preview |
From: Bot.io (Linux)ReceivedCommand cmd_preview from @waddlesplash received. Current queue size: 0 Live output at: http://107.21.233.14:8877/4198d67c1492112/output.txt |
From: Bot.io (Linux)SuccessFull output at http://107.21.233.14:8877/4198d67c1492112/output.txt Total script time: 0.23 mins Published |
Nice, thanks! Now I can test it on my Nexus 4 phone :-D |
Yes, I added that bug to the to-do list above. I'm not sure how to move the scrollbar. Any ideas? EDIT: with the new commit, it also looks much better on my Nexus 4 phone. :) |
I think you shouldn't move the scrollbar, you should account for it instead. Maybe with some javascript magic that calculates the effective width of the toolbar - the width of the content area, and sets the result as margin-right of the panel? |
/botio-linux preview |
From: Bot.io (Linux)ReceivedCommand cmd_preview from @brendandahl received. Current queue size: 2 Live output at: http://107.21.233.14:8877/a5c7393622771b2/output.txt |
From: Bot.io (Linux)SuccessFull output at http://107.21.233.14:8877/a5c7393622771b2/output.txt Total script time: 0.26 mins Published |
|
||
'use strict'; | ||
|
||
var secondaryToolbar = { |
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.
Uppercase S
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.
Fixed in new commit.
Looking mostly good but a few more things:
|
@brendandahl The nits are fixed. Note that the context menu is not broken, but just disabled in the regular mode. This has been done on purpose since all the functionality has been moved to the secondary toolbar. The context menu wasn't considered a good place for that kind of functionality. Important to note is that the context menu is available in presentation mode, since you don't have the secondary toolbar there. Does that answer your question or should we change anything about that? @Snuffleupagus Do you have an idea on how we can fix @brendandahl's second point? I do not know a solution right now, but I'll also think about it. |
Yes, looking at the code I think I know why it fails. I'll fix this, and also address the lint failures while I'm at it. |
<span data-l10n-id="page_rotate_ccw_label">Rotate Counterclockwise</span> | ||
</button> | ||
</div> | ||
</div> <!-- secondaryToolbar --> |
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 apparently forgot to indent this line properly.
@timvandermeij Can you fix this when you squash?
Hopefully the final preview! /botio-linux preview |
From: Bot.io (Linux)ReceivedCommand cmd_preview from @Snuffleupagus received. Current queue size: 0 Live output at: http://107.21.233.14:8877/4a133c5e01c2223/output.txt |
From: Bot.io (Linux)SuccessFull output at http://107.21.233.14:8877/4a133c5e01c2223/output.txt Total script time: 0.20 mins Published |
Rebased this PR to the tip to avoid any problems when merging. Note: no code changes were made! |
presentation_mode.title=Switch to Presentation Mode | ||
presentation_mode_label=Presentation Mode | ||
open_file.title=Open File | ||
open_file_label=Open | ||
open_file.title=Open a file for viewing |
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 just noticed this, and I'm a little curious as to why this was changed!?
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.
@Snuffleupagus I have absolutely no idea... Maybe an old test or something? Although I think the change is not that bad, should we revert it?
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 reason that I ask is that if you keep this change, you need to upper-case parts of it so that it follows the language style of the other strings. (Something like Open a File for Viewing
, but please note that I'm not a native English speaker.)
Personally I think that this change is unnecessary, since "Open File" is a standard expression in software (and it won't even be visible in Firefox since that button is hidden there).
Since I guess that you need to rebase and squash anyway, it shouldn't be to hard to change back. :-)
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.
You're right. It is fixed now. I've also solved merge conflicts and squashed everything again.
Rebased this PR to the tip. Only two language strings in the Dutch and English language files were changed. The rest of the code is left untouched. |
I would suggest making any overlay panels darker, but probably out of scope for this :)
There is some kind of weird ghosting going on when hovering buttons Seems to be some kind of strange interaction with the gradient on <div id="secondaryToolbar"… But I don't know why it would do that. |
@shorlander That is really strange, I'm not able to reproduce this on Windows. This is what it looks like on my computer: If you open the findbar, are these issues present there as well? Since the secondary toolbar uses mostly already existent CSS, the issues you are seeing seem really weird. |
@Snuffleupagus Yeah it's kind of weird, only happens on OSX. Looking closer it doesn't look like the gradient is being drawn on the whole panel just buttons on hover. Findbar does not have this issue. |
Looking at your screenshot, I agree with this observation. @shorlander Just to clarify, when you say it happens on OSX, you mean Firefox on OSX right? |
New toggle icon from @shorlander has been added and the PR has been rebased to the tip and squashed. Now we only need to fix that strange hover effect and then this should be ready to go. Panels look fine to me for now (and changing all panels is out of scope for this PR), but they can certainly be made darker in a follow-up PR. |
@timvandermeij Sorry about being afk on IRC! If you want to talk, I'm there now. |
If it seems to be a Mac Firefox specific bug I can just file a bug against that. |
From: Bot.io (Windows)ReceivedCommand cmd_preview from @Snuffleupagus received. Current queue size: 0 Live output at: http://107.22.172.223:8877/9a9f0471e223291/output.txt |
From: Bot.io (Windows)SuccessFull output at http://107.22.172.223:8877/9a9f0471e223291/output.txt Total script time: 0.32 mins Published |
@shorlander After a few hours of debugging this PR with Yury and Brendan, it turns out to be a known bug: https://bugzilla.mozilla.org/show_bug.cgi?id=902591 (and https://bugzilla.mozilla.org/show_bug.cgi?id=905246). Even Yury and Brendan, both OS X users, couldn't both replicate it (Brendan could, Yury couldn't, using the same configuration), so it's very intermittent. Since it is not really a problem of this particular PR but more of Firefox itself, and it is known upstream, this PR should be ready to go now. Still I'd like to thank you for helping with the reviewing process! |
Implements the secondary toolbar as discussed in #2714.