Skip to content
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

Merged
merged 1 commit into from
Mar 12, 2024
Merged

EMSUSD-877 UI tweaks #3649

merged 1 commit into from
Mar 12, 2024

Conversation

pierrebai-adsk
Copy link
Collaborator

  • 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.

image

@pierrebai-adsk pierrebai-adsk force-pushed the bailp/EMSUSD-877/layer-editor-tweaks branch from 0cc5260 to 116649c Compare March 8, 2024 13:57
Base automatically changed from bailp/EMSUSD-877/lock-mute-on-hover to dev March 8, 2024 17:58
@pierrebai-adsk pierrebai-adsk force-pushed the bailp/EMSUSD-877/layer-editor-tweaks branch from 116649c to 7f1a631 Compare March 8, 2024 18:27
@pierrebai-adsk pierrebai-adsk added the adsk Related to Autodesk plugin label Mar 8, 2024
@pierrebai-adsk pierrebai-adsk self-assigned this Mar 8, 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.
@@ -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) {
Copy link
Collaborator Author

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)
Copy link
Collaborator Author

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.

@pierrebai-adsk pierrebai-adsk added the ready-for-merge Development process is finished, PR is ready for merge label Mar 8, 2024
@seando-adsk seando-adsk merged commit e9645a4 into dev Mar 12, 2024
11 checks passed
@seando-adsk seando-adsk deleted the bailp/EMSUSD-877/layer-editor-tweaks branch March 12, 2024 15:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
adsk Related to Autodesk plugin ready-for-merge Development process is finished, PR is ready for merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants