Represents a custom editor window in Unity, used for managing themes within the Window Framework.
More...
|
| void | BuildAssetsBrowserModal () |
| void | BuildDefaultsModal () |
| void | BuildSharedStylesheetsPanel () |
| | Builds the shared-style editor with immutable essential roles and a separate application list.
|
| void | CloseAssetsModal () |
| void | CloseDefaultsModal () |
| void | CloseRepositorySetup () |
| | Closes idle setup, or requests safe cancellation when an operation is still active.
|
| VisualElement | CreateDataFileItem (WindowFrameThemeData dataFile) |
| VisualElement | CreateDataFilesList () |
| void | CreateGUI () |
| HelpBox | CreateRepositoryOwnershipNotice () |
| | Builds the selected collection's ownership notice using Unity-skin-aware HelpBox UI.
|
| VisualElement | CreateRepositorySection (string elementName, string title, string description, List< WindowFrameThemeData > dataFiles, bool shipped) |
| | Wraps unchanged collection rows in a themed, labelled origin section.
|
| void | CreateSetupScreen () |
| void | CreateThemeData () |
| | Creates a new instance of the WindowFrameThemeData scriptable object,
saves it as an asset in the project, and updates the PlayerPrefs for reloading functionality.
|
| Toolbar | CreateToolbar () |
| ToolbarButton | CreateToolbarButton (string iconName, string labelText, System.Action onClick, string tooltip=null) |
| | Creates and returns a new Toolbar instance for the theme management window.
.
|
| void | DescribeRepository (WindowFrameThemeData data, out string title, out string message, out bool warning) |
| | Describes repository source/path without scanning its contents or certifying its setup.
|
| List< WindowFrameThemeData > | FindThemeDataFiles () |
| string | GetInstalledPackageRoot () |
| | Derives this installed package's boundary from the manager script, without selecting theme data.
|
| void | LoadStyles () |
| | Loads and applies the specified StyleSheet resource to the current EditorWindow's rootVisualElement. Attempts to load a StyleSheet named "ThemeManagerEditor". If the StyleSheet is found, it is added to the styleSheets collection of the rootVisualElement. If the StyleSheet is not found, no changes are made.
|
| bool | LoadThemeData () |
| | Loads the WindowFrameThemeData asset from the PlayerPrefs path. If the path is valid, loads the asset and returns true. If the path is invalid, returns false.
|
| void | OnDestroy () |
| void | OnDisable () |
| | Releases the ownership refresh callback when the editor window is disabled.
|
| void | OnEnable () |
| | Restores the window title and subscribes read-only ownership presentation to project asset changes.
|
| void | OnGUI () |
| void | OpenAssetsModal () |
| | Opens Browse Assets above the shared backdrop, including after repository setup has closed.
|
| void | OpenCreatedRepository (ThemeRepositoryCreateResult result) |
| | Opens the validated production result without instantiating UI into a scene.
|
| void | OpenDefaultsModal () |
| void | OpenRepositorySetup () |
| | Opens setup from the canonical asset default regardless of the Manager's open collection.
|
| void | PopulateRepositorySections (ScrollView scrollView, List< WindowFrameThemeData > dataFiles) |
| | Groups existing collection rows by their inspected origin within the existing browser.
|
| void | RefreshDataFilesList (ScrollView scrollView) |
| void | RefreshRepositoryOwnershipPresentation () |
| | Refreshes source notices after asset changes without changing selection.
|
| void | SelectDataFile (WindowFrameThemeData dataFile) |
| void | SetActiveAddressablesButton (Button button) |
| DropdownMenuAction.Status | SetAddressableLabelMenuActiveStatus (DropdownMenuAction arg) |
| DropdownMenuAction.Status | SetAddressablesMenuActiveStatus (DropdownMenuAction arg) |
| void | SetRepositoryUiBusy (bool busy) |
| | Suspends Manager serialization during copying without disabling progress or cancellation.
|
| void | SetupAddressableLabels (DropdownMenuAction obj) |
| void | ToggleAddressables (DropdownMenuAction dropdownMenuAction) |
| void | ToggleAssetsModal () |
| void | ToggleDefaultsModal () |
| void | ToggleSharedStylesheetsPanel () |
Represents a custom editor window in Unity, used for managing themes within the Window Framework.
This class provides a user interface for creating, editing, and managing themes within the Window Framework. It allows users to select a theme data file, create new themes, and view and edit existing themes along with their settings. It also allows for managing the Unity Addressable integration options. The window is designed to be easily accessible and user-friendly, with features such as theme creation, editing, and deletion. The window also supports theme switching, allowing users to switch between different themes in real-time. The window is designed to be easily integrated into Unity's editor environment, making it a valuable tool for developers.
| void GWG.WindowFramework.Editor.ThemeManagerWindow.CreateThemeData |
( |
| ) |
|
|
inlineprivate |
Creates a new instance of the WindowFrameThemeData scriptable object,
saves it as an asset in the project, and updates the PlayerPrefs for reloading functionality.
This method is called when the user clicks the "Create New" button in the toolbar.
Creates a new instance of the WindowFrameThemeData scriptable object,
saves it as an asset in the project, and updates the PlayerPrefs for reloading functionality.
Opens a save file panel to specify the location and name of the saved theme data file.
If the file path is selected and valid:
- Creates and saves the asset in the specified path.
- Refreshes the asset database.
- Logs the creation of the theme data file.
- Updates
PlayerPrefs with the path of the newly created theme data.
- Calls
CreateGUI to reload the window.
If no file path is selected, no actions are taken.
| void GWG.WindowFramework.Editor.ThemeManagerWindow.LoadStyles |
( |
| ) |
|
|
inlineprivate |
Loads and applies the specified StyleSheet resource to the current EditorWindow's rootVisualElement. Attempts to load a StyleSheet named "ThemeManagerEditor". If the StyleSheet is found, it is added to the styleSheets collection of the rootVisualElement. If the StyleSheet is not found, no changes are made.
- Parameters
-
| styleSheet | The StyleSheet resource to be applied to the rootVisualElement. |
This method is called when the window is first displayed or when the user refreshes the window.
It attempts to load a StyleSheet named "ThemeManagerEditor" from the project.
If the StyleSheet is found, it is added to the styleSheets collection of the rootVisualElement.
If the StyleSheet is not found, no changes are made.
| bool GWG.WindowFramework.Editor.ThemeManagerWindow.LoadThemeData |
( |
| ) |
|
|
inlineprivate |
Loads the WindowFrameThemeData asset from the PlayerPrefs path. If the path is valid, loads the asset and returns true. If the path is invalid, returns false.
- Returns
- Returns
true if the asset was loaded successfully, false otherwise.
This method is called when the window is first displayed or when the user refreshes the window.
It checks if a path is saved in PlayerPrefs for the theme data file.
If a path is found, it attempts to load the asset from the specified path.
If the asset is successfully loaded, it sets the WindowFrameThemeData instance and SerializedObject for later use.
Returns true if the asset was loaded successfully, false otherwise.
| void GWG.WindowFramework.Editor.ThemeManagerWindow.PopulateRepositorySections |
( |
ScrollView | scrollView, |
|
|
List< WindowFrameThemeData > | dataFiles ) |
|
inlineprivate |
Groups existing collection rows by their inspected origin within the existing browser.
- Parameters
-
| scrollView | The existing asset-list scroll view to populate. |
| dataFiles | Collections already discovered by the existing asset search. |
Project collections appear first; installed examples are visibly separated as demos/defaults. Neither group certifies independence, changes asset order within that group, hides a repository, nor replaces its Open/Ping/active-data controls. No collection or persisted selection is changed.