Vixen
dd8b0a81
csharp
public enum StyleOrigin

Who a declaration came from, which is the cascade's first question.

Read the guide page for this →

Remarks

The order here is the order of increasing power for normal declarations, and the cascade reverses it for !important ones. That reversal is the whole point of the mechanism: a user stylesheet marking something important is a user who means it, and it has to be able to beat a page that also means it — an accessibility guarantee rather than a curiosity, and the reason importance is not simply "wins".

Vixen has all three. The engine's own control themes are UserAgent, a game's stylesheets are Author, and User is what a player's accessibility overrides load as.

Fields and properties (3)

  • UserAgent

    Vixen's built-in styles for its own controls.

  • User

    A player's own overrides.

  • Author

    The game's stylesheets. Where nearly everything lives.

Used by (41, showing 40)

  • AdvancedThemeVixen.Ui.Controls.Advanced
  • ApplyAtInstallTestsVixen.Ui.Styling.Utilities.Tests
  • CascadeFixtureVixen.Ui.Styling.Tests
  • CascadeOrderTestsVixen.Ui.Styling.Tests
  • CascadeRanksVixen.Ui.Styling
  • ChildScopedFamilyTestsVixen.Ui.Styling.Utilities.Tests
  • ClassSelectorReachTestsVixen.Ui.Styling.Tests
  • CombinatorPairTestsVixen.Ui.Styling.Tests
  • CompositionTestsVixen.Ui.Styling.Utilities.Tests
  • ContainerQueryTestsVixen.Ui.Styling.Tests
  • ControlThemeVixen.Ui.Controls
  • HotReloadWatcherTestsVixen.Ui.HotReload.Tests
  • LineHeightUnitTestsVixen.Ui.Tests
  • SelectorMatchingTestsVixen.Ui.Styling.Tests
  • SheetVixen.Ui.Styling
  • StyleDiagnosticDrainTestsVixen.Ui.Tests
  • StyleEngineVixen.Ui.Styling
  • StyleRuleVixen.Ui.Styling
  • StyleRuleSetVixen.Ui.Styling
  • StyleSheetLoaderVixen.Ui.Styling
  • StyleSheetLoadingTestsVixen.Ui.Styling.Tests
  • TransitionUtilityTestsVixen.Ui.Styling.Utilities.Tests
  • TypeSelectorReachTestsVixen.Ui.Styling.Tests
  • UiApplicationVixen.Ui.Desktop
  • UiDocumentVixen.Ui
  • UtilityConsumptionProbeVixen.Ui.Styling.Utilities.Tests
  • UtilityFixtureVixen.Ui.Styling.Utilities.Tests
  • UtilityGenerationTestsVixen.Ui.Styling.Utilities.Tests
  • AssetEditorThemeVixen.Editor.AssetEditors
  • BlockoutThemeVixen.Editor.Blockout
  • BrowserThemeVixen.Editor.Inspector
  • DebuggerThemeVixen.Editor.Debugger
  • EditorThemeVixen.Editor.Ui
  • InspectorThemeVixen.Editor.Inspector
  • NodeGraphThemeVixen.Editor.NodeGraph
  • PreviewCodeEditorViewVixen.Editor.AssetEditors
  • ProfilerThemeVixen.Editor.Profiler
  • StylesheetTestsVixen.Editor.Ui.Tests
  • TexturingThemeVixen.Editor.Texturing
  • UtilityFamilySupportTestsVixen.Editor.Ui.Tests