Closed CartBlanche closed 5 years ago
@vancura Please cast your design eye over these screenshots...
A couple of comments:
(left my design, right your screenshot)
Do you show the helper text when there's nothing listed?
Left panel has no header (in my comp it writes "Ancestor Type and Level")
It actually does have a header, you can see it in the second screenshot. It's dependent on the selected binding type.
It actually does have a header, you can see it in the second screenshot. It's dependent on the selected binding type.
Can we display it at all times?
Can we display it at all times?
I don't know that it makes sense to show it at all times. What would we show in the header for the scenario in the current screenshot? It's essentially a call to action and there isn't always an action on the left hand side.
@ermau: Ok, fair enough :)
https://github.com/xamarin/Xamarin.PropertyEditing/pull/561#discussion_r268811108 @ermau Not sure what you mean by "marked as resolved" and not fixed here?
@vancura Can you please cast your eye over these screen shots.
I'm investigating why the More properties Flags isn't respecting the constraints, but think I've addressed the issues you pointed out?
Your redline 🐒 says hi.
20pt
, you have 29pt
.23pt
, you have 28pt
.80pt
.13pt
, you seem to have 11pt
.Binding type
istead of Binding Type:
.20pt
space, but uses circa 60pt
.Converter
is missing a colon (should be Converter:
) and follow the same font size as specified above, in the header section (13pt
).10pt
, you have something around 136pt
(seems it's due to right-alignment of the plus button and automatic sizing of the dropdown; instead the dropdown needs to be fit the whole width.20pt
, you have 9pt
.Your redline 🐒 thanks and says bye.
@vancura Here are some updated screenshots, based on using Figma to double check spacing and heights. These aren't 100% complete, but want to post these for you check before I push more pixels around.
I don't think the EditBox in the PathSelector looks good flush with box edge.
I don't think we can make the type selector flush to the box, as it would clip the Show All Assemblies
checkbox, on the left.
@vancura
Please use standard line height in the tree view, lines are too separated.
We are using the default height for each tree node.
No help button? Just asking, if we don't have the contents, no worries. But help is always good.
No help button for now. This may be added in future.
This is looking amazing, well done @CartBlanche!
I don't think the EditBox in the PathSelector looks good flush with box edge.
Can you try something like this? I removed the gap between the EditBox and the PathSelector, and added some space around the label inside the EditBox.
I don't think we can make the type selector flush to the box, as it would clip the Show All Assemblies checkbox, on the left.
Can we have something like this?
Changes:
You said:
We are using the default height for each tree node.
Well, in that case why both these selectors have different node height? From what I see here they contain a similar type of information, so they should have the same metrics. When next to each other it's odd how the node height differs.
A couple of changes:
4pt
, so it's 20pt
as everywhere else,4pt
, so it's 20pt
as everywhere else,20pt
from the edge of the window,80pt
, make sure the width is always at least this size (of course if verbose languages don't fit, it scales, but 80pt
needs to be minimum),12pt
,@vancura I think these new changes look good....
As we are reusing the Type Selector Control
in the CreateValueConvertorWindow
the checkbox will be offset.
This is awesome! Thanks for all the hard work @CartBlanche!
@ermau Yes It was a subscription issue and I wasn't setting the Appearance when creating the BindingDialog or the ValueConvertor Dialog. Both fixed now.
@ermau I'm not seeing this behaviour. The only thing that has been a theme bug for a while is the fact the wrong tab is on by default. This isn't related to the Binding Dialog change as it was around before then. I've pushed a fix for the tabs to be properly synced, as that needed fixing anyway.
@ermau could you please post a video of the behaviour you are seeing?
I don't have a screen recorder on mac, but here are my exact steps:
You will get the light themed dialog against dark:
Then when you close that dialog you'll get the dark themed one:
I see it now. Very odd. Investigating.
Right, events not being unsubscribed correctly. Appears to be fixed now.
OK Tested both scenarios this time. Think I have the right fix for it. Doing a little more testing.
@ermau I'm unable to find an elegant solution to the event subscription issue. Only found hacks, which I don't want to push as they weren't working 100% either. Can't see the woods for the trees anymore. Needs a new pair of eyes, when you have a sec.
@CartBlanche You needed to dig deeper. Your current implementation of the event subscription (in the ViewModel
setter) is the correct one; the actual issue is separate.
We know that we're getting two dialogs, so we check for double subscription. We see one subscription when the property shows up, and then we see another when the theme changes. What we don't see is an unsubscribe at any point. Combine that with that one dialog is the old theme and we can deduce that when we change the theme, the property buttons are being re-created (as the old one with the old theme is still firing the event.) Now, that's an issue by itself, we should be reusing them when possible but since we may not always be able to, we need to ensure old discarded ones aren't still attached to anything by setting its View Model to null
. A change was made for editors a while back to ensure this, but when property button moved around it was not included, I've comitted the fix to your branch.
Fixes: https://github.com/xamarin/Xamarin.PropertyEditing/issues/284