[FancyZones Editor] New UX for the FZ editor.#9325
Conversation
| /// </summary> | ||
| public partial class CanvasEditorWindow : EditorWindow | ||
| { | ||
| private int _offset = 100; |
There was a problem hiding this comment.
Can you add a comment to explain what is this offset referring to?
|
@niels9001 @SeraphimaZ |
|
I agree with @enricogior. Thank you for this nice UI. |
| Model.PropertyChanged += OnGridDimensionsChanged; | ||
|
|
||
| int zoneCount = _data.ZoneCount; | ||
| for (int i = 0; i <= zoneCount; i++) |
There was a problem hiding this comment.
shouldn't we do i < zoneCount instead?
There was a problem hiding this comment.
Yes, but with a little fix in GridData. In fact, ZoneCount represents the biggest used index in the grid, so the name is misleading. I'll update the code so that it would represent exactly what it means.
|
@enricogior |
| public App() | ||
| { | ||
| DebugModeCheck(); | ||
| // DebugModeCheck(); |
There was a problem hiding this comment.
Why is it commented out? Should we remove it?
There was a problem hiding this comment.
We still want to enable debug mode for stand alone debugging, we can revisit this in 0.33 or 0.35.
| } | ||
| } | ||
|
|
||
| _zoneCount = maxIndex + 1; |
There was a problem hiding this comment.
Before ZoneCount was equal to maxIndex not it is equal to maxIndex+1. Does it mean that indexing changed?
There was a problem hiding this comment.
No, indexing wasn't changed. I explained above the reason for it, ZoneCount was a misleading name.
| // The Microsoft Corporation licenses this file to you under the MIT license. | ||
| // See the LICENSE file in the project root for more information. | ||
|
|
||
| using System; |
There was a problem hiding this comment.
nit: redundant using directive
Looking good! 😁May I make a few suggestions? |
This has been moved into a tooltip, so hovering over / on focus would show the tooltip. Let's look at the feedback to see if it needs to be visible at all times.
Agree. I think the dialog title should just be "Create new layout".
The edit dialog probably needs some (minor) moving around of controls. Could you open an issue for that so it's track-able :)? |
| xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
| mc:Ignorable="d" | ||
| Title="Window1" Height="450" Width="800" | ||
| Title="Window1" Height="450" |
|
@enricogior, the installer build got stuck on a heart beat, i'm good to go if you are. I kicked off another one but it is only 1 minute into the actual compile. |

Summary of the Pull Request
This PR introduces a brand new UX for the FZ editor created by @niels9001
New features:
Editor

New layout dialog

Edit template layout

Edit custom layout

Light theme

Quality Checklist
Contributor License Agreement (CLA)
A CLA must be signed. If not, go over here and sign the CLA.