Skip to content

How do I specify a custom color for a style? (Spectre.Console.Color) #1270

Closed Answered by patriksvensson
futuremotiondev asked this question in Q&A
Discussion options

You must be logged in to vote

API docs

public Style(Color? foreground = null, Color? background = null, Decoration? decoration = null, string link = null)

Example

// Create a style with green foreground
var style = new Style(
    foreground: new Color(0, 0xFF, 0))

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by patriksvensson
Comment options

You must be logged in to vote
2 replies
@patriksvensson
Comment options

@mbianchetto
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
3 participants
Converted from issue

This discussion was converted from issue #1268 on August 01, 2023 08:48.