diff options
author | Vaclav Vancura <vaclav@vancura.org> | 2016-02-11 12:31:48 +0300 |
---|---|---|
committer | Vaclav Vancura <vaclav@vancura.org> | 2016-02-11 22:16:04 +0300 |
commit | 79e40fb39a08c11803be06aaed328d7dee67e90d (patch) | |
tree | 4cb9b1f8fa84eef2f2e11e82a3e783aa1946233c /main/src/addins/MonoDevelop.Debugger/MonoDevelop.Debugger.PreviewVisualizers/GenericPreviewVisualizer.cs | |
parent | d8f43008aa833aecba7550fca862910dc334b491 (diff) |
[Debugger] Preview visualizers now use bigger (and more readable) fonts:
* Hed is 12pt
* Dek is 11pt
Diffstat (limited to 'main/src/addins/MonoDevelop.Debugger/MonoDevelop.Debugger.PreviewVisualizers/GenericPreviewVisualizer.cs')
-rw-r--r-- | main/src/addins/MonoDevelop.Debugger/MonoDevelop.Debugger.PreviewVisualizers/GenericPreviewVisualizer.cs | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/main/src/addins/MonoDevelop.Debugger/MonoDevelop.Debugger.PreviewVisualizers/GenericPreviewVisualizer.cs b/main/src/addins/MonoDevelop.Debugger/MonoDevelop.Debugger.PreviewVisualizers/GenericPreviewVisualizer.cs index 3266afe292..00fa8d0e8b 100644 --- a/main/src/addins/MonoDevelop.Debugger/MonoDevelop.Debugger.PreviewVisualizers/GenericPreviewVisualizer.cs +++ b/main/src/addins/MonoDevelop.Debugger/MonoDevelop.Debugger.PreviewVisualizers/GenericPreviewVisualizer.cs @@ -27,6 +27,7 @@ using System; using MonoDevelop.Components; using Mono.Debugging.Client; using Gtk; +using MonoDevelop.Ide.Fonts; namespace MonoDevelop.Debugger.PreviewVisualizers { @@ -51,15 +52,7 @@ namespace MonoDevelop.Debugger.PreviewVisualizers var label = new Gtk.Label (); label.Text = value; - var font = label.Style.FontDescription.Copy (); // TODO: VV: Use FontService - - if (font.SizeIsAbsolute) { - font.AbsoluteSize = font.Size - 1; - } else { - font.Size -= (int)(Pango.Scale.PangoScale); - } - - label.ModifyFont (font); + label.ModifyFont (FontService.SansFont.CopyModified (Ide.Gui.Styles.FontScale11)); label.ModifyFg (StateType.Normal, col); label.SetPadding (4, 4); |