Skip to content

Conversation

@Deterous
Copy link
Member

Extends Purple theme to allow for any custom foreground and background colors.
Remains a hidden feature.

/// <summary>
/// Converts string hex to int hex
/// </summary>
private static byte HexToHex(string? hex)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please convert each of the switches to a call to a helper method that gets the value and just have it multiply by 16 for the first one. You can also probably consolidate the switches in the new syntax:

return c switch
{ 
    '0' => 0,
    ...
    _ => 0,
};

Copy link
Collaborator

@mnadareski mnadareski left a comment

Choose a reason for hiding this comment

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

Can't wait to use DEDBEF as a theme color

@mnadareski mnadareski merged commit bc5e73d into SabreTools:master Jun 25, 2024
@Deterous Deterous deleted the theme branch June 26, 2024 05:36
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.

2 participants