| | |
| | | public Theme Theme => _theme == null ? Theme.Standard : _theme; |
| | | |
| | | /// <summary> |
| | | /// Gets or sets the Style of the orb |
| | | /// Gets or sets the Style of the orb. |
| | | /// |
| | | /// This is where the default values are loaded when changing the OrbStyle. |
| | | /// </summary> |
| | | [DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)] |
| | | [Category("Orb")] |
| | |
| | | ItemMargin = new Padding(4, 2, 4, 2); |
| | | ItemPadding = new Padding(1, 0, 1, 0); |
| | | ItemImageToTextSpacing = 4; |
| | | this.OrbDropDown.BorderRoundness = 8; |
| | | } |
| | | else if ((value == RibbonOrbStyle.Office_2010) || |
| | | (value == RibbonOrbStyle.Office_2010_Extended)) |
| | |
| | | ItemMargin = new Padding(3, 2, 0, 2); |
| | | ItemPadding = new Padding(1, 0, 1, 0); |
| | | ItemImageToTextSpacing = 11; |
| | | this.OrbDropDown.BorderRoundness = 2; |
| | | } |
| | | else if (value == RibbonOrbStyle.Office_2013) |
| | | { |
| | |
| | | ItemMargin = new Padding(2, 2, 0, 2); |
| | | ItemPadding = new Padding(1, 0, 1, 0); |
| | | ItemImageToTextSpacing = 11; |
| | | this.OrbDropDown.BorderRoundness = 2; |
| | | } |
| | | UpdateRegions(); |
| | | Invalidate(); |
| | |
| | | caption = Rectangle.FromLTRB(0, 0, captionRight, CaptionBarSize); |
| | | } |
| | | |
| | | Point screenPoint = new Point(WinApi.LoWord((int)m.LParam), WinApi.HiWord((int)m.LParam)); |
| | | Point screenPoint = new Point(WinApi.Get_X_LParam(m.LParam), WinApi.Get_Y_LParam(m.LParam)); |
| | | Point ribbonPoint = PointToClient(screenPoint); |
| | | bool onCaptionButtons = false; |
| | | |