public FormMain() { InitializeComponent(); VS2015LightTheme theme = new VS2015LightTheme(); this.dockPanel1.Theme = theme; FormDataObjectTree contentTree = new FormDataObjectTree(); contentTree.TableSelected += dataObjectTree_TableSelected; contentTree.Show(this.dockPanel1, DockState.DockLeft); dbView = new FormDatabaseStructure(); dbView.Show(this.dockPanel1, DockState.Document); FormLog log = new FormLog(); log.Show(this.dockPanel1, DockState.DockBottom); }
public DbEditorView() { InitializeComponent(); _deserializeDockContent = new DeserializeDockContent(GetContentFromPersistString); _viewFactory.Register <SoundEditorVM, EntryEditorView <SoundEditorCtrl> >(); _viewFactory.Register <TileSetEditorVM, EntryEditorView <TileSetEditorCtrl> >(); _viewFactory.Register <SpriteSetEditorVM, EntryEditorView <SpriteSetEditorCtrl> >(); _viewFactory.Register <ActionSetEditorVM, EntryEditorView <ActionSetEditorCtrl> >(); _viewFactory.Register <ImageEditorVM, EntryEditorView <ImageEditorCtrl> >(); _viewFactory.Register <PaletteEditorVM, EntryEditorView <PaletteEditorCtrl> >(); _viewFactory.Register <TextEditorVM, EntryEditorView <TextEditorCtrl> >(); _viewFactory.Register <ScriptEditorVM, EntryEditorView <ScriptEditorCtrl> >(); _viewFactory.Register <EntityTemplateEditorVM, EntryEditorView <EntityTemplateEditorCtrl> >(); _viewFactory.Register <MapEditorVM, EntryEditorView <MapEditorCtrl> >(); _viewFactory.Register <DataSourceEditorVM, EntryEditorView <DataSourceEditorCtrl> >(); Theme = new WeifenLuo.WinFormsUI.Docking.VS2015LightTheme(); }
public void CreateVisualStudio2015Light() { var ColorPalette = new VS2015LightTheme().ColorPalette; AssertColor(ColorPalette.AutoHideStripDefault.Background, ColorTranslator.FromHtml("#FFEEEEF2")); AssertColor(ColorPalette.AutoHideStripDefault.Border, ColorTranslator.FromHtml("#FFCCCEDB")); AssertColor(ColorPalette.AutoHideStripDefault.Text, ColorTranslator.FromHtml("#FF444444")); AssertColor(ColorPalette.AutoHideStripHovered.Background, ColorTranslator.FromHtml("#FFEEEEF2")); AssertColor(ColorPalette.AutoHideStripHovered.Border, ColorTranslator.FromHtml("#FF007ACC")); AssertColor(ColorPalette.AutoHideStripHovered.Text, ColorTranslator.FromHtml("#FF0E70C0")); AssertColor(ColorPalette.OverflowButtonDefault.Glyph, ColorTranslator.FromHtml("#FF717171")); AssertColor(ColorPalette.OverflowButtonHovered.Background, ColorTranslator.FromHtml("#FFC9DEF5")); AssertColor(ColorPalette.OverflowButtonHovered.Border, ColorTranslator.FromHtml("#FFC9DEF5")); AssertColor(ColorPalette.OverflowButtonHovered.Glyph, ColorTranslator.FromHtml("#FF007ACC")); AssertColor(ColorPalette.TabSelectedActive.Background, ColorTranslator.FromHtml("#FF007ACC")); AssertColor(ColorPalette.TabSelectedActive.Button, ColorTranslator.FromHtml("#FFD0E6F5")); AssertColor(ColorPalette.TabSelectedActive.Text, ColorTranslator.FromHtml("#FFFFFFFF")); AssertColor(ColorPalette.TabSelectedInactive.Background, ColorTranslator.FromHtml("#FFCCCEDB")); AssertColor(ColorPalette.TabSelectedInactive.Button, ColorTranslator.FromHtml("#FF6D6D70")); AssertColor(ColorPalette.TabSelectedInactive.Text, ColorTranslator.FromHtml("#FF717171")); AssertColor(ColorPalette.TabUnselected.Background, ColorTranslator.FromHtml("#FFEEEEF2")); AssertColor(ColorPalette.TabUnselected.Text, ColorTranslator.FromHtml("#FF1E1E1E")); AssertColor(ColorPalette.TabUnselectedHovered.Background, ColorTranslator.FromHtml("#FF1C97EA")); AssertColor(ColorPalette.TabUnselectedHovered.Button, ColorTranslator.FromHtml("#FFD0E6F5")); AssertColor(ColorPalette.TabUnselectedHovered.Text, ColorTranslator.FromHtml("#FFFFFFFF")); AssertColor(ColorPalette.TabButtonSelectedActiveHovered.Background, ColorTranslator.FromHtml("#FF1C97EA")); AssertColor(ColorPalette.TabButtonSelectedActiveHovered.Border, ColorTranslator.FromHtml("#FF1C97EA")); AssertColor(ColorPalette.TabButtonSelectedActiveHovered.Glyph, ColorTranslator.FromHtml("#FFFFFFFF")); AssertColor(ColorPalette.TabButtonSelectedInactiveHovered.Background, ColorTranslator.FromHtml("#FFE6E7ED")); AssertColor(ColorPalette.TabButtonSelectedInactiveHovered.Border, ColorTranslator.FromHtml("#FFE6E7ED")); AssertColor(ColorPalette.TabButtonSelectedInactiveHovered.Glyph, ColorTranslator.FromHtml("#FF717171")); AssertColor(ColorPalette.TabButtonUnselectedTabHoveredButtonHovered.Background, ColorTranslator.FromHtml("#FF52B0EF")); AssertColor(ColorPalette.TabButtonUnselectedTabHoveredButtonHovered.Border, ColorTranslator.FromHtml("#FF52B0EF")); AssertColor(ColorPalette.TabButtonUnselectedTabHoveredButtonHovered.Glyph, ColorTranslator.FromHtml("#FFFFFFFF")); AssertColor(ColorPalette.MainWindowActive.Background, ColorTranslator.FromHtml("#FFEEEEF2")); AssertColor(ColorPalette.MainWindowStatusBarDefault.Background, ColorTranslator.FromHtml("#FF007ACC")); AssertColor(ColorPalette.ToolWindowCaptionActive.Background, ColorTranslator.FromHtml("#FF007ACC")); AssertColor(ColorPalette.ToolWindowBorder, ColorTranslator.FromHtml("#FFCCCEDB")); AssertColor(ColorPalette.ToolWindowCaptionActive.Button, ColorTranslator.FromHtml("#FFFFFFFF")); AssertColor(ColorPalette.ToolWindowCaptionActive.Grip, ColorTranslator.FromHtml("#FF59A8DE")); AssertColor(ColorPalette.ToolWindowCaptionActive.Text, ColorTranslator.FromHtml("#FFFFFFFF")); AssertColor(ColorPalette.ToolWindowCaptionInactive.Background, ColorTranslator.FromHtml("#FFEEEEF2")); AssertColor(ColorPalette.ToolWindowCaptionInactive.Button, ColorTranslator.FromHtml("#FF1E1E1E")); AssertColor(ColorPalette.ToolWindowCaptionInactive.Grip, ColorTranslator.FromHtml("#FF999999")); AssertColor(ColorPalette.ToolWindowCaptionInactive.Text, ColorTranslator.FromHtml("#FF444444")); AssertColor(ColorPalette.ToolWindowCaptionButtonActiveHovered.Background, ColorTranslator.FromHtml("#FF52B0EF")); AssertColor(ColorPalette.ToolWindowCaptionButtonActiveHovered.Border, ColorTranslator.FromHtml("#FF52B0EF")); AssertColor(ColorPalette.ToolWindowCaptionButtonActiveHovered.Glyph, ColorTranslator.FromHtml("#FFFFFFFF")); AssertColor(ColorPalette.ToolWindowCaptionButtonInactiveHovered.Background, ColorTranslator.FromHtml("#FFF7F7F9")); AssertColor(ColorPalette.ToolWindowCaptionButtonInactiveHovered.Border, ColorTranslator.FromHtml("#FFF7F7F9")); AssertColor(ColorPalette.ToolWindowCaptionButtonInactiveHovered.Glyph, ColorTranslator.FromHtml("#FF717171")); AssertColor(ColorPalette.ToolWindowTabSelectedActive.Background, ColorTranslator.FromHtml("#FFF5F5F5")); AssertColor(ColorPalette.ToolWindowTabSelectedActive.Text, ColorTranslator.FromHtml("#FF0E70C0")); AssertColor(ColorPalette.ToolWindowTabSelectedInactive.Background, ColorTranslator.FromHtml("#FFF5F5F5")); AssertColor(ColorPalette.ToolWindowTabSelectedInactive.Text, ColorTranslator.FromHtml("#FF0E70C0")); AssertColor(ColorPalette.ToolWindowTabUnselected.Background, ColorTranslator.FromHtml("#FFEEEEF2")); AssertColor(ColorPalette.ToolWindowTabUnselected.Text, ColorTranslator.FromHtml("#FF444444")); AssertColor(ColorPalette.ToolWindowTabUnselectedHovered.Background, ColorTranslator.FromHtml("#FFC9DEF5")); AssertColor(ColorPalette.ToolWindowTabUnselectedHovered.Text, ColorTranslator.FromHtml("#FF1E1E1E")); }