Skip to content

Conversation

@graycreate
Copy link
Member

Summary

This PR improves UI theming consistency across multiple components by replacing hardcoded colors with semantic color names.

Changes Made

  • FeedDetailPage: Updated reply button color from Color.bodyText to Color.tintColor
  • ReplyItemView: Added proper color theming for username and timestamp text
  • UserDetailPage: Improved color consistency for reply items and content display
  • UserFeedPage: Standardized text colors and tag styling
  • OtherSettingsView: Updated chevron icon color to use semantic color
  • MultilineTextField: Enhanced placeholder and text color theming
  • RichText: Replaced Color.bodyText with Color.primaryText for consistency

Benefits

  • Better visual consistency across the app
  • Improved semantic color usage
  • Prepares the foundation for enhanced theme support
  • More maintainable color management

Testing

  • All UI components maintain their intended visual appearance
  • Text remains readable with improved semantic color usage
  • No breaking changes to existing functionality

🤖 Generated with Claude Code

- Replace hardcoded colors with semantic color names for better theming
- Update text colors to use .primaryText and .secondaryText
- Replace Color.bodyText with Color.primaryText throughout
- Update Color.tintColor usage for better consistency
- Improve MultilineTextField placeholder color theming
- Standardize color usage in FeedDetail, UserDetail, UserFeed pages
- Enhance RichText component color consistency

These changes improve the overall visual consistency and prepare
the app for better theme support in the future.

🤖 Generated with Claude Code (https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings September 14, 2025 03:23
Copy link

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 improves UI theming consistency by replacing hardcoded colors with semantic color names across various SwiftUI components.

Key changes include:

  • Standardized text colors using .primaryText and .secondaryText instead of hardcoded colors
  • Updated interactive elements to use .tintColor for better semantic consistency
  • Enhanced placeholder text theming with semantic color usage

Reviewed Changes

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

Show a summary per file
File Description
RichText.swift Updated base text style from Color.bodyText to Color.primaryText
MultilineTextField.swift Enhanced text and placeholder color theming with semantic colors
OtherSettingsView.swift Updated chevron icon to use .secondaryText instead of hardcoded gray
UserFeedPage.swift Standardized text colors across user feed items with semantic colors
UserDetailPage.swift Improved color consistency for reply items and content display
ReplyItemView.swift Added proper color theming for username and timestamp text
FeedDetailPage.swift Updated reply button color from Color.bodyText to Color.tintColor

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

uiView.text = self.text
}
// Update text color to ensure it responds to theme changes
uiView.textColor = Color.primaryText.uiColor
Copy link

Copilot AI Sep 14, 2025

Choose a reason for hiding this comment

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

Setting textColor on every updateUIView call may cause unnecessary UI updates. Consider checking if the color has actually changed before setting it to avoid redundant operations.

Suggested change
uiView.textColor = Color.primaryText.uiColor
let desiredColor = Color.primaryText.uiColor
if uiView.textColor != desiredColor {
uiView.textColor = desiredColor
}

Copilot uses AI. Check for mistakes.
@github-actions
Copy link

Code Coverage Report ❌

Current coverage: 0%

- Add conditional check before setting textColor in updateUIView
- Prevents unnecessary UI updates when color hasn't changed
- Addresses Copilot review feedback for performance optimization

Co-Authored-By: GitHub Copilot <noreply@github.com>
@github-actions github-actions bot added size/M and removed size/S labels Sep 14, 2025
@github-actions
Copy link

Code Coverage Report ❌

Current coverage: 0%

@graycreate graycreate merged commit 447c8be into main Sep 14, 2025
6 checks passed
@graycreate graycreate deleted the feature/improve-ui-theming-consistency branch September 14, 2025 11:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants