Window Framework for UI Toolkit v2.0.x
GWG.WindowFramework.Editor.ThemeUpgradeConverter Class Reference

Converts effective 1.0 source declarations using private versioned defaults. More...

Data Structures

class  Result
 Converted source and explicit preservation diagnostics; no files are written. More...

Static Public Member Functions

static Result Convert (ThemeSourceGraph input, ThemeSourceGraph sourceDefaults, ThemeSourceGraph targetDefaults)
 Pure conversion from ordered graphs; useful for isolated regression tests.
static Result Convert (ThemeStyleSheet input)
 Reads only supplied source and the two private default groups.

Static Public Attributes

const string SourceDefaultsResource = "WindowFramework/StudioDefaults/StudioUpgrade-v1.0-WFW-DefaultRuntimeTheme"
const string TargetDefaultsResource = "WindowFramework/Themes/StudioDefaults2.0Theme/WFW.DefaultTheme2"

Static Private Member Functions

static Dictionary< string, string > Normalize (ThemeSourceGraph graph)
static string ProjectUnmappedRule (string source, HashSet< string > unmapped)
static string Resolve (string key, string value, IReadOnlyDictionary< string, string > values)

Static Private Attributes

static readonly string[] Mappings

Detailed Description

Converts effective 1.0 source declarations using private versioned defaults.

No repository selection, editor controls, theme names or image names determine values. Missing declarations use private defaults; declared none/zero/transparent values survive. Unknown declarations and custom rules remain source, with a migration report. The caller owns asset copies and validates preparation before publishing the result.

Member Function Documentation

◆ Convert() [1/2]

Result GWG.WindowFramework.Editor.ThemeUpgradeConverter.Convert ( ThemeSourceGraph input,
ThemeSourceGraph sourceDefaults,
ThemeSourceGraph targetDefaults )
inlinestatic

Pure conversion from ordered graphs; useful for isolated regression tests.

Here is the call graph for this function:

◆ Convert() [2/2]

Result GWG.WindowFramework.Editor.ThemeUpgradeConverter.Convert ( ThemeStyleSheet input)
inlinestatic

Reads only supplied source and the two private default groups.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Normalize()

Dictionary< string, string > GWG.WindowFramework.Editor.ThemeUpgradeConverter.Normalize ( ThemeSourceGraph graph)
inlinestaticprivate
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ProjectUnmappedRule()

string GWG.WindowFramework.Editor.ThemeUpgradeConverter.ProjectUnmappedRule ( string source,
HashSet< string > unmapped )
inlinestaticprivate
Here is the caller graph for this function:

◆ Resolve()

string GWG.WindowFramework.Editor.ThemeUpgradeConverter.Resolve ( string key,
string value,
IReadOnlyDictionary< string, string > values )
inlinestaticprivate
Here is the call graph for this function:
Here is the caller graph for this function:

Field Documentation

◆ Mappings

readonly string [] GWG.WindowFramework.Editor.ThemeUpgradeConverter.Mappings
staticprivate

◆ SourceDefaultsResource

const string GWG.WindowFramework.Editor.ThemeUpgradeConverter.SourceDefaultsResource = "WindowFramework/StudioDefaults/StudioUpgrade-v1.0-WFW-DefaultRuntimeTheme"
static

◆ TargetDefaultsResource

const string GWG.WindowFramework.Editor.ThemeUpgradeConverter.TargetDefaultsResource = "WindowFramework/Themes/StudioDefaults2.0Theme/WFW.DefaultTheme2"
static