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...
|
| 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 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) |
|
| 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 |
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.