Commit e987b07
committed
Fixes the X button in the editor UI's behavior for properties with default values.
For properties without default values, the X button moves through 3 states, and alwas moves from state 1 towards state 3:
1) Property is set to a value, eg height="7"
2) Property is set to empty string, eg height=""
3) Property is not set at all
This is nice behavior! But it doesn't work that way for properties with default value, like min-width and friends.
Those properties just oscillate between states 1 and 2 and can't ever get to 3.
This PR fixes that -- I believe the issue has to do w/ callbacks triggering when we don't want them to.
This PR also makes a UI style change in that for properties in state 3, we grey out the text showing the user what default value is going to be applied.
I think this makes it more clear that there is a default, here's what it is, no it's not set in your xml file explicitly.
This also applies to values that were inherited -- you can see what's inherited but we make it clear that it's not set on this node.1 parent 7a7bb73 commit e987b07
2 files changed
Lines changed: 28 additions & 1 deletion
File tree
- modules/foleys_gui_magic/Editor
Lines changed: 26 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
79 | 104 | | |
80 | 105 | | |
81 | 106 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| 72 | + | |
72 | 73 | | |
73 | 74 | | |
74 | 75 | | |
75 | 76 | | |
76 | 77 | | |
| 78 | + | |
77 | 79 | | |
78 | 80 | | |
79 | 81 | | |
| |||
0 commit comments