-
Notifications
You must be signed in to change notification settings - Fork 201
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
EMSUSD-877 UI tweaks #3649
EMSUSD-877 UI tweaks #3649
Conversation
pierrebai-adsk
commented
Mar 6, 2024
- Move add-layer button left to the border of the panel.
- Don't show context-menu mouse cursor over action buttons.
- Make hover highlight even over muted rows.
- Make hover highlight less dark.
- Rename some paint context flag to be clearer.
- Move "USD Stage" label to the left border.
- Don't draw text under icons with hovering.
- Make text lighter when selected.
- Simplify and centralize the action icon rectangle calculations.
- Improve arrow appearance: smaller, more square, in 6x6 square.
- Adjustment of spacing.
- Remove unnecessary error log when a layer cannot be found. The UI already shows a warning icon.
0cc5260
to
116649c
Compare
116649c
to
7f1a631
Compare
- Move add-layer button left to the border of the panel. - Don't show context-menu mouse cursor over action buttons. - Make hover highlight even over muted rows. - Make hover highlight less dark. - Rename some paint context flag to be clearer. - Move "USD Stage" label to the left border. - Don't draw text under icons with hovering. - Make text lighter when selected. - Simplify and centralize the action icon rectangle calculations. - Improve arrow appearance: smaller, more square, in 6x6 square. - Adjustment of spacing. - Remove unnecessary error log when a layer cannot be found. The UI already shows a warning icon.
7f1a631
to
1690bbb
Compare
@@ -140,37 +140,15 @@ void LayerTreeItem::populateChildren(RecursionDetector* recursionDetector) | |||
for (auto const path : subPaths) { | |||
std::string actualPath = SdfComputeAssetPathRelativeToLayer(_layer, path); | |||
auto subLayer = SdfLayer::FindOrOpen(actualPath); | |||
if (subLayer) { |
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 difference in the if/else was merely to print error message in stdout, which are not useful and we already show error icon in the UI. Simplified the code.
@@ -23,34 +23,63 @@ | |||
|
|||
namespace { | |||
|
|||
using ItemPaintContext = UsdLayerEditor::LayerTreeItemDelegate::ItemPaintContext; | |||
|
|||
bool isInaccessible(const ItemPaintContext& ctx) |
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.
These function are used to control the opacity in various scenarios.