52 references to Styles
System.Windows.Forms (1)
System\Windows\Forms\Design\ComponentEditorForm.cs (1)
172uiFont = (Font?)uiService.Styles["DialogFont"];
System.Windows.Forms.Design (49)
System\ComponentModel\Design\DesignerActionPanel.cs (11)
65Font = (Font)uiService.Styles["DialogFont"]!; 66if (uiService.Styles["VsColorPanelGradientDark"] is Color vsColorPanelGradientDarkColor) 71if (uiService.Styles["VsColorPanelGradientLight"] is Color vsColorPanelGradientLight) 76if (uiService.Styles["VsColorPanelHyperLink"] is Color vsColorPanelHyperLink) 81if (uiService.Styles["VsColorPanelHyperLinkPressed"] is Color vsColorPanelHyperLinkPressed) 86if (uiService.Styles["VsColorPanelTitleBar"] is Color vsColorPanelTitleBar) 91if (uiService.Styles["VsColorPanelTitleBarUnselected"] is Color vsColorPanelTitleBarUnselected) 96if (uiService.Styles["VsColorPanelTitleBarText"] is Color vsColorPanelTitleBarText) 101if (uiService.Styles["VsColorPanelBorder"] is Color vsColorPanelBorder) 106if (uiService.Styles["VsColorPanelSeparator"] is Color vsColorPanelSeparator) 111if (uiService.Styles["VsColorPanelText"] is Color vsColorPanelText)
System\Windows\Forms\Design\BaseContextMenuStrip.cs (6)
122_selectionMenuItem.DropDown.Renderer = (ToolStripProfessionalRenderer)uis.Styles["VsRenderer"]!; 125_selectionMenuItem.DropDown.Font = (Font)uis.Styles["DialogFont"]!; 127if (uis.Styles["VsColorPanelText"] is Color color) 202Renderer = (ToolStripProfessionalRenderer)uis.Styles["VsRenderer"]!; 204if (uis.Styles["VsColorPanelText"] is Color color) 239Font = (Font)uis.Styles["DialogFont"]!;
System\Windows\Forms\Design\Behavior\DragAssistanceManager.cs (2)
167if (uiService.Styles["VsColorSnaplines"] is Color snaplinesColor) 173if (uiService.Styles["VsColorSnaplinesTextBaseline"] is Color snaplinesTextBaselineColor)
System\Windows\Forms\Design\ComponentTray.cs (10)
124if (uiService.Styles["ArtboardBackground"] is Color backgroundColor) 130else if (uiService.Styles["VsColorDesignerTray"] is Color designerTrayColor) 134else if (uiService.Styles["HighlightColor"] is Color highlightColor) 147if (uiService.Styles["ArtboardBackgroundText"] is Color backgroundTextColor) 151else if (uiService.Styles["VsColorPanelText"] is Color panelTextColor) 157Font = (Font)uiService.Styles["DialogFont"]; 1401if (uiService.Styles["ArtboardBackground"] is Color backgroundColor) 1407else if (uiService.Styles["VsColorDesignerTray"] is Color trayColor) 1411else if (uiService.Styles["HighlightColor"] is Color highlightColor) 1425Font = (Font)uiService.Styles["DialogFont"];
System\Windows\Forms\Design\DataGridViewAddColumnDialog.cs (1)
58uiFont = (Font)uiService.Styles["DialogFont"]!;
System\Windows\Forms\Design\DataGridViewCellStyleEditor.cs (1)
30_builderDialog.Font = (Font)uiService.Styles["DialogFont"]!;
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (1)
796object? font = uiService?.Styles["DialogFont"];
System\Windows\Forms\Design\DesignBindingPicker.cs (2)
407if (uiService.Styles["VsColorPanelHyperLink"] is Color color1) 412if (uiService.Styles["VsColorPanelHyperLinkPressed"] is Color color2)
System\Windows\Forms\Design\DesignerFrame.cs (2)
43if (_uiService?.Styles["ArtboardBackground"] is Color color) 268if (_uiService?.Styles["HorizontalResizeGrip"] is Color color)
System\Windows\Forms\Design\NewItemsContextMenuStrip.cs (1)
30Renderer = (ToolStripProfessionalRenderer)uis.Styles["VsRenderer"]!;
System\Windows\Forms\Design\SplitterPanelDesigner.cs (1)
186if (uis?.Styles["SmartTagText"] is Color clr)
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (2)
362menu.Renderer = (ToolStripProfessionalRenderer)uis.Styles["VsRenderer"]; 363if (uis.Styles["VsColorPanelText"] is Color color)
System\Windows\Forms\Design\TabOrder.cs (1)
48_tabFont = uisvc is not null && uisvc.Styles["DialogFont"] is Font dialogFont ? dialogFont : DefaultFont;
System\Windows\Forms\Design\ToolStripDesignerUtils.cs (3)
392contextMenu.Renderer = (ToolStripProfessionalRenderer)uis.Styles["VsRenderer"]; 393contextMenu.Font = (Font)uis.Styles["DialogFont"]; 394if (uis.Styles["VsColorPanelText"] is Color color)
System\Windows\Forms\Design\ToolStripItemCustomMenuItemCollection.cs (5)
81item.DropDown.Renderer = (ToolStripProfessionalRenderer)uis.Styles["VsRenderer"]; 82item.DropDown.Font = (Font)uis.Styles["DialogFont"]; 168ToolStripProfessionalRenderer renderer = (ToolStripProfessionalRenderer)uis.Styles["VsRenderer"]; 172Font font = (Font)uis.Styles["DialogFont"]; 177object panelTextObject = uis.Styles["VsColorPanelText"];
System.Windows.Forms.Design.Tests (2)
System\Windows\Forms\Design\BaseContextMenuStripTests.cs (1)
17uiServiceMock.Setup(uis => uis.Styles["DialogFont"]).Returns(expectedFont);
System\Windows\Forms\Design\DataGridViewAddColumnDialogTests.cs (1)
35mockUIService.Setup(ui => ui.Styles["DialogFont"]).Returns(expectedFont);