public static ColorTheme CreateLightTheme() { var toolbuttonHighlightBorder = Theme.Colors.KeyboardFocusBorder.Darken(0.2f); var toolbuttonHighlightBackground = Theme.Colors.KeyboardFocusBorder.Lighten(0.3f); var toolbar = new ToolbarColors { ButtonHighlightBorder = toolbuttonHighlightBorder, ButtonHighlightBackground = toolbuttonHighlightBackground, ButtonPressBorder = toolbuttonHighlightBorder, ButtonPressBackground = toolbuttonHighlightBackground.Darken(0.1f), ButtonCheckedBorder = toolbuttonHighlightBorder.Darken(0.1f), ButtonCheckedBackground = toolbuttonHighlightBackground.Transparentify(0.5f), ButtonDisabledColor = Color4.Gray.Darken(0.1f), Background = Theme.Colors.GrayBackground, }; var sceneView = new SceneViewColors { Selection = Color4.Green, LockedWidgetBorder = Color4.FromFloats(0, 1, 1), ExposedItemInactiveBorder = Color4.Gray, ExposedItemActiveBorder = Color4.White, ExposedItemSelectedBorder = Color4.Green, Label = Color4.Green, MouseSelection = Color4.Yellow, ContainerOuterSpace = Color4.Gray, ContainerInnerSpace = Color4.White, ContainerBorder = Color4.Blue, PointObject = Color4.Gray.Lighten(0.2f), Bone = new Color4(136, 136, 136, 128), BoneOutline = new Color4(105, 105, 105), BoneEffectiveRadius = Color4.Yellow, BoneFadeoutZone = Color4.Red, BackgroundColorA = new Color4(202, 202, 202), BackgroundColorB = new Color4(190, 190, 190), RootWidgetOverlayColor = new Color4(255, 255, 255, 85), DistortionMeshOutline = new Color4(0, 255, 255), RulerEditable = new Color4(255, 0, 255), Ruler = new Color4(0, 255, 255), SelectedWidget = new Color4(0, 255, 255), }; var timelineGrid = new TimelineGridColors { PropertyRowBackground = Color4.Black.Transparentify(0.95f), Lines = new Color4(160, 160, 160), LinesLight = new Color4(225, 225, 225), Selection = Color4.Gray.Transparentify(0.7f), Cursor = Color4.Red.Lighten(0.4f), RunningCursor = Color4.Green.Lighten(0.4f), WaveformColor = new Color4(140, 170, 255), WaveformBackground = new Color4(255, 200, 140, 60), InvolvedFrames = new Color4(240, 240, 240), SelectionBorder = new Color4(255, 0, 128), }; var timelineCurveEditor = new TimelineCurveEditorColors { Curves = new[] { Color4.Red, Color4.Green, Color4.Blue, Color4.Yellow }, Selection = Color4.Green }; var timelineRuler = new TimelineRulerColors { Notchings = timelineGrid.Lines, JumpMarker = Color4.Yellow, PlayMarker = Color4.Green, StopMarker = Color4.Red, UnknownMarker = Color4.Black, Cursor = timelineGrid.Cursor, RunningCursor = timelineGrid.RunningCursor }; var timelineOverview = new TimelineOverviewColors { Veil = Color4.White.Darken(0.2f).Transparentify(0.3f), Border = Color4.White.Darken(0.2f) }; var timelineRoll = new TimelineRollColors { Lines = timelineGrid.Lines, GrayedLabel = Theme.Colors.BlackText.Lighten(0.5f), DragCursor = Color4.Black, BlueMark = new Color4(0, 255, 255), RedMark = Color4.Red, GreenMark = Color4.Green, OrangeMark = Color4.Orange, YellowMark = Color4.Yellow, VioletMark = new Color4(238, 130, 238), GrayMark = Color4.Gray, }; var docking = new DockingColors { DragRectagleOutline = Color4.FromFloats(0.2f, 0.2f, 1f), PanelTitleBackground = Theme.Colors.GrayBackground.Darken(0.1f), PanelTitleSeparator = Theme.Colors.GrayBackground.Darken(0.15f) }; var inspector = new InspectorColors { BorderAroundKeyframeColorbox = Theme.Colors.ControlBorder, CategoryLabelBackground = Color4.White.Darken(0.2f), GroupHeaderLabelBackground = Color4.White.Darken(0.175f), StripeBackground1 = Theme.Colors.GrayBackground, StripeBackground2 = Theme.Colors.GrayBackground.Darken(0.05f), }; return(new ColorTheme { Basic = Theme.Colors, Toolbar = toolbar, SceneView = sceneView, TimelineGrid = timelineGrid, TimelineCurveEditor = timelineCurveEditor, TimelineRuler = timelineRuler, TimelineOverview = timelineOverview, TimelineRoll = timelineRoll, Docking = docking, Inspector = inspector }); }
public static ColorTheme CreateLightTheme() { var basic = Theme.ColorTheme.CreateLightTheme(); var toolbuttonHighlightBorder = basic.KeyboardFocusBorder.Darken(0.2f); var toolbuttonHighlightBackground = basic.KeyboardFocusBorder.Lighten(0.3f); var toolbar = new ToolbarColors { ButtonHighlightBorder = toolbuttonHighlightBorder, ButtonHighlightBackground = toolbuttonHighlightBackground, ButtonPressBorder = toolbuttonHighlightBorder, ButtonPressBackground = toolbuttonHighlightBackground.Darken(0.1f), ButtonCheckedBorder = toolbuttonHighlightBorder.Darken(0.1f), ButtonCheckedBackground = toolbuttonHighlightBackground.Transparentify(0.5f), ButtonDisabledColor = Color4.Gray.Darken(0.1f), Background = basic.GrayBackground, ButtonSelected = toolbuttonHighlightBorder, PanelPlacementHighlightBackground = toolbuttonHighlightBackground.Transparentify(0.7f), PanelPlacementHighlightBorder = toolbuttonHighlightBorder, Separator = Color4.Gray.Lighten(0.3f), }; var sceneView = new SceneViewColors { Selection = Color4.Green, SelectedWidgetPivotOutline = Color4.Green, LockedWidgetBorder = Color4.FromFloats(0, 1, 1), ExposedItemInactiveBorder = Color4.Gray, ExposedItemActiveBorder = Color4.White, ExposedItemSelectedBorder = Color4.Green, Label = Color4.Green, MouseSelection = Color4.Yellow, ContainerOuterSpace = Color4.Gray, ContainerInnerSpace = Color4.White, ContainerBorder = Color4.Blue, PointObject = Color4.Red.Lighten(0.2f), SplineOutline = Color4.White, Bone = new Color4(136, 136, 136, 128), BoneOutline = new Color4(105, 105, 105), BoneEffectiveRadius = Color4.Yellow, BoneFadeoutZone = Color4.Red, BackgroundColorA = new Color4(202, 202, 202), BackgroundColorB = new Color4(190, 190, 190), RootWidgetOverlayColor = new Color4(255, 255, 255, 85), DistortionMeshOutline = new Color4(0, 255, 255), RulerEditable = new Color4(255, 0, 255), RulerEditableActiveDraging = Color4.White, Ruler = new Color4(0, 255, 255), SelectedWidget = new Color4(0, 255, 255), RulerBackground = new Color4(168, 166, 168), RulerTextColor = Color4.Black, ResolutionPreviewOuterSpace = new Color4(7, 7, 7, 220), ResolutionPreviewText = new Color4(204, 204, 204), EmitterCustomShape = Color4.Gray.Darken(0.2f).Transparentify(0.5f), EmitterCustomShapeLine = Color4.White }; var timelineGrid = new TimelineGridColors { PropertyRowBackground = Color4.Black.Transparentify(0.95f), Lines = new Color4(160, 160, 160), LinesLight = new Color4(210, 210, 210), Selection = Color4.Gray.Transparentify(0.7f), Backlight = Color4.Gray.Transparentify(0.75f), Cursor = Color4.Red.Lighten(0.4f), RunningCursor = Color4.Green.Lighten(0.4f), WaveformColor = new Color4(140, 170, 255), WaveformBackground = new Color4(255, 200, 140, 60), AnimatedRangeBackground = new Color4(240, 240, 240), SelectedRowBackground = new Color4(225, 225, 225), SelectionBorder = new Color4(255, 0, 128), }; var timelineCurveEditor = new TimelineCurveEditorColors { Curves = new[] { Color4.Red, Color4.Green, Color4.Blue, Color4.Yellow }, Selection = Color4.Green }; var timelineRuler = new TimelineRulerColors { Notchings = timelineGrid.Lines, JumpMarker = Color4.Yellow, PlayMarker = Color4.Green, StopMarker = Color4.Red, UnknownMarker = Color4.Black, Cursor = timelineGrid.Cursor, RunningCursor = timelineGrid.RunningCursor }; var timelineOverview = new TimelineOverviewColors { Veil = Color4.White.Darken(0.2f).Transparentify(0.3f), Border = Color4.White.Darken(0.2f) }; var timelineRoll = new TimelineRollColors { Lines = timelineGrid.Lines, GrayedLabel = basic.BlackText.Lighten(0.5f), DragCursor = Color4.Black, DragTarget = new Color4(0, 0, 0, 20), BlueMark = new Color4(0, 255, 255), RedMark = Color4.Red, GreenMark = Color4.Green, OrangeMark = Color4.Orange, YellowMark = Color4.Yellow, VioletMark = new Color4(238, 130, 238), GrayMark = Color4.Gray, }; var docking = new DockingColors { DragRectagleOutline = Color4.FromFloats(0.2f, 0.2f, 1f), PanelTitleBackground = basic.GrayBackground.Darken(0.1f), PanelTitleSeparator = basic.GrayBackground.Darken(0.15f) }; var inspector = new InspectorColors { BorderAroundKeyframeColorbox = basic.ControlBorder, CategoryLabelBackground = Color4.White.Darken(0.2f), GroupHeaderLabelBackground = Color4.White.Darken(0.175f), ComponentHeaderLabelBackground = Color4.White.Darken(0.275f), StripeBackground1 = basic.GrayBackground, StripeBackground2 = basic.GrayBackground.Darken(0.05f), }; var keyboard = new KeyboardColors { BlackText = Color4.Black, GrayText = Color4.Black.Lighten(0.2f), GenericKeyBackground = new Color4(180, 255, 255), PanelKeyBackground = new Color4(255, 255, 128), ButtonBackground = new Color4(220, 220, 255), ModifierBackground = new Color4(160, 160, 190), SelectedBorder = new Color4(255, 0, 0), Border = new Color4(32, 32, 32) }; var hierarchy = new HierarchyColors { SelectionColor = toolbar.ButtonHighlightBackground, GrayedSelectionColor = toolbar.ButtonHighlightBackground.Darken(0.3f), MatchColor = Color4.Yellow.Transparentify(0.6f), JointColor = Color4.Gray }; return(new ColorTheme { IsDark = false, Basic = basic, Toolbar = toolbar, SceneView = sceneView, TimelineGrid = timelineGrid, TimelineCurveEditor = timelineCurveEditor, TimelineRuler = timelineRuler, TimelineOverview = timelineOverview, TimelineRoll = timelineRoll, Docking = docking, Inspector = inspector, Keyboard = keyboard, Hierarchy = hierarchy }); }