Skip to content

💄 Create the display effect for HighlightedCard prompt UI#2703

Merged
guiyanakuang merged 1 commit intomainfrom
2702-create-the-display-effect-for-highlightedcard-prompt-ui
May 2, 2025
Merged

💄 Create the display effect for HighlightedCard prompt UI#2703
guiyanakuang merged 1 commit intomainfrom
2702-create-the-display-effect-for-highlightedcard-prompt-ui

Conversation

@guiyanakuang
Copy link
Copy Markdown
Member

close #2702

@guiyanakuang guiyanakuang added this to the CrossPaste 1.2.0 milestone May 2, 2025
@guiyanakuang guiyanakuang self-assigned this May 2, 2025
@guiyanakuang guiyanakuang requested a review from Copilot May 2, 2025 05:05
Copy link
Copy Markdown

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

The PR introduces a new UI display effect by replacing the manual usage of clip and background modifiers with a reusable HighlightedCard composable component to standardize the appearance of settings and preview views.

  • Replaces Columns with explicit clip/background modifiers with HighlightedCard in multiple UI views.
  • Adds the new HighlightedCard component to encapsulate elevation, border, and shape properties for a consistent card appearance.

Reviewed Changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated no comments.

Show a summary per file
File Description
app/src/desktopMain/kotlin/com/crosspaste/ui/settings/SetStoragePathView.kt Removed clip modifier; consider adopting the HighlightedCard component for a consistent UI display.
app/src/desktopMain/kotlin/com/crosspaste/ui/settings/MainSettingsContentView.kt Replaced manual styling in a Column with HighlightedCard to leverage centralized styling.
app/src/desktopMain/kotlin/com/crosspaste/ui/base/ExpandView.desktop.kt Updated container from Column to HighlightedCard, ensuring appropriate modifiers are applied.
app/src/desktopMain/kotlin/com/crosspaste/ui/TabsView.kt Converted a Column container to HighlightedCard for a more consistent card look in TabsView.
app/src/commonMain/kotlin/com/crosspaste/ui/settings/StoreSettingsContentView.kt Removed redundant clip modifiers in favor of a unified card presentation.
app/src/commonMain/kotlin/com/crosspaste/ui/settings/PasteboardSettingsContentView.kt Simplified view styling by removing clip modifiers; background remains consistent.
app/src/commonMain/kotlin/com/crosspaste/ui/settings/NetSettingsContentView.kt Standardized container styling by removing clip modifiers across multiple Column usages.
app/src/commonMain/kotlin/com/crosspaste/ui/paste/preview/PastePreviewItemView.kt Replaced the Row container with HighlightedCard for a unified preview appearance.
app/src/commonMain/kotlin/com/crosspaste/ui/base/MobileExpandView.kt Switched from Column to HighlightedCard to improve consistency in mobile expand view styling.
app/src/commonMain/kotlin/com/crosspaste/ui/base/HighlightedCard.kt Introduced the new HighlightedCard composable to centralize card styling logic.
Comments suppressed due to low confidence (1)

app/src/desktopMain/kotlin/com/crosspaste/ui/settings/SetStoragePathView.kt:81

  • Consider using the HighlightedCard component instead of a plain Column here to maintain styling consistency with the other settings views.
.background(MaterialTheme.colorScheme.surfaceContainerHighest),

@guiyanakuang guiyanakuang merged commit 3cadaf4 into main May 2, 2025
2 checks passed
@guiyanakuang guiyanakuang deleted the 2702-create-the-display-effect-for-highlightedcard-prompt-ui branch July 12, 2025 12:28
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.

Create the display effect for HighlightedCard prompt UI

2 participants