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

Unified commercial-grade WYSIWYG Theme Studio view. Provides a synchronized 3-pane interface: Theme Master List, Design Token Inspector, and Live Preview Canvas. Supports live editing of 2.0 themes and 1-click upgrading of legacy 1.0 themes. More...

Inheritance diagram for GWG.WindowFramework.Editor.ThemeStudioView:
Collaboration diagram for GWG.WindowFramework.Editor.ThemeStudioView:

Data Structures

class  ThemeAssetTokenRow
 Encapsulates a dual-type (Texture2D / VectorImage) asset token field row with Resources/ validation. More...

Public Member Functions

 ThemeStudioView (WindowFrameThemeData themeData)
 Builds the editor inspector/flyout/preview for the supplied collection.
void CloseFlyout ()
 Hides the editor drawer/backdrop without undoing selection or saving edits.
void DuplicateSelectedTheme ()
 Duplicates the selected theme's complete owned folder and registers an independent entry.
void DuplicateSelectedTheme (string destinationFolderPath)
 Duplicates the selected theme into an exact destination folder supplied by developer tooling.
void OpenFlyout ()
 Shows the editor flyout/backdrop and refreshes the current collection rows.
void SaveThemeFilesToDisk ()
 Saves framework inspector values and explicitly edited annotated developer values.
void SelectTheme (int index)
 Selects the theme at the specified index, validates 2.0 compatibility, and updates UI panes.
void UpgradeSelectedThemeToV2 ()
 Creates an independently owned modern child folder from the selected legacy theme.

Events

Action< WindowFrameThemeData > OnThemeDataChanged
 Requests manager asset replacement when the footer's collection selector changes.
Action< WindowFrameTheme > OnThemeSaved
 Publishes the borrowed entry after successful source authoring and collection saving.

Private Types

enum  ThemeImageType { Texture2D }
 Supported image asset types for theme preview icons. More...

Private Member Functions

void AddStudioFieldMetadata (VisualElement field, params string[] tokens)
 Wraps existing Studio fields using the common compact linked-value row.
void ApplyPreviewComposition (StyleSheet settings)
 Applies the selected runtime composition only to actual preview-item scopes.
void BuildCanvasPane ()
void BuildFlyoutDrawer ()
void BuildInspectorPane ()
void BuildLayout ()
VisualElement BuildLegacyUpgradeCard ()
GWG.WindowFramework.Theming.PlayerThemeValues BuildPresentationPreviewValues ()
ColorField CreateColorField (string label, Color initialColor, Action< Color > onChanged)
VisualElement CreateContextPreviewItem (string text, bool selected, bool disabled=false)
SliderInt CreateIntSlider (string label, int min, int max, int initialValue, Action< int > onChanged)
VisualElement CreatePresentationGroup (string title, string prefix)
VisualElement CreatePreviewSection (string title, VisualElement example, VisualElement themeTarget=null)
VisualElement CreatePropertyGroup (string title)
VisualElement CreateStatusPreview ()
void CreateThemeFilesOnDisk (string themeDisplayName, string filePrefix, string targetDirectory=null, string duplicateSourcePath=null, string legacySourcePath=null)
void CreateThemeFilesOnDiskCore (string themeDisplayName, string filePrefix, string targetDirectory, string duplicateSourcePath, string legacySourcePath, string destinationOverride)
void DeveloperFieldChanged (string identity)
void ExtractAssetToken (string css, string propertyName, ThemeAssetTokenRow row)
void ExtractComponentTokens (WindowFrameTheme theme)
void ExtractTokensFromTheme (WindowFrameTheme theme)
void ForgetStudioMetadataRows (VisualElement host)
 Releases only generated UI references when a developer form is rebuilt.
string GenerateEditedUssContent (string title)
string GetAssetCssTokens ()
ThemeAssetTokenRow[] GetAssetRows ()
string GetComponentCssTokens ()
string GetFontCssToken ()
string GetPresentationExpression (GWG.WindowFramework.Theming.PlayerThemeTokenCatalog.Entry definition)
string GetStatusCssTokens ()
bool IsThemeV2Compatible (WindowFrameTheme theme)
void LoadDeveloperFields (ThemeSourceGraph graph)
 Uses the same metadata definitions as runtime preparation; only a changed schema rebuilds controls.
void PresentationFieldChanged (string token)
void RefreshLinkedPresentationFields (IReadOnlyDictionary< string, string > expressions, bool initialLoad=false)
void RefreshPreviewComposition (int index, StyleSheet activeSheet)
void RefreshStudioLinkedValues (IReadOnlyDictionary< string, string > expressions)
 Refreshes non-overridden controls from their retained authored expressions.
void RefreshStudioMetadata (ThemeSourceGraph graph)
 Loads actual links for base and annotated fields; no link is invented for literals.
void RegisterStudioMetadataLine (VisualElement line, Label source, params string[] tokens)
void SetActiveImageType (ThemeImageType newType)
 Switches the active image selector view between Texture2D and VectorImage, updating UI displays accordingly.
void ToggleFlyout ()
bool TryBuildDeveloperWrites (string ussPath, string frameworkUpdated, byte[] originalBytes, out ThemeSourceFileTransaction.Write[] writes, out string error)
 Builds writes only for the current framework source and explicitly edited developer sources.
bool TryGetDeveloperEdits (out Dictionary< string, string > edits, out string error)
void UpdatePreviewTokens ()
void UpdateThemeImagePreview ()
 Updates the real-time thumbnail preview image depending on the currently active image asset and view mode.

Static Private Member Functions

static void ApplyAssetToStyleBackground (VisualElement target, ThemeAssetTokenRow row)
static string ColorToCss (Color c)
static string GenerateUssContent (string title)
 Generates fresh-creation settings only from the private complete 2.0 system default.
static bool IsPresentationField (GWG.WindowFramework.Theming.PlayerThemeTokenCatalog.Entry definition)
static Color ParseCssColor (string cssValue, Color fallback)
static string ReadStudioDefaultsCss ()
 Reads the editor creation seed, never an existing theme's appearance fallback.
static string ResolveCssVariable (string rawValue)
static UnityEngine.Object ResolveStudioDefaultAsset (string expression, string origin)
 Resolves a seed reference only inside the seed's own folder.
static void SetBorderColor (VisualElement el, Color color)
static void SetBorderRadius (VisualElement el, float radius)
static void SetBorderWidth (VisualElement el, float width)
static StyleBackground StudioDefaultBackground (string token)
 Initial editor-preview artwork; selected-theme rows replace it after selection.
static string StudioDeveloperIdentity (VisualElement field)
static bool TryExtractCssProperty (string cssContent, string propertyName, out string value)
static bool TryPresentationNumber (GWG.WindowFramework.Theming.PlayerThemeTokenCatalog.Entry definition, string expression, out float value)
static void UpdatePreviewAsset (VisualElement root, string name, string initialAssetName, ThemeAssetTokenRow row)

Private Attributes

ColorField _accentActiveField
ColorField _accentHoverField
ColorField _accentPrimaryField
VisualElement _actionButtonBar
ThemeImageType _activeImageType = ThemeImageType.Texture2D
ThemeSourceGraph _assetSourceGraph
ColorField _borderDefaultField
SliderInt _borderRadiusSlider
SliderInt _borderWidthSlider
VisualElement _canvasLegacyNoticeOverlay
VisualElement _canvasPane
VisualElement _canvasWrapper
readonly Dictionary< string, ThemeAssetTokenRow > _componentAssetFields = new Dictionary<string, ThemeAssetTokenRow>()
readonly Dictionary< string, VisualElement > _componentAssetRows = new Dictionary<string, VisualElement>()
readonly Dictionary< string, ColorField > _componentColorFields = new Dictionary<string, ColorField>()
readonly HashSet< string > _componentDirtyTokens = new HashSet<string>(StringComparer.Ordinal)
readonly Dictionary< string, string > _componentExpressions = new Dictionary<string, string>(StringComparer.Ordinal)
readonly Dictionary< string, VisualElement > _componentFieldRoots = new Dictionary<string, VisualElement>()
readonly Dictionary< string, FloatField > _componentNumberFields = new Dictionary<string, FloatField>()
readonly Dictionary< string, string > _componentOrigins = new Dictionary<string, string>(StringComparer.Ordinal)
readonly Dictionary< string, GWG.Extensions.SlideToggleControl > _componentReferenceToggles = new Dictionary<string, GWG.Extensions.SlideToggleControl>()
readonly Dictionary< string, Label > _componentSourceLabels = new Dictionary<string, Label>()
ThemeStyleSheet _componentSourceSheet
ColorField _contextMenuBgField
ColorField _contextMenuBorderField
ColorField _contextMenuHoverBgField
ColorField _contextMenuTextField
ColorField _contextMenuTitleBgField
ColorField _defaultIndicatorColorField
readonly Dictionary< string, ColorField > _developerColorFields = new Dictionary<string, ColorField>(StringComparer.Ordinal)
readonly HashSet< string > _developerDirtySettings = new HashSet<string>(StringComparer.Ordinal)
HelpBox _developerError
VisualElement _developerFieldsHost
bool _developerFieldsValid = true
string _developerFormSignature
ThemeSourceGraph _developerGraph
readonly Dictionary< string, ThemeAssetTokenRow > _developerImageFields = new Dictionary<string, ThemeAssetTokenRow>(StringComparer.Ordinal)
readonly Dictionary< string, FloatField > _developerNumberFields = new Dictionary<string, FloatField>(StringComparer.Ordinal)
readonly Dictionary< string, GWG.WindowFramework.Theming.DeveloperThemeDefinition.Setting > _developerSettings = new Dictionary<string, GWG.WindowFramework.Theming.DeveloperThemeDefinition.Setting>(StringComparer.Ordinal)
readonly Dictionary< string, byte[]> _developerSourceBytes = new Dictionary<string, byte[]>(StringComparer.Ordinal)
readonly Dictionary< string, string > _developerSourceTexts = new Dictionary<string, string>(StringComparer.Ordinal)
Button _duplicateButton
readonly string _editingThemePreferenceKey
VisualElement _flyoutBackdrop
VisualElement _flyoutDrawer
Label _flyoutTitleLabel
Button _flyoutToggleButton
ObjectField _fontAssetField
SliderInt _fontSizeBodySlider
SliderInt _fontSizeSmallSlider
SliderInt _fontSizeTitleSlider
VisualElement _inspectorFooter
VisualElement _inspectorPane
ScrollView _inspectorScrollView
Label _inspectorTitleLabel
IDisposable _interactionTelemetry
 Initializes a new instance of the ThemeStudioView class bound to the specified theme data asset.
bool _isCurrentThemeV2 = true
bool _isFlyoutOpen = false
bool _isOpeningFlyout = false
Label _legacyDescriptionLabel
VisualElement _legacyUpgradeCard
bool _loadingComponentFields
bool _loadingDeveloperFields
bool _loadingStudioLinks
readonly List< IDisposable > _previewAdditionalBindings = new List<IDisposable>()
GWG.WindowFramework.Theming.PlayerThemeScopeBinding _previewComponentBinding
readonly List< StyleSheet > _previewCompositionSheets = new List<StyleSheet>()
VisualElement _previewContextMenu
VisualElement _previewModal
VisualElement _previewSamplesRoot
ScrollView _previewScrollView
GWG.Extensions.SlideToggleControl _previewSlideToggle
readonly List< IDisposable > _previewStatusBindings = new List<IDisposable>()
readonly Dictionary< string, Label > _previewStatusLabels = new Dictionary<string, Label>()
VisualElement _previewTab1
Label _previewTab1Label
VisualElement _previewTab2
Label _previewTab2Label
VisualElement _previewTabBar
readonly List< VisualElement > _previewThemeTargets = new List<VisualElement>()
VisualElement _previewTooltip
Label _previewTooltipLabel
VisualElement _previewWindowContent
VisualElement _previewWindowFooter
VisualElement _previewWindowFrame
Label _previewWindowTitle
Button _saveButton
WindowFrameTheme _selectedTheme
int _selectedThemeIndex = -1
readonly Dictionary< VisualElement, string > _studioAuthoredLinks = new Dictionary<VisualElement, string>()
Dictionary< string, string > _studioDeveloperExpressions = new Dictionary<string, string>(StringComparer.Ordinal)
readonly Dictionary< VisualElement, VisualElement > _studioLinkFields = new Dictionary<VisualElement, VisualElement>()
readonly Dictionary< VisualElement, GWG.Extensions.SlideToggleControl > _studioLinkOverrides = new Dictionary<VisualElement, GWG.Extensions.SlideToggleControl>()
readonly Dictionary< VisualElement, Label > _studioMetadataSources = new Dictionary<VisualElement, Label>()
readonly Dictionary< VisualElement, string[]> _studioMetadataTokens = new Dictionary<VisualElement, string[]>()
TwoPaneSplitView _studioSplitView
ColorField _surfaceBgField
ColorField _surfaceFooterField
ColorField _surfaceHeaderField
ColorField _surfaceOverlayField
ColorField _surfaceSunkenField
ColorField _tabActiveBgField
ColorField _tabActiveBorderField
ColorField _tabBarBgField
SliderInt _tabBarHeightSlider
ColorField _tabInactiveBgField
ColorField _textAccentField
ColorField _textPrimaryField
ColorField _textSecondaryField
Button _textureTypeBtn
WindowFrameThemeData _themeData
ObjectField _themeDataAssetField
TextField _themeDescEditField
Image _themeImagePreview
VisualElement _themeImagePreviewBox
ThemeListView _themeListView
TextField _themeNameEditField
ObjectField _themeStyleSheetField
ObjectField _themeTextureField
VisualElement _tokenControlsContainer
ThemeAssetTokenRow _tokenRowBgImage
ThemeAssetTokenRow _tokenRowCheckIcon
ThemeAssetTokenRow _tokenRowDefaultIndicator
ThemeAssetTokenRow _tokenRowDraglineCursor
ThemeAssetTokenRow _tokenRowLockIcon
ThemeAssetTokenRow _tokenRowMenuIcon
ThemeAssetTokenRow _tokenRowResizeCursor
ThemeAssetTokenRow _tokenRowResizeCursorEw
ThemeAssetTokenRow _tokenRowResizeCursorNesw
ThemeAssetTokenRow _tokenRowResizeCursorNs
ThemeAssetTokenRow _tokenRowResizeCursorNwse
ThemeAssetTokenRow _tokenRowResizeIcon
ThemeAssetTokenRow _tokenRowVerticalDraglineCursor
ThemeAssetTokenRow _tokenRowWarningIcon
ColorField _tooltipBgField
ColorField _tooltipBorderField
ColorField _tooltipTextField
bool _updatingPreview
Button _upgradeButton
Button _vectorTypeBtn

Static Private Attributes

static Dictionary< string, string > _primitiveColorCache
const string StudioDefaultsResourcePath = "WindowFramework/StudioDefaults/StudioDefaults"

Detailed Description

Unified commercial-grade WYSIWYG Theme Studio view. Provides a synchronized 3-pane interface: Theme Master List, Design Token Inspector, and Live Preview Canvas. Supports live editing of 2.0 themes and 1-click upgrading of legacy 1.0 themes.

Allows developers to visually inspect, modify, upgrade, and duplicate themes in real time with instant UI Toolkit feedback.

ACCEPTED MAINTENANCE BOUNDARY: the user accepted this layout and metadata-driven developer authoring as close to the intended specification. Preserve the simple existing authoring paths. Change behavior only for a specific user-authorized defect or requirement; outstanding release testing is not permission to redesign the form, metadata, Copy, runtime bindings or source ownership.

FRAMEWORK BEFORE ADD-ONS: framework sections are independent, flush-content foldouts. Default Indicator Tint belongs in Interactive Accents. Framework Images precedes our Form Elements (Extensions). Developer Extensions is last: a permanent separator/title and explanation, followed by namespace foldouts only when annotated settings exist; otherwise it displays "None installed.". Do not replace this with an accordion, section selector, tree indentation or header-icon system.

ONE METADATA SOURCE: the existing WFWDevExt annotations supply identities, labels, descriptions, types and numeric constraints for Studio and prepared runtime definitions. USS declarations own the values. Studio does not invent Demo-specific fields, a second defaults store, weaker bounds, selectors or a new player schema. Runtime continues to consume prepared definitions, not source USS text or player-controlled metadata.

EDITING AND SAVING: loading values does not fire user-edit callbacks. Matching metadata schemas reuse controls; current source tooltips and values refresh on theme selection. Save uses the existing byte-checked transaction to update framework settings and only explicitly edited annotated developer values at their original source/scope. Preserve metadata headers, unchanged aliases, selectors and unrelated declarations. Package sources are not writable through this form. Image selection/Clear/Save retain or clear references without copying, moving or deleting artwork; copying remains the responsibility of explicit copy operations and their existing boundaries.

VERIFICATION LIMIT: focused attached-editor checks passed metadata field loading, exclusive numeric bounds, actual number/color/image Save and reopening, original developer source preservation, external image-reference retention without image copies, and the empty state. The user accepted the presentation. These checks do not certify every runtime override, platform, shared-source combination or failure-recovery case; remaining release verification stays deferred.

Member Enumeration Documentation

◆ ThemeImageType

Supported image asset types for theme preview icons.

Enumerator
Texture2D 

Standard raster image texture (PNG, JPG).

Constructor & Destructor Documentation

◆ ThemeStudioView()

GWG.WindowFramework.Editor.ThemeStudioView.ThemeStudioView ( WindowFrameThemeData themeData)
inline

Builds the editor inspector/flyout/preview for the supplied collection.

Parameters
themeDataCollection to edit; null builds the empty-data UI.

Initial editor selection uses current valid index or first row; that is editing selection, not configuration default auto-repair. Attach subscribes preview composition and diagnostic observation; detach releases both. No runtime controller/session is created.

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

Member Function Documentation

◆ AddStudioFieldMetadata()

void GWG.WindowFramework.Editor.ThemeStudioView.AddStudioFieldMetadata ( VisualElement field,
params string[] tokens )
inlineprivate

Wraps existing Studio fields using the common compact linked-value row.

Parameters
fieldExisting field; its value callbacks and source ownership are retained.
tokensIts authored token, or empty for nonstyling metadata.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ApplyAssetToStyleBackground()

void GWG.WindowFramework.Editor.ThemeStudioView.ApplyAssetToStyleBackground ( VisualElement target,
ThemeAssetTokenRow row )
inlinestaticprivate
Here is the caller graph for this function:

◆ ApplyPreviewComposition()

void GWG.WindowFramework.Editor.ThemeStudioView.ApplyPreviewComposition ( StyleSheet settings)
inlineprivate

Applies the selected runtime composition only to actual preview-item scopes.

Parameters
settingsSelected theme settings; never applied to the Studio section/header container.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ BuildCanvasPane()

void GWG.WindowFramework.Editor.ThemeStudioView.BuildCanvasPane ( )
inlineprivate
Here is the call graph for this function:
Here is the caller graph for this function:

◆ BuildFlyoutDrawer()

void GWG.WindowFramework.Editor.ThemeStudioView.BuildFlyoutDrawer ( )
inlineprivate
Here is the call graph for this function:
Here is the caller graph for this function:

◆ BuildInspectorPane()

void GWG.WindowFramework.Editor.ThemeStudioView.BuildInspectorPane ( )
inlineprivate
Here is the call graph for this function:
Here is the caller graph for this function:

◆ BuildLayout()

void GWG.WindowFramework.Editor.ThemeStudioView.BuildLayout ( )
inlineprivate
Here is the call graph for this function:
Here is the caller graph for this function:

◆ BuildLegacyUpgradeCard()

VisualElement GWG.WindowFramework.Editor.ThemeStudioView.BuildLegacyUpgradeCard ( )
inlineprivate
Here is the call graph for this function:
Here is the caller graph for this function:

◆ BuildPresentationPreviewValues()

GWG.WindowFramework.Theming.PlayerThemeValues GWG.WindowFramework.Editor.ThemeStudioView.BuildPresentationPreviewValues ( )
inlineprivate
Here is the call graph for this function:
Here is the caller graph for this function:

◆ CloseFlyout()

void GWG.WindowFramework.Editor.ThemeStudioView.CloseFlyout ( )
inline

Hides the editor drawer/backdrop without undoing selection or saving edits.

Does not dispose the Studio, collection subscriptions or a runtime modal host. Theme-list selection remains available when the drawer is opened again.

Here is the caller graph for this function:

◆ ColorToCss()

string GWG.WindowFramework.Editor.ThemeStudioView.ColorToCss ( Color c)
inlinestaticprivate
Here is the caller graph for this function:

◆ CreateColorField()

ColorField GWG.WindowFramework.Editor.ThemeStudioView.CreateColorField ( string label,
Color initialColor,
Action< Color > onChanged )
inlineprivate
Here is the caller graph for this function:

◆ CreateContextPreviewItem()

VisualElement GWG.WindowFramework.Editor.ThemeStudioView.CreateContextPreviewItem ( string text,
bool selected,
bool disabled = false )
inlineprivate
Here is the caller graph for this function:

◆ CreateIntSlider()

SliderInt GWG.WindowFramework.Editor.ThemeStudioView.CreateIntSlider ( string label,
int min,
int max,
int initialValue,
Action< int > onChanged )
inlineprivate
Here is the caller graph for this function:

◆ CreatePresentationGroup()

VisualElement GWG.WindowFramework.Editor.ThemeStudioView.CreatePresentationGroup ( string title,
string prefix )
inlineprivate
Here is the call graph for this function:
Here is the caller graph for this function:

◆ CreatePreviewSection()

VisualElement GWG.WindowFramework.Editor.ThemeStudioView.CreatePreviewSection ( string title,
VisualElement example,
VisualElement themeTarget = null )
inlineprivate
Here is the caller graph for this function:

◆ CreatePropertyGroup()

VisualElement GWG.WindowFramework.Editor.ThemeStudioView.CreatePropertyGroup ( string title)
inlineprivate
Here is the caller graph for this function:

◆ CreateStatusPreview()

VisualElement GWG.WindowFramework.Editor.ThemeStudioView.CreateStatusPreview ( )
inlineprivate

◆ CreateThemeFilesOnDisk()

void GWG.WindowFramework.Editor.ThemeStudioView.CreateThemeFilesOnDisk ( string themeDisplayName,
string filePrefix,
string targetDirectory = null,
string duplicateSourcePath = null,
string legacySourcePath = null )
inlineprivate
Here is the call graph for this function:
Here is the caller graph for this function:

◆ CreateThemeFilesOnDiskCore()

void GWG.WindowFramework.Editor.ThemeStudioView.CreateThemeFilesOnDiskCore ( string themeDisplayName,
string filePrefix,
string targetDirectory,
string duplicateSourcePath,
string legacySourcePath,
string destinationOverride )
inlineprivate
Here is the call graph for this function:
Here is the caller graph for this function:

◆ DeveloperFieldChanged()

void GWG.WindowFramework.Editor.ThemeStudioView.DeveloperFieldChanged ( string identity)
inlineprivate
Here is the call graph for this function:
Here is the caller graph for this function:

◆ DuplicateSelectedTheme() [1/2]

void GWG.WindowFramework.Editor.ThemeStudioView.DuplicateSelectedTheme ( )
inline

Duplicates the selected theme's complete owned folder and registers an independent entry.

Creates an unused sibling folder; conflicts offer a separately named copy or cancellation, never overwrite. Copies nested developer files and raster/vector previews, remapping source asset references to copied assets. Authored settings are copied, not regenerated from unsaved controls. Outside-folder appearance imports are refused with a diagnostic; configured shared application sheets remain collection-owned. Source bytes/identity are preserved; a successful copy has a new stable ID and is not default. Failure removes only operation-created files/entry. This trusted editor workflow does not execute loose player files or replace runtime JSON Create Editable Copy.

studio.SelectTheme(themeIndex);
studio.DuplicateSelectedTheme(); // Inspect the newly selected owned folder and entry.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ DuplicateSelectedTheme() [2/2]

void GWG.WindowFramework.Editor.ThemeStudioView.DuplicateSelectedTheme ( string destinationFolderPath)
inline

Duplicates the selected theme into an exact destination folder supplied by developer tooling.

Parameters
destinationFolderPathFull project-relative destination, for example Assets/MyUI/Resources/Themes/MyCopy. Its parent must exist; the destination must not exist and must be outside the source folder.
Exceptions
ArgumentExceptionPath is empty, absolute, contains traversal, or is not a supported project Resources location.
InvalidOperationExceptionNo selected source theme is configured.
IOExceptionDestination exists, parent is unavailable, or copying/import/registration fails.

Never falls back, renames or opens a conflict dialog. Uses the same independent folder-copy and registration implementation as the parameterless workflow. Creates a new nondefault ID and preserves source assets. Operational failures clean up created assets and propagate to the caller. The parameterless overload retains its existing sibling-folder behavior.

studio.SelectTheme(themeIndex);
studio.DuplicateSelectedTheme("Assets/MyUI/Resources/Themes/CustomCopy");
Here is the call graph for this function:

◆ ExtractAssetToken()

void GWG.WindowFramework.Editor.ThemeStudioView.ExtractAssetToken ( string css,
string propertyName,
ThemeAssetTokenRow row )
inlineprivate
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ExtractComponentTokens()

void GWG.WindowFramework.Editor.ThemeStudioView.ExtractComponentTokens ( WindowFrameTheme theme)
inlineprivate
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ExtractTokensFromTheme()

void GWG.WindowFramework.Editor.ThemeStudioView.ExtractTokensFromTheme ( WindowFrameTheme theme)
inlineprivate
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ForgetStudioMetadataRows()

void GWG.WindowFramework.Editor.ThemeStudioView.ForgetStudioMetadataRows ( VisualElement host)
inlineprivate

Releases only generated UI references when a developer form is rebuilt.

Here is the caller graph for this function:

◆ GenerateEditedUssContent()

string GWG.WindowFramework.Editor.ThemeStudioView.GenerateEditedUssContent ( string title)
inlineprivate
Here is the call graph for this function:
Here is the caller graph for this function:

◆ GenerateUssContent()

string GWG.WindowFramework.Editor.ThemeStudioView.GenerateUssContent ( string title)
inlinestaticprivate

Generates fresh-creation settings only from the private complete 2.0 system default.

Parameters
titleDisplay name used in the generated source header.
Returns
All private default declarations and their scoped rules, ready for owned artwork copying.

No Studio fields, selected theme, repository Default flag or public theme folder supplies creation values. Missing or externally imported private source is a blocking error. References are rebased from their declaring files before the existing creation workflow copies artwork into the output folder. Save, Duplicate and Upgrade use their own paths.

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

◆ GetAssetCssTokens()

string GWG.WindowFramework.Editor.ThemeStudioView.GetAssetCssTokens ( )
inlineprivate
Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetAssetRows()

ThemeAssetTokenRow[] GWG.WindowFramework.Editor.ThemeStudioView.GetAssetRows ( )
inlineprivate
Here is the caller graph for this function:

◆ GetComponentCssTokens()

string GWG.WindowFramework.Editor.ThemeStudioView.GetComponentCssTokens ( )
inlineprivate
Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetFontCssToken()

string GWG.WindowFramework.Editor.ThemeStudioView.GetFontCssToken ( )
inlineprivate
Here is the caller graph for this function:

◆ GetPresentationExpression()

string GWG.WindowFramework.Editor.ThemeStudioView.GetPresentationExpression ( GWG.WindowFramework.Theming.PlayerThemeTokenCatalog.Entry definition)
inlineprivate
Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetStatusCssTokens()

string GWG.WindowFramework.Editor.ThemeStudioView.GetStatusCssTokens ( )
inlineprivate
Here is the call graph for this function:
Here is the caller graph for this function:

◆ IsPresentationField()

bool GWG.WindowFramework.Editor.ThemeStudioView.IsPresentationField ( GWG.WindowFramework.Theming.PlayerThemeTokenCatalog.Entry definition)
inlinestaticprivate
Here is the caller graph for this function:

◆ IsThemeV2Compatible()

bool GWG.WindowFramework.Editor.ThemeStudioView.IsThemeV2Compatible ( WindowFrameTheme theme)
inlineprivate
Here is the call graph for this function:
Here is the caller graph for this function:

◆ LoadDeveloperFields()

void GWG.WindowFramework.Editor.ThemeStudioView.LoadDeveloperFields ( ThemeSourceGraph graph)
inlineprivate

Uses the same metadata definitions as runtime preparation; only a changed schema rebuilds controls.

Parameters
graphActual composed source for the selected theme, including configured imports.

The compiler remains the authority for annotated identities, derived values and bounds. Optional labels/descriptions are presentation text; a missing label shows the existing key. Initial loading suppresses change notifications and captures original source bytes for Save. An unchanged field must not materialize its resolved default over an authored alias. Namespace foldouts and their controls are reused when the metadata schema is unchanged; source provenance still follows the newly selected theme. Empty metadata displays the user-requested empty state, not invented settings. Preserve this accepted integration instead of adding another registry, fallback palette, source adopter or automatic image-copy workflow.

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

◆ OpenFlyout()

void GWG.WindowFramework.Editor.ThemeStudioView.OpenFlyout ( )
inline

Shows the editor flyout/backdrop and refreshes the current collection rows.

Sets a row-click guard until the next editor delayCall. This does not wait for runtime layout, select a player theme, save fields or initialize missing configuration. Requires the constructor-built drawer/backdrop; editor owner controls this subtree.

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

◆ ParseCssColor()

Color GWG.WindowFramework.Editor.ThemeStudioView.ParseCssColor ( string cssValue,
Color fallback )
inlinestaticprivate
Here is the caller graph for this function:

◆ PresentationFieldChanged()

void GWG.WindowFramework.Editor.ThemeStudioView.PresentationFieldChanged ( string token)
inlineprivate
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ReadStudioDefaultsCss()

string GWG.WindowFramework.Editor.ThemeStudioView.ReadStudioDefaultsCss ( )
inlinestaticprivate

Reads the editor creation seed, never an existing theme's appearance fallback.

One root block of asset references only. Required fields are checked without inventing values; additional authored image keys are retained. No runtime import or cached competing defaults are created. Creation owns copies before writing its files.

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

◆ RefreshLinkedPresentationFields()

void GWG.WindowFramework.Editor.ThemeStudioView.RefreshLinkedPresentationFields ( IReadOnlyDictionary< string, string > expressions,
bool initialLoad = false )
inlineprivate
Here is the call graph for this function:
Here is the caller graph for this function:

◆ RefreshPreviewComposition()

void GWG.WindowFramework.Editor.ThemeStudioView.RefreshPreviewComposition ( int index,
StyleSheet activeSheet )
inlineprivate
Here is the call graph for this function:
Here is the caller graph for this function:

◆ RefreshStudioLinkedValues()

void GWG.WindowFramework.Editor.ThemeStudioView.RefreshStudioLinkedValues ( IReadOnlyDictionary< string, string > expressions)
inlineprivate

Refreshes non-overridden controls from their retained authored expressions.

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

◆ RefreshStudioMetadata()

void GWG.WindowFramework.Editor.ThemeStudioView.RefreshStudioMetadata ( ThemeSourceGraph graph)
inlineprivate

Loads actual links for base and annotated fields; no link is invented for literals.

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

◆ RegisterStudioMetadataLine()

void GWG.WindowFramework.Editor.ThemeStudioView.RegisterStudioMetadataLine ( VisualElement line,
Label source,
params string[] tokens )
inlineprivate
Here is the caller graph for this function:

◆ ResolveCssVariable()

string GWG.WindowFramework.Editor.ThemeStudioView.ResolveCssVariable ( string rawValue)
inlinestaticprivate
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ResolveStudioDefaultAsset()

UnityEngine.Object GWG.WindowFramework.Editor.ThemeStudioView.ResolveStudioDefaultAsset ( string expression,
string origin )
inlinestaticprivate

Resolves a seed reference only inside the seed's own folder.

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

◆ SaveThemeFilesToDisk()

void GWG.WindowFramework.Editor.ThemeStudioView.SaveThemeFilesToDisk ( )
inline

Saves framework inspector values and explicitly edited annotated developer values.

Editor-only operation. Updates known root settings and changed WFWDevExt declarations at their original source/scope. Metadata headers, selectors and unrelated values remain. Original bytes are checked before staged replacement; existing preview bytes are preserved. OnThemeSaved is emitted after successful persistence. No manual line-range adoption is required.

studio.SelectTheme(themeIndex);
studio.SaveThemeFilesToDisk();
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SelectTheme()

void GWG.WindowFramework.Editor.ThemeStudioView.SelectTheme ( int index)
inline

Selects the theme at the specified index, validates 2.0 compatibility, and updates UI panes.

Parameters
indexIndex of the theme in WindowFrameThemeData.Themes.

Invalid list/index is ignored; selected entry itself must be nonnull. Changes editing selection and panes only, not runtime active/default identity. Modern compatibility traverses actual composed source graph, not a display-name suffix. Unsupported source uses the legacy/upgrade presentation. No source files are saved by selecting a row.

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

◆ SetActiveImageType()

void GWG.WindowFramework.Editor.ThemeStudioView.SetActiveImageType ( ThemeImageType newType)
inlineprivate

Switches the active image selector view between Texture2D and VectorImage, updating UI displays accordingly.

Parameters
newTypeThe target ThemeImageType to display.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetBorderColor()

void GWG.WindowFramework.Editor.ThemeStudioView.SetBorderColor ( VisualElement el,
Color color )
inlinestaticprivate
Here is the caller graph for this function:

◆ SetBorderRadius()

void GWG.WindowFramework.Editor.ThemeStudioView.SetBorderRadius ( VisualElement el,
float radius )
inlinestaticprivate
Here is the caller graph for this function:

◆ SetBorderWidth()

void GWG.WindowFramework.Editor.ThemeStudioView.SetBorderWidth ( VisualElement el,
float width )
inlinestaticprivate
Here is the caller graph for this function:

◆ StudioDefaultBackground()

StyleBackground GWG.WindowFramework.Editor.ThemeStudioView.StudioDefaultBackground ( string token)
inlinestaticprivate

Initial editor-preview artwork; selected-theme rows replace it after selection.

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

◆ StudioDeveloperIdentity()

string GWG.WindowFramework.Editor.ThemeStudioView.StudioDeveloperIdentity ( VisualElement field)
inlinestaticprivate
Here is the caller graph for this function:

◆ ToggleFlyout()

void GWG.WindowFramework.Editor.ThemeStudioView.ToggleFlyout ( )
inlineprivate
Here is the call graph for this function:
Here is the caller graph for this function:

◆ TryBuildDeveloperWrites()

bool GWG.WindowFramework.Editor.ThemeStudioView.TryBuildDeveloperWrites ( string ussPath,
string frameworkUpdated,
byte[] originalBytes,
out ThemeSourceFileTransaction.Write[] writes,
out string error )
inlineprivate

Builds writes only for the current framework source and explicitly edited developer sources.

Preserves load-time bytes for concurrency checks. No assets or player files are copied.

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

◆ TryExtractCssProperty()

bool GWG.WindowFramework.Editor.ThemeStudioView.TryExtractCssProperty ( string cssContent,
string propertyName,
out string value )
inlinestaticprivate
Here is the caller graph for this function:

◆ TryGetDeveloperEdits()

bool GWG.WindowFramework.Editor.ThemeStudioView.TryGetDeveloperEdits ( out Dictionary< string, string > edits,
out string error )
inlineprivate
Here is the call graph for this function:
Here is the caller graph for this function:

◆ TryPresentationNumber()

bool GWG.WindowFramework.Editor.ThemeStudioView.TryPresentationNumber ( GWG.WindowFramework.Theming.PlayerThemeTokenCatalog.Entry definition,
string expression,
out float value )
inlinestaticprivate
Here is the caller graph for this function:

◆ UpdatePreviewAsset()

void GWG.WindowFramework.Editor.ThemeStudioView.UpdatePreviewAsset ( VisualElement root,
string name,
string initialAssetName,
ThemeAssetTokenRow row )
inlinestaticprivate
Here is the call graph for this function:
Here is the caller graph for this function:

◆ UpdatePreviewTokens()

void GWG.WindowFramework.Editor.ThemeStudioView.UpdatePreviewTokens ( )
inlineprivate
Here is the call graph for this function:
Here is the caller graph for this function:

◆ UpdateThemeImagePreview()

void GWG.WindowFramework.Editor.ThemeStudioView.UpdateThemeImagePreview ( )
inlineprivate

Updates the real-time thumbnail preview image depending on the currently active image asset and view mode.

Here is the caller graph for this function:

◆ UpgradeSelectedThemeToV2()

void GWG.WindowFramework.Editor.ThemeStudioView.UpgradeSelectedThemeToV2 ( )
inline

Creates an independently owned modern child folder from the selected legacy theme.

Retains existing sibling-file extraction and developer-source preservation; requires a complete modern template in this collection. Original legacy source/assets are unchanged. The new entry/settings/preview and supported artwork are committed in their own child folder. Known converted settings and supported developer additions retain their ordering; unsupported syntax/external appearance dependencies fail with a diagnostic instead of being discarded. Conflicts offer a new name or cancellation, not overwrite. New-folder failures clean up only created assets and any partially registered entry. Arbitrary cascade equivalence, filesystem crash atomicity and separate-player export support are not implied by this editor operation.

studio.SelectTheme(legacyIndex);
studio.UpgradeSelectedThemeToV2(); // Review converted settings; original theme remains available.
Here is the call graph for this function:
Here is the caller graph for this function:

Field Documentation

◆ _accentActiveField

ColorField GWG.WindowFramework.Editor.ThemeStudioView._accentActiveField
private

◆ _accentHoverField

ColorField GWG.WindowFramework.Editor.ThemeStudioView._accentHoverField
private

◆ _accentPrimaryField

ColorField GWG.WindowFramework.Editor.ThemeStudioView._accentPrimaryField
private

◆ _actionButtonBar

VisualElement GWG.WindowFramework.Editor.ThemeStudioView._actionButtonBar
private

◆ _activeImageType

ThemeImageType GWG.WindowFramework.Editor.ThemeStudioView._activeImageType = ThemeImageType.Texture2D
private

◆ _assetSourceGraph

ThemeSourceGraph GWG.WindowFramework.Editor.ThemeStudioView._assetSourceGraph
private

◆ _borderDefaultField

ColorField GWG.WindowFramework.Editor.ThemeStudioView._borderDefaultField
private

◆ _borderRadiusSlider

SliderInt GWG.WindowFramework.Editor.ThemeStudioView._borderRadiusSlider
private

◆ _borderWidthSlider

SliderInt GWG.WindowFramework.Editor.ThemeStudioView._borderWidthSlider
private

◆ _canvasLegacyNoticeOverlay

VisualElement GWG.WindowFramework.Editor.ThemeStudioView._canvasLegacyNoticeOverlay
private

◆ _canvasPane

VisualElement GWG.WindowFramework.Editor.ThemeStudioView._canvasPane
private

◆ _canvasWrapper

VisualElement GWG.WindowFramework.Editor.ThemeStudioView._canvasWrapper
private

◆ _componentAssetFields

readonly Dictionary<string, ThemeAssetTokenRow> GWG.WindowFramework.Editor.ThemeStudioView._componentAssetFields = new Dictionary<string, ThemeAssetTokenRow>()
private

◆ _componentAssetRows

readonly Dictionary<string, VisualElement> GWG.WindowFramework.Editor.ThemeStudioView._componentAssetRows = new Dictionary<string, VisualElement>()
private

◆ _componentColorFields

readonly Dictionary<string, ColorField> GWG.WindowFramework.Editor.ThemeStudioView._componentColorFields = new Dictionary<string, ColorField>()
private

◆ _componentDirtyTokens

readonly HashSet<string> GWG.WindowFramework.Editor.ThemeStudioView._componentDirtyTokens = new HashSet<string>(StringComparer.Ordinal)
private

◆ _componentExpressions

readonly Dictionary<string, string> GWG.WindowFramework.Editor.ThemeStudioView._componentExpressions = new Dictionary<string, string>(StringComparer.Ordinal)
private

◆ _componentFieldRoots

readonly Dictionary<string, VisualElement> GWG.WindowFramework.Editor.ThemeStudioView._componentFieldRoots = new Dictionary<string, VisualElement>()
private

◆ _componentNumberFields

readonly Dictionary<string, FloatField> GWG.WindowFramework.Editor.ThemeStudioView._componentNumberFields = new Dictionary<string, FloatField>()
private

◆ _componentOrigins

readonly Dictionary<string, string> GWG.WindowFramework.Editor.ThemeStudioView._componentOrigins = new Dictionary<string, string>(StringComparer.Ordinal)
private

◆ _componentReferenceToggles

readonly Dictionary<string, GWG.Extensions.SlideToggleControl> GWG.WindowFramework.Editor.ThemeStudioView._componentReferenceToggles = new Dictionary<string, GWG.Extensions.SlideToggleControl>()
private

◆ _componentSourceLabels

readonly Dictionary<string, Label> GWG.WindowFramework.Editor.ThemeStudioView._componentSourceLabels = new Dictionary<string, Label>()
private

◆ _componentSourceSheet

ThemeStyleSheet GWG.WindowFramework.Editor.ThemeStudioView._componentSourceSheet
private

◆ _contextMenuBgField

ColorField GWG.WindowFramework.Editor.ThemeStudioView._contextMenuBgField
private

◆ _contextMenuBorderField

ColorField GWG.WindowFramework.Editor.ThemeStudioView._contextMenuBorderField
private

◆ _contextMenuHoverBgField

ColorField GWG.WindowFramework.Editor.ThemeStudioView._contextMenuHoverBgField
private

◆ _contextMenuTextField

ColorField GWG.WindowFramework.Editor.ThemeStudioView._contextMenuTextField
private

◆ _contextMenuTitleBgField

ColorField GWG.WindowFramework.Editor.ThemeStudioView._contextMenuTitleBgField
private

◆ _defaultIndicatorColorField

ColorField GWG.WindowFramework.Editor.ThemeStudioView._defaultIndicatorColorField
private

◆ _developerColorFields

readonly Dictionary<string, ColorField> GWG.WindowFramework.Editor.ThemeStudioView._developerColorFields = new Dictionary<string, ColorField>(StringComparer.Ordinal)
private

◆ _developerDirtySettings

readonly HashSet<string> GWG.WindowFramework.Editor.ThemeStudioView._developerDirtySettings = new HashSet<string>(StringComparer.Ordinal)
private

◆ _developerError

HelpBox GWG.WindowFramework.Editor.ThemeStudioView._developerError
private

◆ _developerFieldsHost

VisualElement GWG.WindowFramework.Editor.ThemeStudioView._developerFieldsHost
private

◆ _developerFieldsValid

bool GWG.WindowFramework.Editor.ThemeStudioView._developerFieldsValid = true
private

◆ _developerFormSignature

string GWG.WindowFramework.Editor.ThemeStudioView._developerFormSignature
private

◆ _developerGraph

ThemeSourceGraph GWG.WindowFramework.Editor.ThemeStudioView._developerGraph
private

◆ _developerImageFields

readonly Dictionary<string, ThemeAssetTokenRow> GWG.WindowFramework.Editor.ThemeStudioView._developerImageFields = new Dictionary<string, ThemeAssetTokenRow>(StringComparer.Ordinal)
private

◆ _developerNumberFields

readonly Dictionary<string, FloatField> GWG.WindowFramework.Editor.ThemeStudioView._developerNumberFields = new Dictionary<string, FloatField>(StringComparer.Ordinal)
private

◆ _developerSettings

readonly Dictionary<string, GWG.WindowFramework.Theming.DeveloperThemeDefinition.Setting> GWG.WindowFramework.Editor.ThemeStudioView._developerSettings = new Dictionary<string, GWG.WindowFramework.Theming.DeveloperThemeDefinition.Setting>(StringComparer.Ordinal)
private

◆ _developerSourceBytes

readonly Dictionary<string, byte[]> GWG.WindowFramework.Editor.ThemeStudioView._developerSourceBytes = new Dictionary<string, byte[]>(StringComparer.Ordinal)
private

◆ _developerSourceTexts

readonly Dictionary<string, string> GWG.WindowFramework.Editor.ThemeStudioView._developerSourceTexts = new Dictionary<string, string>(StringComparer.Ordinal)
private

◆ _duplicateButton

Button GWG.WindowFramework.Editor.ThemeStudioView._duplicateButton
private

◆ _editingThemePreferenceKey

readonly string GWG.WindowFramework.Editor.ThemeStudioView._editingThemePreferenceKey
private

◆ _flyoutBackdrop

VisualElement GWG.WindowFramework.Editor.ThemeStudioView._flyoutBackdrop
private

◆ _flyoutDrawer

VisualElement GWG.WindowFramework.Editor.ThemeStudioView._flyoutDrawer
private

◆ _flyoutTitleLabel

Label GWG.WindowFramework.Editor.ThemeStudioView._flyoutTitleLabel
private

◆ _flyoutToggleButton

Button GWG.WindowFramework.Editor.ThemeStudioView._flyoutToggleButton
private

◆ _fontAssetField

ObjectField GWG.WindowFramework.Editor.ThemeStudioView._fontAssetField
private

◆ _fontSizeBodySlider

SliderInt GWG.WindowFramework.Editor.ThemeStudioView._fontSizeBodySlider
private

◆ _fontSizeSmallSlider

SliderInt GWG.WindowFramework.Editor.ThemeStudioView._fontSizeSmallSlider
private

◆ _fontSizeTitleSlider

SliderInt GWG.WindowFramework.Editor.ThemeStudioView._fontSizeTitleSlider
private

◆ _inspectorFooter

VisualElement GWG.WindowFramework.Editor.ThemeStudioView._inspectorFooter
private

◆ _inspectorPane

VisualElement GWG.WindowFramework.Editor.ThemeStudioView._inspectorPane
private

◆ _inspectorScrollView

ScrollView GWG.WindowFramework.Editor.ThemeStudioView._inspectorScrollView
private

◆ _inspectorTitleLabel

Label GWG.WindowFramework.Editor.ThemeStudioView._inspectorTitleLabel
private

◆ _interactionTelemetry

IDisposable GWG.WindowFramework.Editor.ThemeStudioView._interactionTelemetry
private

Initializes a new instance of the ThemeStudioView class bound to the specified theme data asset.

Parameters
themeDataThe active WindowFrameThemeData asset to manage and preview.

◆ _isCurrentThemeV2

bool GWG.WindowFramework.Editor.ThemeStudioView._isCurrentThemeV2 = true
private

◆ _isFlyoutOpen

bool GWG.WindowFramework.Editor.ThemeStudioView._isFlyoutOpen = false
private

◆ _isOpeningFlyout

bool GWG.WindowFramework.Editor.ThemeStudioView._isOpeningFlyout = false
private

◆ _legacyDescriptionLabel

Label GWG.WindowFramework.Editor.ThemeStudioView._legacyDescriptionLabel
private

◆ _legacyUpgradeCard

VisualElement GWG.WindowFramework.Editor.ThemeStudioView._legacyUpgradeCard
private

◆ _loadingComponentFields

bool GWG.WindowFramework.Editor.ThemeStudioView._loadingComponentFields
private

◆ _loadingDeveloperFields

bool GWG.WindowFramework.Editor.ThemeStudioView._loadingDeveloperFields
private

◆ _loadingStudioLinks

bool GWG.WindowFramework.Editor.ThemeStudioView._loadingStudioLinks
private

◆ _previewAdditionalBindings

readonly List<IDisposable> GWG.WindowFramework.Editor.ThemeStudioView._previewAdditionalBindings = new List<IDisposable>()
private

◆ _previewComponentBinding

GWG.WindowFramework.Theming.PlayerThemeScopeBinding GWG.WindowFramework.Editor.ThemeStudioView._previewComponentBinding
private

◆ _previewCompositionSheets

readonly List<StyleSheet> GWG.WindowFramework.Editor.ThemeStudioView._previewCompositionSheets = new List<StyleSheet>()
private

◆ _previewContextMenu

VisualElement GWG.WindowFramework.Editor.ThemeStudioView._previewContextMenu
private

◆ _previewModal

VisualElement GWG.WindowFramework.Editor.ThemeStudioView._previewModal
private

◆ _previewSamplesRoot

VisualElement GWG.WindowFramework.Editor.ThemeStudioView._previewSamplesRoot
private

◆ _previewScrollView

ScrollView GWG.WindowFramework.Editor.ThemeStudioView._previewScrollView
private

◆ _previewSlideToggle

GWG.Extensions.SlideToggleControl GWG.WindowFramework.Editor.ThemeStudioView._previewSlideToggle
private

◆ _previewStatusBindings

readonly List<IDisposable> GWG.WindowFramework.Editor.ThemeStudioView._previewStatusBindings = new List<IDisposable>()
private

◆ _previewStatusLabels

readonly Dictionary<string, Label> GWG.WindowFramework.Editor.ThemeStudioView._previewStatusLabels = new Dictionary<string, Label>()
private

◆ _previewTab1

VisualElement GWG.WindowFramework.Editor.ThemeStudioView._previewTab1
private

◆ _previewTab1Label

Label GWG.WindowFramework.Editor.ThemeStudioView._previewTab1Label
private

◆ _previewTab2

VisualElement GWG.WindowFramework.Editor.ThemeStudioView._previewTab2
private

◆ _previewTab2Label

Label GWG.WindowFramework.Editor.ThemeStudioView._previewTab2Label
private

◆ _previewTabBar

VisualElement GWG.WindowFramework.Editor.ThemeStudioView._previewTabBar
private

◆ _previewThemeTargets

readonly List<VisualElement> GWG.WindowFramework.Editor.ThemeStudioView._previewThemeTargets = new List<VisualElement>()
private

◆ _previewTooltip

VisualElement GWG.WindowFramework.Editor.ThemeStudioView._previewTooltip
private

◆ _previewTooltipLabel

Label GWG.WindowFramework.Editor.ThemeStudioView._previewTooltipLabel
private

◆ _previewWindowContent

VisualElement GWG.WindowFramework.Editor.ThemeStudioView._previewWindowContent
private

◆ _previewWindowFooter

VisualElement GWG.WindowFramework.Editor.ThemeStudioView._previewWindowFooter
private

◆ _previewWindowFrame

VisualElement GWG.WindowFramework.Editor.ThemeStudioView._previewWindowFrame
private

◆ _previewWindowTitle

Label GWG.WindowFramework.Editor.ThemeStudioView._previewWindowTitle
private

◆ _primitiveColorCache

Dictionary<string, string> GWG.WindowFramework.Editor.ThemeStudioView._primitiveColorCache
staticprivate

◆ _saveButton

Button GWG.WindowFramework.Editor.ThemeStudioView._saveButton
private

◆ _selectedTheme

WindowFrameTheme GWG.WindowFramework.Editor.ThemeStudioView._selectedTheme
private

◆ _selectedThemeIndex

int GWG.WindowFramework.Editor.ThemeStudioView._selectedThemeIndex = -1
private

◆ _studioAuthoredLinks

readonly Dictionary<VisualElement, string> GWG.WindowFramework.Editor.ThemeStudioView._studioAuthoredLinks = new Dictionary<VisualElement, string>()
private

◆ _studioDeveloperExpressions

Dictionary<string, string> GWG.WindowFramework.Editor.ThemeStudioView._studioDeveloperExpressions = new Dictionary<string, string>(StringComparer.Ordinal)
private

◆ _studioLinkFields

readonly Dictionary<VisualElement, VisualElement> GWG.WindowFramework.Editor.ThemeStudioView._studioLinkFields = new Dictionary<VisualElement, VisualElement>()
private

◆ _studioLinkOverrides

readonly Dictionary<VisualElement, GWG.Extensions.SlideToggleControl> GWG.WindowFramework.Editor.ThemeStudioView._studioLinkOverrides = new Dictionary<VisualElement, GWG.Extensions.SlideToggleControl>()
private

◆ _studioMetadataSources

readonly Dictionary<VisualElement, Label> GWG.WindowFramework.Editor.ThemeStudioView._studioMetadataSources = new Dictionary<VisualElement, Label>()
private

◆ _studioMetadataTokens

readonly Dictionary<VisualElement, string[]> GWG.WindowFramework.Editor.ThemeStudioView._studioMetadataTokens = new Dictionary<VisualElement, string[]>()
private

◆ _studioSplitView

TwoPaneSplitView GWG.WindowFramework.Editor.ThemeStudioView._studioSplitView
private

◆ _surfaceBgField

ColorField GWG.WindowFramework.Editor.ThemeStudioView._surfaceBgField
private

◆ _surfaceFooterField

ColorField GWG.WindowFramework.Editor.ThemeStudioView._surfaceFooterField
private

◆ _surfaceHeaderField

ColorField GWG.WindowFramework.Editor.ThemeStudioView._surfaceHeaderField
private

◆ _surfaceOverlayField

ColorField GWG.WindowFramework.Editor.ThemeStudioView._surfaceOverlayField
private

◆ _surfaceSunkenField

ColorField GWG.WindowFramework.Editor.ThemeStudioView._surfaceSunkenField
private

◆ _tabActiveBgField

ColorField GWG.WindowFramework.Editor.ThemeStudioView._tabActiveBgField
private

◆ _tabActiveBorderField

ColorField GWG.WindowFramework.Editor.ThemeStudioView._tabActiveBorderField
private

◆ _tabBarBgField

ColorField GWG.WindowFramework.Editor.ThemeStudioView._tabBarBgField
private

◆ _tabBarHeightSlider

SliderInt GWG.WindowFramework.Editor.ThemeStudioView._tabBarHeightSlider
private

◆ _tabInactiveBgField

ColorField GWG.WindowFramework.Editor.ThemeStudioView._tabInactiveBgField
private

◆ _textAccentField

ColorField GWG.WindowFramework.Editor.ThemeStudioView._textAccentField
private

◆ _textPrimaryField

ColorField GWG.WindowFramework.Editor.ThemeStudioView._textPrimaryField
private

◆ _textSecondaryField

ColorField GWG.WindowFramework.Editor.ThemeStudioView._textSecondaryField
private

◆ _textureTypeBtn

Button GWG.WindowFramework.Editor.ThemeStudioView._textureTypeBtn
private

◆ _themeData

WindowFrameThemeData GWG.WindowFramework.Editor.ThemeStudioView._themeData
private

◆ _themeDataAssetField

ObjectField GWG.WindowFramework.Editor.ThemeStudioView._themeDataAssetField
private

◆ _themeDescEditField

TextField GWG.WindowFramework.Editor.ThemeStudioView._themeDescEditField
private

◆ _themeImagePreview

Image GWG.WindowFramework.Editor.ThemeStudioView._themeImagePreview
private

◆ _themeImagePreviewBox

VisualElement GWG.WindowFramework.Editor.ThemeStudioView._themeImagePreviewBox
private

◆ _themeListView

ThemeListView GWG.WindowFramework.Editor.ThemeStudioView._themeListView
private

◆ _themeNameEditField

TextField GWG.WindowFramework.Editor.ThemeStudioView._themeNameEditField
private

◆ _themeStyleSheetField

ObjectField GWG.WindowFramework.Editor.ThemeStudioView._themeStyleSheetField
private

◆ _themeTextureField

ObjectField GWG.WindowFramework.Editor.ThemeStudioView._themeTextureField
private

◆ _tokenControlsContainer

VisualElement GWG.WindowFramework.Editor.ThemeStudioView._tokenControlsContainer
private

◆ _tokenRowBgImage

ThemeAssetTokenRow GWG.WindowFramework.Editor.ThemeStudioView._tokenRowBgImage
private

◆ _tokenRowCheckIcon

ThemeAssetTokenRow GWG.WindowFramework.Editor.ThemeStudioView._tokenRowCheckIcon
private

◆ _tokenRowDefaultIndicator

ThemeAssetTokenRow GWG.WindowFramework.Editor.ThemeStudioView._tokenRowDefaultIndicator
private

◆ _tokenRowDraglineCursor

ThemeAssetTokenRow GWG.WindowFramework.Editor.ThemeStudioView._tokenRowDraglineCursor
private

◆ _tokenRowLockIcon

ThemeAssetTokenRow GWG.WindowFramework.Editor.ThemeStudioView._tokenRowLockIcon
private

◆ _tokenRowMenuIcon

ThemeAssetTokenRow GWG.WindowFramework.Editor.ThemeStudioView._tokenRowMenuIcon
private

◆ _tokenRowResizeCursor

ThemeAssetTokenRow GWG.WindowFramework.Editor.ThemeStudioView._tokenRowResizeCursor
private

◆ _tokenRowResizeCursorEw

ThemeAssetTokenRow GWG.WindowFramework.Editor.ThemeStudioView._tokenRowResizeCursorEw
private

◆ _tokenRowResizeCursorNesw

ThemeAssetTokenRow GWG.WindowFramework.Editor.ThemeStudioView._tokenRowResizeCursorNesw
private

◆ _tokenRowResizeCursorNs

ThemeAssetTokenRow GWG.WindowFramework.Editor.ThemeStudioView._tokenRowResizeCursorNs
private

◆ _tokenRowResizeCursorNwse

ThemeAssetTokenRow GWG.WindowFramework.Editor.ThemeStudioView._tokenRowResizeCursorNwse
private

◆ _tokenRowResizeIcon

ThemeAssetTokenRow GWG.WindowFramework.Editor.ThemeStudioView._tokenRowResizeIcon
private

◆ _tokenRowVerticalDraglineCursor

ThemeAssetTokenRow GWG.WindowFramework.Editor.ThemeStudioView._tokenRowVerticalDraglineCursor
private

◆ _tokenRowWarningIcon

ThemeAssetTokenRow GWG.WindowFramework.Editor.ThemeStudioView._tokenRowWarningIcon
private

◆ _tooltipBgField

ColorField GWG.WindowFramework.Editor.ThemeStudioView._tooltipBgField
private

◆ _tooltipBorderField

ColorField GWG.WindowFramework.Editor.ThemeStudioView._tooltipBorderField
private

◆ _tooltipTextField

ColorField GWG.WindowFramework.Editor.ThemeStudioView._tooltipTextField
private

◆ _updatingPreview

bool GWG.WindowFramework.Editor.ThemeStudioView._updatingPreview
private

◆ _upgradeButton

Button GWG.WindowFramework.Editor.ThemeStudioView._upgradeButton
private

◆ _vectorTypeBtn

Button GWG.WindowFramework.Editor.ThemeStudioView._vectorTypeBtn
private

◆ StudioDefaultsResourcePath

const string GWG.WindowFramework.Editor.ThemeStudioView.StudioDefaultsResourcePath = "WindowFramework/StudioDefaults/StudioDefaults"
staticprivate

Event Documentation

◆ OnThemeDataChanged

Action<WindowFrameThemeData> GWG.WindowFramework.Editor.ThemeStudioView.OnThemeDataChanged

Requests manager asset replacement when the footer's collection selector changes.

The manager must handle rebuilding around the supplied asset. This notification does not assign the runtime controller or acquire an independent resource/session lease. Subscribers must remove their handlers when their editor owner is disposed.

◆ OnThemeSaved

Action<WindowFrameTheme> GWG.WindowFramework.Editor.ThemeStudioView.OnThemeSaved

Publishes the borrowed entry after successful source authoring and collection saving.

Save, duplicate and upgrade can publish this event. It does not certify prepared snapshot freshness, runtime selection, exported player files or appearance parity. Subscribers own unsubscription; a throwing handler does not undo already committed files.