Skip to content

Conversation

@tvolk131
Copy link
Contributor

@tvolk131 tvolk131 commented Sep 4, 2025

No behavior changes, just de-duplicating color definitions

Copilot AI review requested due to automatic review settings September 4, 2025 03:50
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

Consolidates color definitions by centralizing color constants and removing duplicate color values throughout the codebase.

  • Moved color definitions to a centralized location in components/colors.rs
  • Replaced hardcoded RGB values with named constants for consistency
  • Removed duplicate color helper functions in favor of centralized constants

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
harbor-ui/src/components/colors.rs Added new color constants and converted existing ones to use from_rgb8
harbor-ui/src/routes/welcome.rs Replaced hardcoded color with MUTINY_RED constant
harbor-ui/src/routes/unlock.rs Updated imports and replaced hardcoded colors with constants
harbor-ui/src/routes/restore.rs Replaced hardcoded color with MUTINY_RED constant
harbor-ui/src/main.rs Updated theme palette to use centralized color constants
harbor-ui/src/components/styles.rs Removed duplicate color functions and used centralized constants
harbor-ui/src/components/screen_header.rs Replaced color function calls with centralized constants

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

pub fn link() -> Color {
// This is the same theme.pallette().background just without needing `Theme`
lighten(Color::from_rgb8(23, 23, 25), 0.7)
// This is the same theme.palette().background just without needing `Theme`
Copy link

Copilot AI Sep 4, 2025

Choose a reason for hiding this comment

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

Fixed typo: 'pallette' should be 'palette' in the comment.

Copilot uses AI. Check for mistakes.
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