Skip to content

Conversation

Copilot
Copy link

@Copilot Copilot AI commented Aug 17, 2025

This PR adds visual feedback when a project is clicked on the Meshroom homepage, addressing the lack of UI indication for project selection.

Changes

The implementation adds a red border highlighting system to the project grid view:

  • Selection State Management: Added selectedIndex property to track which project is currently selected
  • Visual Highlighting: Selected projects now display a 2px red border (#ff0000) with rounded corners
  • Interactive Feedback: Selection updates immediately when clicking projects, before opening them
  • State Management: Selection is properly cleared when deleting projects or switching tabs

Technical Implementation

The changes are minimal and focused, modifying only meshroom/ui/qml/Homepage.qml:

  • Added selectedIndex: -1 property to the GridView component
  • Enhanced the Button delegate with conditional border styling using a Rectangle background
  • Updated click handlers to set selection state before executing project actions
  • Added cleanup logic for invalid selections when the model changes

Visual Effect

Before: No visual feedback when clicking projects

┌─────────┐  ┌─────────┐  ┌─────────┐
│project1 │  │project2 │  │project3 │
└─────────┘  └─────────┘  └─────────┘

After: Clear visual indication of selected project

┌─────────┐  ┏━━━━━━━━━┓  ┌─────────┐
│project1 │  ┃project2┃  │project3 │  ← Red border indicates selection
└─────────┘  ┗━━━━━━━━━┛  └─────────┘

The implementation maintains all existing functionality while providing the visual feedback shown in the issue's reference image.

Fixes #2812.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

@Copilot Copilot AI changed the title [WIP] [request] Home page: Highlight Project selection Add visual highlighting for selected projects on homepage Aug 17, 2025
@Copilot Copilot AI requested a review from fabiencastan August 17, 2025 22:46
Copilot finished work on behalf of fabiencastan August 17, 2025 22:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[request] Home page: Highlight Project selection

2 participants