Skip to content
Bit Quirky Behavior Trees and
State Machines

Search documentation

All topics and APIs

Close returns focus to Search.

What are you looking for?

Try a common topic or enter a complete API identifier.

Browse the reference instead

Esc closes · Tab reaches results · Enter opens the focused link

v0.6.0
Menu

BitQuirky.Graph.GraphView.Styles

Public bit quirky graph: editor symbols in BitQuirky.Graph.GraphView.Styles.

Source snapshot ad0983d00d77.

Assembly: BitQuirky.Graph.GraphView.Editor

Category: Low-level runtime

C#
class BitQuirky.Graph.GraphView.Styles.BitQuirkyColors

Source declaration: ../bitquirky-graph/Editor/GraphView/Styles/BitQuirkyColors.cs:17-246

Canonical Bit Quirky brand + cross-product color constants mirrored fromEditor/GraphView/Styles/DesignSystem/Tokens.uss.

These tokens are intended to be reused across every BQ graphing product (Round Trip, Behavior Tree editor, UI graph tool…) so the brand reads as one product family.

Tokens.uss is the source of truth - hex values appear there only. Each consumer project pairs this class with a parity test against its own product-specific palette to catch drift.

C#
public const string BrandTeal = "#35D1DB"

Source declaration: ../bitquirky-graph/Editor/GraphView/Styles/BitQuirkyColors.cs:21

The Bit Quirky brand teal, the family accent every product shares. CSS token value mirrored from Tokens.uss.

C#
public static readonly BitQuirky.Graph.GraphView.Styles.RgbaColor BrandTealColor

Source declaration: ../bitquirky-graph/Editor/GraphView/Styles/BitQuirkyColors.cs:117

BrandTeal parsed into a usable color value.

C#
public const string BrandTealDark = "#123A43"

Source declaration: ../bitquirky-graph/Editor/GraphView/Styles/BitQuirkyColors.cs:23

The deep teal companion to BrandTeal, used for filled backings behind teal content. CSS token value mirrored from Tokens.uss.

C#
public static readonly BitQuirky.Graph.GraphView.Styles.RgbaColor BrandTealDarkColor

Source declaration: ../bitquirky-graph/Editor/GraphView/Styles/BitQuirkyColors.cs:119

BrandTealDark parsed into a usable color value.

C#
public const string ButtonNeutral = "#5A5A5A"

Source declaration: ../bitquirky-graph/Editor/GraphView/Styles/BitQuirkyColors.cs:41

Fill of a button that carries no status or brand meaning. CSS token value mirrored from Tokens.uss.

C#
public static readonly BitQuirky.Graph.GraphView.Styles.RgbaColor ButtonNeutralColor

Source declaration: ../bitquirky-graph/Editor/GraphView/Styles/BitQuirkyColors.cs:131

ButtonNeutral parsed into a usable color value.

C#
public const string ContainerFolder = "#D4A055"

Source declaration: ../bitquirky-graph/Editor/GraphView/Styles/BitQuirkyColors.cs:83

A folder in a browsing surface. CSS token value mirrored from Tokens.uss.

C#
public static readonly BitQuirky.Graph.GraphView.Styles.RgbaColor ContainerFolderColor

Source declaration: ../bitquirky-graph/Editor/GraphView/Styles/BitQuirkyColors.cs:170

ContainerFolder parsed into a usable color value.

C#
public const string ContainerPackage = "#A0A0A0"

Source declaration: ../bitquirky-graph/Editor/GraphView/Styles/BitQuirkyColors.cs:85

A package in a browsing surface. CSS token value mirrored from Tokens.uss.

C#
public static readonly BitQuirky.Graph.GraphView.Styles.RgbaColor ContainerPackageColor

Source declaration: ../bitquirky-graph/Editor/GraphView/Styles/BitQuirkyColors.cs:172

ContainerPackage parsed into a usable color value.

C#
public const string DataBool = "#B34D4D"

Source declaration: ../bitquirky-graph/Editor/GraphView/Styles/BitQuirkyColors.cs:65

True/false values. CSS token value mirrored from Tokens.uss.

C#
public static readonly BitQuirky.Graph.GraphView.Styles.RgbaColor DataBoolColor

Source declaration: ../bitquirky-graph/Editor/GraphView/Styles/BitQuirkyColors.cs:153

DataBool parsed into a usable color value.

C#
public const string DataChar = "#6B8B9A"

Source declaration: ../bitquirky-graph/Editor/GraphView/Styles/BitQuirkyColors.cs:69

Single-character values. CSS token value mirrored from Tokens.uss.

C#
public static readonly BitQuirky.Graph.GraphView.Styles.RgbaColor DataCharColor

Source declaration: ../bitquirky-graph/Editor/GraphView/Styles/BitQuirkyColors.cs:157

DataChar parsed into a usable color value.

C#
public const string DataDefault = "#8E5CFF"

Source declaration: ../bitquirky-graph/Editor/GraphView/Styles/BitQuirkyColors.cs:77

Values whose type has no color of its own; shares DataObject. CSS token value mirrored from Tokens.uss.

C#
public static readonly BitQuirky.Graph.GraphView.Styles.RgbaColor DataDefaultColor

Source declaration: ../bitquirky-graph/Editor/GraphView/Styles/BitQuirkyColors.cs:165

DataDefault parsed into a usable color value.

C#
public const string DataExec = "rgba(255, 255, 255, 0.70)"

Source declaration: ../bitquirky-graph/Editor/GraphView/Styles/BitQuirkyColors.cs:79

Execution flow, which carries control rather than a value. CSS token value mirrored from Tokens.uss.

C#
public static readonly BitQuirky.Graph.GraphView.Styles.RgbaColor DataExecColor

Source declaration: ../bitquirky-graph/Editor/GraphView/Styles/BitQuirkyColors.cs:167

DataExec parsed into a usable color value.

C#
public const string DataFloat = "#6CB47A"

Source declaration: ../bitquirky-graph/Editor/GraphView/Styles/BitQuirkyColors.cs:63

Fractional-number values. CSS token value mirrored from Tokens.uss.

C#
public static readonly BitQuirky.Graph.GraphView.Styles.RgbaColor DataFloatColor

Source declaration: ../bitquirky-graph/Editor/GraphView/Styles/BitQuirkyColors.cs:151

DataFloat parsed into a usable color value.

C#
public const string DataInt = "#4EA054"

Source declaration: ../bitquirky-graph/Editor/GraphView/Styles/BitQuirkyColors.cs:61

Whole-number values. CSS token value mirrored from Tokens.uss.

C#
public static readonly BitQuirky.Graph.GraphView.Styles.RgbaColor DataIntColor

Source declaration: ../bitquirky-graph/Editor/GraphView/Styles/BitQuirkyColors.cs:149

DataInt parsed into a usable color value.

C#
public const string DataObject = "#8E5CFF"

Source declaration: ../bitquirky-graph/Editor/GraphView/Styles/BitQuirkyColors.cs:71

Reference values. CSS token value mirrored from Tokens.uss.

C#
public static readonly BitQuirky.Graph.GraphView.Styles.RgbaColor DataObjectColor

Source declaration: ../bitquirky-graph/Editor/GraphView/Styles/BitQuirkyColors.cs:159

DataObject parsed into a usable color value.

C#
public const string DataString = "#E34A99"

Source declaration: ../bitquirky-graph/Editor/GraphView/Styles/BitQuirkyColors.cs:67

Text values. CSS token value mirrored from Tokens.uss.

C#
public static readonly BitQuirky.Graph.GraphView.Styles.RgbaColor DataStringColor

Source declaration: ../bitquirky-graph/Editor/GraphView/Styles/BitQuirkyColors.cs:155

DataString parsed into a usable color value.

C#
public const string DataStruct = "#B07AB0"

Source declaration: ../bitquirky-graph/Editor/GraphView/Styles/BitQuirkyColors.cs:73

Composite value types. CSS token value mirrored from Tokens.uss.

C#
public static readonly BitQuirky.Graph.GraphView.Styles.RgbaColor DataStructColor

Source declaration: ../bitquirky-graph/Editor/GraphView/Styles/BitQuirkyColors.cs:161

DataStruct parsed into a usable color value.

C#
public const string DataVoid = "#808011"

Source declaration: ../bitquirky-graph/Editor/GraphView/Styles/BitQuirkyColors.cs:75

A slot that carries no value. CSS token value mirrored from Tokens.uss.

C#
public static readonly BitQuirky.Graph.GraphView.Styles.RgbaColor DataVoidColor

Source declaration: ../bitquirky-graph/Editor/GraphView/Styles/BitQuirkyColors.cs:163

DataVoid parsed into a usable color value.

C#
public const string ErrorFill = "#C81E1E"

Source declaration: ../bitquirky-graph/Editor/GraphView/Styles/BitQuirkyColors.cs:112

Fill of an error badge. CSS token value mirrored from Tokens.uss.

C#
public static readonly BitQuirky.Graph.GraphView.Styles.RgbaColor ErrorFillColor

Source declaration: ../bitquirky-graph/Editor/GraphView/Styles/BitQuirkyColors.cs:193

ErrorFill parsed into a usable color value.

C#
public const string ErrorStroke = "#FF3C3C"

Source declaration: ../bitquirky-graph/Editor/GraphView/Styles/BitQuirkyColors.cs:114

Outline of an error badge. CSS token value mirrored from Tokens.uss.

C#
public static readonly BitQuirky.Graph.GraphView.Styles.RgbaColor ErrorStrokeColor

Source declaration: ../bitquirky-graph/Editor/GraphView/Styles/BitQuirkyColors.cs:195

ErrorStroke parsed into a usable color value.

C#
public const string IndicatorAmber = "#FF9800"

Source declaration: ../bitquirky-graph/Editor/GraphView/Styles/BitQuirkyColors.cs:102

A warning status indicator. CSS token value mirrored from Tokens.uss.

C#
public static readonly BitQuirky.Graph.GraphView.Styles.RgbaColor IndicatorAmberColor

Source declaration: ../bitquirky-graph/Editor/GraphView/Styles/BitQuirkyColors.cs:184

IndicatorAmber parsed into a usable color value.

C#
public const string IndicatorGreen = "#4CAF50"

Source declaration: ../bitquirky-graph/Editor/GraphView/Styles/BitQuirkyColors.cs:100

A healthy or passing status indicator. CSS token value mirrored from Tokens.uss.

C#
public static readonly BitQuirky.Graph.GraphView.Styles.RgbaColor IndicatorGreenColor

Source declaration: ../bitquirky-graph/Editor/GraphView/Styles/BitQuirkyColors.cs:182

IndicatorGreen parsed into a usable color value.

C#
public const string IndicatorRed = "#F44336"

Source declaration: ../bitquirky-graph/Editor/GraphView/Styles/BitQuirkyColors.cs:104

A failing status indicator. CSS token value mirrored from Tokens.uss.

C#
public static readonly BitQuirky.Graph.GraphView.Styles.RgbaColor IndicatorRedColor

Source declaration: ../bitquirky-graph/Editor/GraphView/Styles/BitQuirkyColors.cs:186

IndicatorRed parsed into a usable color value.

C#
public const string OverlayBody = "rgba(0, 0, 0, 0.31)"

Source declaration: ../bitquirky-graph/Editor/GraphView/Styles/BitQuirkyColors.cs:35

Darkening wash laid over a body surface. CSS token value mirrored from Tokens.uss.

C#
public static readonly BitQuirky.Graph.GraphView.Styles.RgbaColor OverlayBodyColor

Source declaration: ../bitquirky-graph/Editor/GraphView/Styles/BitQuirkyColors.cs:127

OverlayBody parsed into a usable color value.

C#
public const string OverlayGrid = "rgba(255, 255, 255, 0.14)"

Source declaration: ../bitquirky-graph/Editor/GraphView/Styles/BitQuirkyColors.cs:37

Lightening wash used for grid lines drawn over a surface. CSS token value mirrored from Tokens.uss.

C#
public static readonly BitQuirky.Graph.GraphView.Styles.RgbaColor OverlayGridColor

Source declaration: ../bitquirky-graph/Editor/GraphView/Styles/BitQuirkyColors.cs:129

OverlayGrid parsed into a usable color value.

C#
public const string SelectPrimaryWash = "rgba(43, 92, 140, 0.18)"

Source declaration: ../bitquirky-graph/Editor/GraphView/Styles/BitQuirkyColors.cs:92

Background wash of the primary selection. CSS token value mirrored from Tokens.uss.

C#
public static readonly BitQuirky.Graph.GraphView.Styles.RgbaColor SelectPrimaryWashColor

Source declaration: ../bitquirky-graph/Editor/GraphView/Styles/BitQuirkyColors.cs:175

SelectPrimaryWash parsed into a usable color value.

C#
public const string SelectSecondaryStripe = "#6B6B6E"

Source declaration: ../bitquirky-graph/Editor/GraphView/Styles/BitQuirkyColors.cs:94

Edge stripe marking a secondary selection. CSS token value mirrored from Tokens.uss.

C#
public static readonly BitQuirky.Graph.GraphView.Styles.RgbaColor SelectSecondaryStripeColor

Source declaration: ../bitquirky-graph/Editor/GraphView/Styles/BitQuirkyColors.cs:177

SelectSecondaryStripe parsed into a usable color value.

C#
public const string SelectSecondaryWash = "rgba(120, 120, 128, 0.12)"

Source declaration: ../bitquirky-graph/Editor/GraphView/Styles/BitQuirkyColors.cs:96

Background wash of a secondary selection. CSS token value mirrored from Tokens.uss.

C#
public static readonly BitQuirky.Graph.GraphView.Styles.RgbaColor SelectSecondaryWashColor

Source declaration: ../bitquirky-graph/Editor/GraphView/Styles/BitQuirkyColors.cs:179

SelectSecondaryWash parsed into a usable color value.

C#
public const string ShadowCard = "rgba(0, 0, 0, 0.47)"

Source declaration: ../bitquirky-graph/Editor/GraphView/Styles/BitQuirkyColors.cs:29

Drop shadow under a card-sized surface. CSS token value mirrored from Tokens.uss.

C#
public static readonly BitQuirky.Graph.GraphView.Styles.RgbaColor ShadowCardColor

Source declaration: ../bitquirky-graph/Editor/GraphView/Styles/BitQuirkyColors.cs:123

ShadowCard parsed into a usable color value.

C#
public const string ShadowGlyph = "rgba(0, 0, 0, 0.63)"

Source declaration: ../bitquirky-graph/Editor/GraphView/Styles/BitQuirkyColors.cs:31

Drop shadow under a small glyph, darker so it still reads at icon size. CSS token value mirrored from Tokens.uss.

C#
public static readonly BitQuirky.Graph.GraphView.Styles.RgbaColor ShadowGlyphColor

Source declaration: ../bitquirky-graph/Editor/GraphView/Styles/BitQuirkyColors.cs:125

ShadowGlyph parsed into a usable color value.

C#
public const string ShadowMenu = "rgba(0, 0, 0, 0.55)"

Source declaration: ../bitquirky-graph/Editor/GraphView/Styles/BitQuirkyColors.cs:27

Drop shadow under a floating menu or popover. CSS token value mirrored from Tokens.uss.

C#
public static readonly BitQuirky.Graph.GraphView.Styles.RgbaColor ShadowMenuColor

Source declaration: ../bitquirky-graph/Editor/GraphView/Styles/BitQuirkyColors.cs:121

ShadowMenu parsed into a usable color value.

C#
public const string SurfaceBorder = "#111114"

Source declaration: ../bitquirky-graph/Editor/GraphView/Styles/BitQuirkyColors.cs:57

The line separating two surfaces. CSS token value mirrored from Tokens.uss.

C#
public static readonly BitQuirky.Graph.GraphView.Styles.RgbaColor SurfaceBorderColor

Source declaration: ../bitquirky-graph/Editor/GraphView/Styles/BitQuirkyColors.cs:146

SurfaceBorder parsed into a usable color value.

C#
public const string SurfaceCanvas = "#38383E"

Source declaration: ../bitquirky-graph/Editor/GraphView/Styles/BitQuirkyColors.cs:49

The graph canvas backdrop, the furthest-back surface. CSS token value mirrored from Tokens.uss.

C#
public static readonly BitQuirky.Graph.GraphView.Styles.RgbaColor SurfaceCanvasColor

Source declaration: ../bitquirky-graph/Editor/GraphView/Styles/BitQuirkyColors.cs:138

SurfaceCanvas parsed into a usable color value.

C#
public const string SurfaceCard = "#1E1E21"

Source declaration: ../bitquirky-graph/Editor/GraphView/Styles/BitQuirkyColors.cs:55

A card or node body, the nearest surface. CSS token value mirrored from Tokens.uss.

C#
public static readonly BitQuirky.Graph.GraphView.Styles.RgbaColor SurfaceCardColor

Source declaration: ../bitquirky-graph/Editor/GraphView/Styles/BitQuirkyColors.cs:144

SurfaceCard parsed into a usable color value.

C#
public const string SurfaceHeading = "#232326"

Source declaration: ../bitquirky-graph/Editor/GraphView/Styles/BitQuirkyColors.cs:53

A heading band inside a panel. CSS token value mirrored from Tokens.uss.

C#
public static readonly BitQuirky.Graph.GraphView.Styles.RgbaColor SurfaceHeadingColor

Source declaration: ../bitquirky-graph/Editor/GraphView/Styles/BitQuirkyColors.cs:142

SurfaceHeading parsed into a usable color value.

C#
public const string SurfacePanel = "#2A2A2D"

Source declaration: ../bitquirky-graph/Editor/GraphView/Styles/BitQuirkyColors.cs:51

A docked panel beside the canvas. CSS token value mirrored from Tokens.uss.

C#
public static readonly BitQuirky.Graph.GraphView.Styles.RgbaColor SurfacePanelColor

Source declaration: ../bitquirky-graph/Editor/GraphView/Styles/BitQuirkyColors.cs:140

SurfacePanel parsed into a usable color value.

C#
public const string TextInverse = "#0E2226"

Source declaration: ../bitquirky-graph/Editor/GraphView/Styles/BitQuirkyColors.cs:45

Text drawn on a brand-colored fill. CSS token value mirrored from Tokens.uss.

C#
public static readonly BitQuirky.Graph.GraphView.Styles.RgbaColor TextInverseColor

Source declaration: ../bitquirky-graph/Editor/GraphView/Styles/BitQuirkyColors.cs:135

TextInverse parsed into a usable color value.

C#
public const string TextOnBright = "#262626"

Source declaration: ../bitquirky-graph/Editor/GraphView/Styles/BitQuirkyColors.cs:43

Text drawn on a bright fill, such as a light chip. CSS token value mirrored from Tokens.uss.

C#
public static readonly BitQuirky.Graph.GraphView.Styles.RgbaColor TextOnBrightColor

Source declaration: ../bitquirky-graph/Editor/GraphView/Styles/BitQuirkyColors.cs:133

TextOnBright parsed into a usable color value.

C#
public const string WarnFill = "#996600"

Source declaration: ../bitquirky-graph/Editor/GraphView/Styles/BitQuirkyColors.cs:108

Fill of a warning badge. CSS token value mirrored from Tokens.uss.

C#
public static readonly BitQuirky.Graph.GraphView.Styles.RgbaColor WarnFillColor

Source declaration: ../bitquirky-graph/Editor/GraphView/Styles/BitQuirkyColors.cs:189

WarnFill parsed into a usable color value.

C#
public const string WarnStroke = "#4D3300"

Source declaration: ../bitquirky-graph/Editor/GraphView/Styles/BitQuirkyColors.cs:110

Outline of a warning badge. CSS token value mirrored from Tokens.uss.

C#
public static readonly BitQuirky.Graph.GraphView.Styles.RgbaColor WarnStrokeColor

Source declaration: ../bitquirky-graph/Editor/GraphView/Styles/BitQuirkyColors.cs:191

WarnStroke parsed into a usable color value.

Category: Low-level runtime

C#
class BitQuirky.Graph.GraphView.Styles.ColorExtensions

Source declaration: ../bitquirky-graph/Editor/GraphView/Styles/GraphColorUtility.cs:218-232

Bridges the library’s platform-independent color to Unity’s.

C#
public static UnityEngine.Color ToUnityColor(this BitQuirky.Graph.GraphView.Styles.RgbaColor rgba)

Source declaration: ../bitquirky-graph/Editor/GraphView/Styles/GraphColorUtility.cs:223-231

Converts an RgbaColor (0-255) to a Unity Color (0-1).

Category: Low-level runtime

C#
class BitQuirky.Graph.GraphView.Styles.DesignSystemTimings

Source declaration: ../bitquirky-graph/Editor/GraphView/Styles/DesignSystem/DesignSystemTimings.cs:47-77

C# mirror of the timing tokens declared in Effects.uss (--bq-pulse-period-ms, --bq-tint-decay-ms, --bq-glow-radius, --bq-card-radius). UI Toolkit does not surface USS variables to C#, so consumers of the design system that need the same timing in C# read it here.

Responsibilities:

  • Restate the design-system timing constants so the C# side of the pulse + tint scheduler has a single authoritative source.
  • Stay in lockstep with Effects.uss. Any change here must be reflected in Effects.uss in the same commit (and vice versa); the design-system contract treats both as one declaration.

Does NOT:

  • Read the USS variable at runtime. UI Toolkit has no API for that yet, so we accept the duplication and document the single-source-of-truth obligation here.

Remarks

Round Trip: adopt this class directly. Round Trip projects may override individual values via an editor preference if they genuinely need a different cadence, but the canonical design-system numbers live here.

C#
public const int CardRadiusPx = 6

Source declaration: ../bitquirky-graph/Editor/GraphView/Styles/DesignSystem/DesignSystemTimings.cs:74

Card corner radius in pixels. Mirrors --bq-card-radius: 6px in Effects.uss.

C#
public const int GlowRadiusPx = 4

Source declaration: ../bitquirky-graph/Editor/GraphView/Styles/DesignSystem/DesignSystemTimings.cs:68

Outer glow radius in pixels. Mirrors --bq-glow-radius: 4px in Effects.uss.

C#
public const int PulsePeriodMs = 1400

Source declaration: ../bitquirky-graph/Editor/GraphView/Styles/DesignSystem/DesignSystemTimings.cs:55

One full pulse cycle (on -> off -> on) in milliseconds. Mirrors --bq-pulse-period-ms: 1400 in Effects.uss.

C#
public const int TintDecayMs = 2400

Source declaration: ../bitquirky-graph/Editor/GraphView/Styles/DesignSystem/DesignSystemTimings.cs:62

Recent-change tint decay time in milliseconds. After this duration the.ed-tint-recentclass is removed by the scheduler. Mirrors --bq-tint-decay-ms: 2400 in Effects.uss.

Category: Low-level runtime

C#
class BitQuirky.Graph.GraphView.Styles.GraphColorUtility

Source declaration: ../bitquirky-graph/Editor/GraphView/Styles/GraphColorUtility.cs:11-213

Utility for calculating contrast colors for graph elements. Matches Avalonia’s luminance-based label color calculation.

C#
public static UnityEngine.Color BodyLabelColor { get; }

Source declaration: ../bitquirky-graph/Editor/GraphView/Styles/GraphColorUtility.cs:23

Label color for node bodies (body overlay is dark, so always light text).

C#
public static UnityEngine.Color DefaultBodyColor { get; }

Source declaration: ../bitquirky-graph/Editor/GraphView/Styles/GraphColorUtility.cs:127

Default body color for nodes (semi-transparent overlay).

C#
public static UnityEngine.Color DefaultHeaderColor { get; }

Source declaration: ../bitquirky-graph/Editor/GraphView/Styles/GraphColorUtility.cs:122

Default header color for nodes (used as fallback). Matches Avalonia’s accent color.

C#
public static readonly UnityEngine.Color EventDelegateColor

Source declaration: ../bitquirky-graph/Editor/GraphView/Styles/GraphColorUtility.cs:155

Event/delegate-reference red. Used by: -PortViewfor the delegate-header pin square. -GraphViewHostfor committed delegate-reference wires and the matching connection ghost wire (feature round-trip 067), so the drag preview always matches the wire it becomes. One named constant instead of scattered literals so the event vocabulary re-themes in a single place.

C#
public static readonly UnityEngine.Color ExecutionFlowColor

Source declaration: ../bitquirky-graph/Editor/GraphView/Styles/GraphColorUtility.cs:142

Execution-flow stroke / glyph color . Used by: -PortViewfor the white exec triangle on each exec pin. -EdgeLayervia ExecutionEdgeColorfor the exec wire stroke.

  • The on-canvas type legend’s exec row, so the swatch matches what the user sees on every exec pin / wire. Kept as a single named constant rather than scattered Color.whiteliterals so a future re-theme can move all three call sites at once.

C#
public static readonly UnityEngine.Color EyebrowChipBackgroundColor

Source declaration: ../bitquirky-graph/Editor/GraphView/Styles/GraphColorUtility.cs:171

Background for the member/static access pill’s owner-path “chip” that floats above the capsule (design: feature-pill-get-node). A dark rounded plate so the dim mono path reads against the canvas without competing with the type-colored capsule.

C#
public static readonly UnityEngine.Color EyebrowChipTextColor

Source declaration: ../bitquirky-graph/Editor/GraphView/Styles/GraphColorUtility.cs:177

Owner-path text color inside the floating chip - a dim gray that sits below the leaf in the visual hierarchy.

C#
public static readonly UnityEngine.Color GetVariablePillHeaderPinColor

Source declaration: ../bitquirky-graph/Editor/GraphView/Styles/GraphColorUtility.cs:164

Data pin color used when a data-producing GET pill places its output pin on the data-type colored header. It overlays translucent white on the header, so the pin reads as a lighter version of the data type color while staying distinct from solid-white execution pins.

C#
public const float GradientLightenFactor = 0.3

Source declaration: ../bitquirky-graph/Editor/GraphView/Styles/GraphColorUtility.cs:212

Gradient lighten factor matching Avalonia settings.

C#
public static readonly UnityEngine.Color PillPinOutlineColor

Source declaration: ../bitquirky-graph/Editor/GraphView/Styles/GraphColorUtility.cs:184

Thin light ring drawn around GET / member-access pill pins so the inbound (object) and outbound (transparent-white) dots read as outlined, per the pill design. Kept subtle - a touch softer than the design render.

C#
public const float PillPinOutlineWidth = 1.25

Source declaration: ../bitquirky-graph/Editor/GraphView/Styles/GraphColorUtility.cs:186

Width in pixels of the ring drawn with PillPinOutlineColor.

C#
public static readonly UnityEngine.Color UnsupportedCardBodyColor

Source declaration: ../bitquirky-graph/Editor/GraphView/Styles/GraphColorUtility.cs:197

Body fill for unsupported node cards. Keeps placeholder nodes gray instead of inheriting the default near-black card body.

C#
public static readonly UnityEngine.Color UnsupportedGlyphBackgroundColor

Source declaration: ../bitquirky-graph/Editor/GraphView/Styles/GraphColorUtility.cs:207

Backplate for the unsupported node glyph.

C#
public static readonly UnityEngine.Color UnsupportedGlyphColor

Source declaration: ../bitquirky-graph/Editor/GraphView/Styles/GraphColorUtility.cs:202

Circle-slash glyph color used on unsupported node cards.

C#
public static readonly UnityEngine.Color UnsupportedIndicatorColor

Source declaration: ../bitquirky-graph/Editor/GraphView/Styles/GraphColorUtility.cs:191

Orange marker used for unsupported source constructs.

C#
public static float CalculateLuminance(UnityEngine.Color color)

Source declaration: ../bitquirky-graph/Editor/GraphView/Styles/GraphColorUtility.cs:29-38

Calculates the relative luminance of a color using the sRGB formula. Returns a value between 0 (black) and 1 (white).

C#
public static UnityEngine.Color DarkenColor(UnityEngine.Color color, float factor)

Source declaration: ../bitquirky-graph/Editor/GraphView/Styles/GraphColorUtility.cs:77-86

Darkens a color by the specified factor (0.0 = no change, 1.0 = black). Matches Avalonia’s LightenColor function (which actually darkens).

C#
public static UnityEngine.Color GetCategoryColor(string category)

Source declaration: ../bitquirky-graph/Editor/GraphView/Styles/GraphColorUtility.cs:67-71

Gets the color for a node category (e.g., “Entry/Exit”, “Flow”, “Default Pure”).

C#
public static UnityEngine.Color GetContrastColor(UnityEngine.Color backgroundColor)

Source declaration: ../bitquirky-graph/Editor/GraphView/Styles/GraphColorUtility.cs:46-53

Gets the appropriate label/pin color based on the background color’s luminance. Light backgrounds get dark elements; dark backgrounds get light elements.

Parameters

  • backgroundColor: The background color to analyze

Returns

A contrasting color for visibility

C#
public static UnityEngine.Color GetDataTypeColor(string typeName)

Source declaration: ../bitquirky-graph/Editor/GraphView/Styles/GraphColorUtility.cs:58-62

Gets the color for a data type (e.g., “int”, “string”, “bool”).

C#
public static UnityEngine.Color ParseHex(string hex)

Source declaration: ../bitquirky-graph/Editor/GraphView/Styles/GraphColorUtility.cs:92-116

Parses a hex color string to a Unity Color. Supports formats: #RGB, #RGBA, #RRGGBB, #RRGGBBAA

Category: Low-level runtime

C#
class BitQuirky.Graph.GraphView.Styles.NodeColorRules

Source declaration: ../bitquirky-graph/Editor/GraphView/Styles/NodeColorRules.cs:126-523

String-typed color rules for graph nodes and pins. Maps a data-type name (e.g. “int”, “string”) or a category name (e.g. “Flow”, “Default Pure”) to a stable display color.

Responsibilities:

  • Return a deterministicRgbaColorfor any data-type name, category name, or pin data-type used by the renderer.
  • Normalize incoming type names (strip nullable/array suffixes, collapse generic type parameters, alias .NET FCL names like “System.Int32” to their C# keyword form).

Does NOT:

  • Inspect a domain-specific node type or kind. The caller passes a plain string. Higher layers that want kind-based coloring should resolve to a category string before calling.

Inlined during the 013-behavior-graph-refactor extraction. The upstreamRoundTrip.Engine.Rendering.NodeColorRulesexposed additionalNodeKind-typed overloads that pulled in RoundTrip.Core.Models.MethodGraph; those overloads are not reproduced here because Layer 1 must remain free of round-trip types.

C#
public const string ExecDataType = "exec"

Source declaration: ../bitquirky-graph/Editor/GraphView/Styles/NodeColorRules.cs:496

Sentinel data-type token used by the renderer to mark execution flow pins / wires. Not a real data type: surfaces as its own row in the legend (white triangle / white wire).

C#
public static readonly System.Collections.Generic.IReadOnlyList<string> FirstClassDataTypes

Source declaration: ../bitquirky-graph/Editor/GraphView/Styles/NodeColorRules.cs:478-489

Canonical list of first-class data types surfaced in the on-canvas type legend. Order matches the legend’s top-to-bottom row order: numeric (int → float), boolean, text (string → char), reference (object → struct), then the default fallback. Mirrors the same list maintained on the Round Trip engine side (RoundTrip.Engine.Rendering.NodeColorRules.FirstClassDataTypes) so the legend renders identically whether populated from the shared package or driven by the engine.

C#
public const string WildcardDataType = "wildcard"

Source declaration: ../bitquirky-graph/Editor/GraphView/Styles/NodeColorRules.cs:135

The token for a pin whose type is not decided yet, drawn grey. Distinct from “default”: that one colours a value whose type is known to be nothing in particular (a null literal), and this one colours a pin still WAITING to be told, which is a different thing to say.

C#
public static BitQuirky.Graph.GraphView.Styles.RgbaColor GetCategoryColor(string category)

Source declaration: ../bitquirky-graph/Editor/GraphView/Styles/NodeColorRules.cs:438-451

Returns the color for a category. Falls back to “Default Impure” when the category is unknown or empty.

C#
public static BitQuirky.Graph.GraphView.Styles.RgbaColor GetDataTypeColor(string typeName)

Source declaration: ../bitquirky-graph/Editor/GraphView/Styles/NodeColorRules.cs:302-358

Returns the color for a data type. Always opaque. A type name that is empty, or a placeholder rather than a decision (var, unknown, null, ?), resolves to WildcardDataType: those pins are waiting to be told, not typed.

C#
public static BitQuirky.Graph.GraphView.Styles.RgbaColor GetPinColor(string dataType)

Source declaration: ../bitquirky-graph/Editor/GraphView/Styles/NodeColorRules.cs:458-466

Returns the color for a pin. Exec pins are semi-transparent white (≈70% opacity) so the underlying node body bleeds through; data pins are fully opaque (perGetDataTypeColor).

Category: Low-level runtime

C#
readonly struct BitQuirky.Graph.GraphView.Styles.RgbaColor

Source declaration: ../bitquirky-graph/Editor/GraphView/Styles/NodeColorRules.cs:20-99

Platform-independent RGBA color (0-255 per channel).

Responsibilities:

  • Carry color values returned byNodeColorRuleswithout pulling in a Unity or Avalonia type at the API boundary.

Does NOT:

  • Provide arithmetic, blending, gamma conversion, or any Unity UnityEngine.Colorconversions. Callers do that themselves (seeGraphColorUtility).

C#
public byte A { get; }

Source declaration: ../bitquirky-graph/Editor/GraphView/Styles/NodeColorRules.cs:29

Alpha channel, 0 (transparent) to 255 (opaque).

C#
public byte B { get; }

Source declaration: ../bitquirky-graph/Editor/GraphView/Styles/NodeColorRules.cs:27

Blue channel, 0 to 255.

C#
public byte G { get; }

Source declaration: ../bitquirky-graph/Editor/GraphView/Styles/NodeColorRules.cs:25

Green channel, 0 to 255.

C#
public byte R { get; }

Source declaration: ../bitquirky-graph/Editor/GraphView/Styles/NodeColorRules.cs:23

Red channel, 0 to 255.

C#
public RgbaColor(byte r, byte g, byte b, byte a = 255)

Source declaration: ../bitquirky-graph/Editor/GraphView/Styles/NodeColorRules.cs:36-42

Builds a color from 0-255 channel bytes.adefaults to 255, fully opaque, since most authored colors are. No conversion is applied: the bytes are stored as given, in whatever space the caller’s source used.

C#
public static BitQuirky.Graph.GraphView.Styles.RgbaColor FromHex(string hex)

Source declaration: ../bitquirky-graph/Editor/GraphView/Styles/NodeColorRules.cs:54-98

Parses a hex color string (#RGB, #RGBA, #RRGGBB, #RRGGBBAA). On unparseable input returns opaque white.

C#
public BitQuirky.Graph.GraphView.Styles.RgbaColor Opaque()

Source declaration: ../bitquirky-graph/Editor/GraphView/Styles/NodeColorRules.cs:48

Returns a fully opaque version of this color.

C#
public BitQuirky.Graph.GraphView.Styles.RgbaColor WithAlpha(byte alpha)

Source declaration: ../bitquirky-graph/Editor/GraphView/Styles/NodeColorRules.cs:45

Returns a new color with the specified alpha value.

Source fingerprint: sha256:ad0983d00d773d882bc61865e18d8c5559e009d181e5891575cd7f262515b23e

Full-size image