Skip to content

Conversation

maoyama
Copy link
Owner

@maoyama maoyama commented Jun 14, 2025

No description provided.

maoyama added 4 commits June 14, 2025 10:46
- Added `@Environment` property for active appearance detection.
- Updated foreground color logic based on active appearances and selection states.
- Improved background color handling for selected nodes based on active status.
@maoyama maoyama requested a review from Copilot June 14, 2025 01:57
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR refactors the color selection logic to adjust the visual appearance based on the environment’s active state. Key changes include the removal of the appearsActive injection in FolderView and modifications in CommitGraphView to conditionally define background and foreground colors.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
GitClient/Views/Folder/FolderView.swift Removed unused @Environment injection for appearsActive
GitClient/Views/Folder/CommitGraphView.swift Updated color styling logic using appearsActive in GraphNode and GraphNodeText

@Binding var selectionLogID: String?
@Binding var subSelectionLogID: String?
@Environment(\.appearsActive) private var appearsActive
Copy link
Preview

Copilot AI Jun 14, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] Consider moving the @Environment(.appearsActive) declaration above the computed property 'foregroundStyle' to improve code readability and maintain consistency in the ordering of property declarations.

Suggested change
@Environment(\.appearsActive) private var appearsActive

Copilot uses AI. Check for mistakes.

- Made CommitGraphView focusable and disabled focus effects to improve usability.
- Updated GraphNode to change appearance based on focus state.
- Refined fill colors for selected nodes based on active focus state.
@maoyama maoyama merged commit 70c08c3 into main Jun 14, 2025
4 checks passed
@maoyama
Copy link
Owner Author

maoyama commented Jun 14, 2025

#160

@maoyama maoyama changed the title Selected color Selected color in graph view Jun 14, 2025
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.

1 participant