diff options
11 files changed, 486 insertions, 43 deletions
diff --git a/main/src/addins/ChangeLogAddIn/AddLogEntryDialog.cs b/main/src/addins/ChangeLogAddIn/AddLogEntryDialog.cs index 4a318731fe..9b96e905d6 100644 --- a/main/src/addins/ChangeLogAddIn/AddLogEntryDialog.cs +++ b/main/src/addins/ChangeLogAddIn/AddLogEntryDialog.cs @@ -31,6 +31,7 @@ using System.Collections.Generic; using Gtk; using MonoDevelop.Ide; using MonoDevelop.Components; +using MonoDevelop.Ide.Fonts; namespace MonoDevelop.ChangeLogAddIn { @@ -46,8 +47,7 @@ namespace MonoDevelop.ChangeLogAddIn { Build (); - Pango.FontDescription font = Pango.FontDescription.FromString (DesktopService.DefaultMonospaceFont); - textview.ModifyFont (font); + textview.ModifyFont (FontService.MonospaceFont); textview.WrapMode = WrapMode.None; textview.AcceptsTab = true; Pango.TabArray tabs = new Pango.TabArray (1, true); @@ -56,7 +56,6 @@ namespace MonoDevelop.ChangeLogAddIn textview.SizeRequested += delegate { textview.WidthRequest = GetStringWidth (String.Empty.PadRight (80)); }; - font.Dispose (); store = new ListStore (typeof(ChangeLogEntry), typeof(Xwt.Drawing.Image), typeof(string)); fileList.Model = store; diff --git a/main/src/addins/MonoDevelop.Refactoring/MonoDevelop.Refactoring/RefactoringPreviewDialog.cs b/main/src/addins/MonoDevelop.Refactoring/MonoDevelop.Refactoring/RefactoringPreviewDialog.cs index 5649349236..ecfbf2e593 100644 --- a/main/src/addins/MonoDevelop.Refactoring/MonoDevelop.Refactoring/RefactoringPreviewDialog.cs +++ b/main/src/addins/MonoDevelop.Refactoring/MonoDevelop.Refactoring/RefactoringPreviewDialog.cs @@ -34,6 +34,7 @@ using Mono.TextEditor; using MonoDevelop.Ide; using ICSharpCode.NRefactory.TypeSystem; using MonoDevelop.Components; +using MonoDevelop.Ide.Fonts; namespace MonoDevelop.Refactoring @@ -195,14 +196,12 @@ namespace MonoDevelop.Refactoring class CellRendererDiff : Gtk.CellRendererText { Pango.Layout layout; - Pango.FontDescription font; bool diffMode; int width, height, lineHeight; string[] lines; public CellRendererDiff () { - font = Pango.FontDescription.FromString (DesktopService.DefaultMonospaceFont); } void DisposeLayout () @@ -218,10 +217,6 @@ namespace MonoDevelop.Refactoring { isDisposed = true; DisposeLayout (); - if (font != null) { - font.Dispose (); - font = null; - } base.OnDestroyed (); } @@ -247,28 +242,28 @@ namespace MonoDevelop.Refactoring } } DisposeLayout (); - layout = CreateLayout (container, lines[maxlin]); + CreateLayout (container, lines[maxlin]); layout.GetPixelSize (out width, out lineHeight); height = lineHeight * lines.Length; } else width = height = 0; } else { DisposeLayout (); - layout = CreateLayout (container, text); + CreateLayout (container, text); layout.GetPixelSize (out width, out height); } } - Pango.Layout CreateLayout (Widget container, string text) + void CreateLayout (Widget container, string text) { - Pango.Layout layout = new Pango.Layout (container.PangoContext); + layout = new Pango.Layout (container.PangoContext); layout.SingleParagraphMode = false; if (diffMode) { - layout.FontDescription = font; + layout.FontDescription = FontService.MonospaceFont; layout.SetText (text); - } else + } else { layout.SetMarkup (text); - return layout; + } } protected override void Render (Drawable window, Widget widget, Gdk.Rectangle background_area, Gdk.Rectangle cell_area, Gdk.Rectangle expose_area, CellRendererState flags) diff --git a/main/src/addins/VersionControl/MonoDevelop.VersionControl/MonoDevelop.VersionControl.Dialogs/CommitMessageStylePanelWidget.cs b/main/src/addins/VersionControl/MonoDevelop.VersionControl/MonoDevelop.VersionControl.Dialogs/CommitMessageStylePanelWidget.cs index cc3873574b..f99b03d983 100644 --- a/main/src/addins/VersionControl/MonoDevelop.VersionControl/MonoDevelop.VersionControl.Dialogs/CommitMessageStylePanelWidget.cs +++ b/main/src/addins/VersionControl/MonoDevelop.VersionControl/MonoDevelop.VersionControl.Dialogs/CommitMessageStylePanelWidget.cs @@ -28,6 +28,7 @@ using System; using MonoDevelop.Ide; using MonoDevelop.Projects; +using MonoDevelop.Ide.Fonts; namespace MonoDevelop.VersionControl { @@ -44,12 +45,8 @@ namespace MonoDevelop.VersionControl { this.Build(); - Pango.FontDescription font = Pango.FontDescription.FromString ( - DesktopService.DefaultMonospaceFont); - font.Size = Pango.Units.FromPixels (8); - textview.ModifyFont (font); + textview.ModifyFont (FontService.MonospaceSmallFont); textview.AcceptsTab = true; - font.Dispose (); } public void Load (CommitMessageFormat format, AuthorInformation uinfo) diff --git a/main/src/addins/VersionControl/MonoDevelop.VersionControl/MonoDevelop.VersionControl.Views/CellRendererDiff.cs b/main/src/addins/VersionControl/MonoDevelop.VersionControl/MonoDevelop.VersionControl.Views/CellRendererDiff.cs index 9543398df7..6e2fcdc5ab 100644 --- a/main/src/addins/VersionControl/MonoDevelop.VersionControl/MonoDevelop.VersionControl.Views/CellRendererDiff.cs +++ b/main/src/addins/VersionControl/MonoDevelop.VersionControl/MonoDevelop.VersionControl.Views/CellRendererDiff.cs @@ -7,13 +7,13 @@ using MonoDevelop.Ide; using MonoDevelop.Components; using System.Text; using Mono.TextEditor; +using MonoDevelop.Ide.Fonts; namespace MonoDevelop.VersionControl.Views { class CellRendererDiff: Gtk.CellRendererText { Pango.Layout layout; - Pango.FontDescription font; bool diffMode; int width, height, lineHeight; string[] lines; @@ -32,7 +32,6 @@ namespace MonoDevelop.VersionControl.Views public CellRendererDiff() { - font = Pango.FontDescription.FromString (DesktopService.DefaultMonospaceFont); } void DisposeLayout () @@ -48,10 +47,6 @@ namespace MonoDevelop.VersionControl.Views { isDisposed = true; DisposeLayout (); - if (font != null) { - font.Dispose (); - font = null; - } base.OnDestroyed (); } @@ -103,7 +98,7 @@ namespace MonoDevelop.VersionControl.Views Pango.Layout layout = new Pango.Layout (container.PangoContext); layout.SingleParagraphMode = false; if (diffMode) { - layout.FontDescription = font; + layout.FontDescription = FontService.MonospaceFont; layout.SetText (text); } else diff --git a/main/src/addins/WindowsPlatform/WindowsPlatform.cs b/main/src/addins/WindowsPlatform/WindowsPlatform.cs index 0e6a9ece4d..7cf2fb3037 100644 --- a/main/src/addins/WindowsPlatform/WindowsPlatform.cs +++ b/main/src/addins/WindowsPlatform/WindowsPlatform.cs @@ -57,6 +57,36 @@ namespace MonoDevelop.Platform } } + public override string DefaultMonospaceSmallFont { + get { + // Vista has the very beautiful Consolas + if (Environment.OSVersion.Version.Major >= 6) + return "Consolas 10"; + + return "Courier New 10"; + } + } + + public override string DefaultSansFont { + get { + // Vista has the very beautiful Consolas + if (Environment.OSVersion.Version.Major >= 6) + return "Consolas 10"; + + return "Courier New 10"; + } + } + + public override string DefaultSansSmallFont { + get { + // Vista has the very beautiful Consolas + if (Environment.OSVersion.Version.Major >= 6) + return "Consolas 10"; + + return "Courier New 10"; + } + } + public override string Name { get { return "Windows"; } } diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Desktop/PlatformService.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Desktop/PlatformService.cs index b0c8333362..dc8969efa5 100644 --- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Desktop/PlatformService.cs +++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Desktop/PlatformService.cs @@ -51,6 +51,10 @@ namespace MonoDevelop.Ide.Desktop const bool UsePlatformFileIcons = false; public abstract string DefaultMonospaceFont { get; } + public virtual string DefaultFontMonospaceSmall { get { return null; } } + public virtual string DefaultFontSans { get { return null; } } + public virtual string DefaultFontSansSmall { get { return null; } } + public abstract string Name { get; } /// <summary> diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Fonts/FontService.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Fonts/FontService.cs index 4f8dd83a43..919590ce36 100644 --- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Fonts/FontService.cs +++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Fonts/FontService.cs @@ -38,7 +38,58 @@ namespace MonoDevelop.Ide.Fonts static List<FontDescriptionCodon> fontDescriptions = new List<FontDescriptionCodon> (); static Dictionary<string, FontDescription> loadedFonts = new Dictionary<string, FontDescription> (); static Properties fontProperties; - static FontDescription defaultMonospaceFontDescription; + + static string defaultMonospaceFontName, defaultMonospaceSmallFontName, defaultSansFontName, defaultSansSmallFontName; + static FontDescription defaultMonospaceFont, defaultMonospaceSmallFont, defaultSansFont, defaultSansSmallFont; + + static void LoadDefaults () + { + if (defaultMonospaceFont != null) { + defaultMonospaceFont.Dispose (); + defaultMonospaceSmallFont.Dispose (); + defaultSansFont.Dispose (); + defaultSansSmallFont.Dispose (); + } + + defaultMonospaceFontName = DesktopService.DefaultFontMonospace; + defaultMonospaceFont = FontDescription.FromString (defaultMonospaceFontName); + + defaultMonospaceSmallFontName = DesktopService.DefaultFontMonospaceSmall; + if (defaultMonospaceSmallFontName != null) { + defaultMonospaceSmallFont = FontDescription.FromString (defaultMonospaceSmallFontName); + } else { + defaultMonospaceSmallFont = FontDescScaledCopy (defaultMonospaceFont, 0.7d); + defaultMonospaceSmallFontName = defaultMonospaceSmallFont.ToString (); + } + + defaultSansFontName = DesktopService.DefaultFontSans; + if (defaultSansFontName != null) { + defaultSansFont = FontDescription.FromString (defaultSansFontName); + } else { + var label = new Gtk.Label (""); + defaultSansFont = label.Style.FontDescription.Copy (); + label.Destroy (); + defaultSansFontName = defaultSansFont.ToString (); + } + + defaultSansSmallFontName = DesktopService.DefaultFontSansSmall; + if (defaultSansSmallFontName != null) { + defaultSansSmallFont = FontDescription.FromString (defaultSansSmallFontName); + } else { + defaultSansSmallFont = FontDescScaledCopy (defaultSansFont, 0.7d); + defaultSansSmallFontName = defaultSansSmallFont.ToString (); + } + } + + static FontDescription FontDescScaledCopy (FontDescription font, double factor) + { + font = font.Copy (); + var size = font.Size; + if (size == 0) + size = 12; + font.Size = (int) (Scale.PangoScale * (int) (factor * size / Scale.PangoScale)); + return font; + } internal static IEnumerable<FontDescriptionCodon> FontDescriptions { get { @@ -62,14 +113,22 @@ namespace MonoDevelop.Ide.Fonts loadedFonts.Remove (codon.Name); break; } - }); + }); + + LoadDefaults (); } + public static FontDescription MonospaceFont { get { return defaultMonospaceFont; } } + public static FontDescription MonospaceSmallFont { get { return defaultMonospaceSmallFont; } } + public static FontDescription SansFont { get { return defaultSansFont; } } + public static FontDescription SansSmallFont { get { return defaultSansSmallFont; } } + + [Obsolete ("Use MonospaceFont")] public static FontDescription DefaultMonospaceFontDescription { get { - if (defaultMonospaceFontDescription == null) - defaultMonospaceFontDescription = LoadFont (DesktopService.DefaultMonospaceFont); - return defaultMonospaceFontDescription; + if (defaultMonospaceFont == null) + defaultMonospaceFont = LoadFont (DesktopService.DefaultMonospaceFont); + return defaultMonospaceFont; } } @@ -81,13 +140,17 @@ namespace MonoDevelop.Ide.Fonts public static string FilterFontName (string name) { - if (name == "_DEFAULT_MONOSPACE") - return DesktopService.DefaultMonospaceFont; - if (name == "_DEFAULT_SANS") { - var label = new Gtk.Label (""); - string result = label.Style.FontDescription.Family + " " + ((int)label.Style.FontDesc.Size / Pango.Scale.PangoScale); - label.Destroy (); - return result; + switch (name) { + case "_DEFAULT_MONOSPACE": + return defaultMonospaceFontName; + case "_DEFAULT_MONOSPACE_SMALL": + return defaultMonospaceSmallFontName; + case "_DEFAULT_SANS": + return defaultSansFontName; + case "_DEFAULT_SANS_SMALL": + return defaultSansSmallFontName; + default: + return name; } return name; } diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Components/LogView.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Components/LogView.cs index a19b4cc003..57901d5512 100644 --- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Components/LogView.cs +++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Components/LogView.cs @@ -204,7 +204,7 @@ namespace MonoDevelop.Ide.Gui.Components void UpdateCustomFont () { - textEditorControl.ModifyFont (IdeApp.Preferences.CustomOutputPadFont ?? FontService.DefaultMonospaceFontDescription); + textEditorControl.ModifyFont (IdeApp.Preferences.CustomOutputPadFont ?? FontService.MonospaceFont); } //mechanism to to batch copy text when large amounts are being dumped diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/CommonTextEditorOptions.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/CommonTextEditorOptions.cs index 0bd9c5c469..08637b370a 100644 --- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/CommonTextEditorOptions.cs +++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/CommonTextEditorOptions.cs @@ -40,7 +40,7 @@ namespace MonoDevelop.Ide.Gui public CommonTextEditorOptions () { PropertyService.PropertyChanged += PropertyServiceChanged; - base.FontName = PropertyService.Get ("FontName", MonoDevelop.Ide.DesktopService.DefaultMonospaceFont); + base.FontName = PropertyService.Get ("FontName", DesktopService.DefaultMonospaceFont); base.ColorScheme = IdeApp.Preferences.ColorScheme; FontService.RegisterFontChangedCallback ("Editor", UpdateFont); FontService.RegisterFontChangedCallback ("Editor(Gutter)", UpdateFont); diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/DesktopService.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/DesktopService.cs index fbc70fdd2c..2447032fa6 100644 --- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/DesktopService.cs +++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/DesktopService.cs @@ -89,10 +89,27 @@ namespace MonoDevelop.Ide { return PlatformService.GetApplications (filename); } + + [Obsolete ("Use FontService")] + internal static string DefaultMonospaceFont { + get { return PlatformService.DefaultMonospaceFont; } + } - public static string DefaultMonospaceFont { + internal static string DefaultFontMonospace { get { return PlatformService.DefaultMonospaceFont; } } + + internal static string DefaultFontMonospaceSmall { + get { return PlatformService.DefaultFontMonospaceSmall; } + } + + internal static string DefaultFontSans { + get { return PlatformService.DefaultFontSans; } + } + + internal static string DefaultFontSansSmall { + get { return PlatformService.DefaultFontSansSmall; } + } public static string PlatformName { get { return PlatformService.Name; } diff --git a/main/src/core/MonoDevelop.Ide/gtkrc.win32-xp b/main/src/core/MonoDevelop.Ide/gtkrc.win32-xp new file mode 100644 index 0000000000..0730ba1426 --- /dev/null +++ b/main/src/core/MonoDevelop.Ide/gtkrc.win32-xp @@ -0,0 +1,343 @@ +# Windows Theme for Xamarin composed by Lanedo GmbH +# Copyright 2012 Xamarin Inc. +# Authors: +# Christian Kellner <christian.kellner@lanedo.com> +# Carlos Garnacho <carlos.garnacho@lanedo.com> + +gtk-color-scheme = +"bg_color: #f5f5f5 +fg_color: #000 +base_color: #fff +text_color: #000 +selected_bg_color: #649dd6 +selected_fg_color: #fff +tooltip_bg_color: #fff9e5 +tooltip_fg_color: #000" + +gtk-button-images = 0 +gtk-menu-images = 0 +gtk-toolbar-style = 0 +gtk-enable-mnemonics = 1 +gtk-icon-sizes = "gtk-small-toolbar=16,16:gtk-large-toolbar=22,22" +gtk-toolbar-icon-size = large-toolbar +gtk-auto-mnemonics = 1 +gtk-alternative-button-order = 1 +gtk-error-bell = 0 +gtk-show-input-method-menu = 0 + +style "default" { + xthickness = 1 + ythickness = 1 + + ### colours + bg[NORMAL] = @bg_color + bg[PRELIGHT] = @bg_color + bg[SELECTED] = @selected_bg_color + bg[INSENSITIVE] = @bg_color + bg[ACTIVE] = @bg_color + + fg[NORMAL] = @fg_color + fg[PRELIGHT] = @fg_color + fg[SELECTED] = @selected_fg_color + fg[INSENSITIVE] = darker (@bg_color) + fg[ACTIVE] = @fg_color + + text[NORMAL] = @text_color + text[PRELIGHT] = @text_color + text[SELECTED] = @selected_fg_color + text[INSENSITIVE] = darker (@bg_color) + text[ACTIVE] = @text_color + + base[NORMAL] = @base_color + base[PRELIGHT] = @selected_bg_color + base[SELECTED] = @selected_bg_color + base[INSENSITIVE] = @bg_color + base[ACTIVE] = shade (1.3, @selected_bg_color) + + ### style properties + GtkWidget::new-tooltip-style = 1 + + GtkEntry::honors-transparent-bg-hint = 1 + GtkEntry::inner-border = { 2, 2, 2, 2 } + + GtkButton::child-displacement-x = 0 + GtkButton::child-displacement-y = 0 + GtkButton::default-border = { 0, 0, 0, 0 } + GtkButton::inner-border = { 2, 2, 2, 2 } + + GtkTreeView::odd-row-color = @base_color + + GtkScrolledWindow::scrollbar-spacing = 0 + GtkScale::slider-length = 14 + + GtkMenu::horizontal-padding = 3 + GtkMenu::vertical-padding = 3 + GtkMenuItem::horizontal-padding = 2 + GtkSeparatorMenuItem::horizontal-padding = 2 + + GtkTreeView::expander-size = 8 + GtkExpander::expander-size = 8 + GtkComboBox::arrow-size = 8 + + engine "xamarin" { + + arrowstyle = 2 + rgba = TRUE + roundness = 3 + glazestyle = 0 + + menustyle = 0 + menuitemstyle = 0 + menubaritemstyle = 0 + comboboxstyle = 1 + spinbuttonstyle = 1 + colorize_scrollbar = FALSE + progressbarstyle = 0 + trough_shades = { 0.842, 0.886 } + } +} + +style "wide" = "default" { + xthickness = 2 + ythickness = 2 +} + +style "wider" = "default" { + xthickness = 3 + ythickness = 3 +} + + +style "button" { + xthickness = 2 + ythickness = 1 + + engine "wimp" { + } +} + +style "menu" = "default" { + xthickness = 0 + ythickness = 0 + + engine "wimp" { + } +} + +style "menu-item" = "default" { + xthickness = 5 + ythickness = 3 + + engine "wimp" { + } +} + +style "toolbar" = "default" +{ + bg[NORMAL] = "#ddd" + engine "xamarin" { + toolbarstyle = 2 + } +} + +style "toolbar-button" +{ + engine "xamarin" { + contrast = 1.0 + focus_color = @bg_color + } +} + +style "tooltip" +{ + xthickness = 5 + ythickness = 5 + + fg[NORMAL] = @tooltip_fg_color + bg[NORMAL] = @tooltip_bg_color + + engine "xamarin" { + roundness = 0 + } +} + +style "treeview" = "default" +{ + GtkTreeView::odd-row-color = "#f5f5f5" + + base[SELECTED] = "#bcd0d4" + base[ACTIVE] = "#bcd0d4" + text[SELECTED] = "#000" + + engine "xamarin" { + roundness = 0 + gradient_shades = {1.0, 0.95, 0.95, 0.90} + glazestyle = 1 + } +} + +style "tree-header" = "wide" +{ + bg[NORMAL] = "#f2f2f2" + + engine "xamarin" { + listviewheaderstyle = 3 + separatorstyle = 1 + } +} + +style "icon-view" = "default" +{ + bg[SELECTED] = "#f5f7fa" + base[SELECTED] = "#f5f7fa" + fg[SELECTED] = "#000" + text[SELECTED] = "#000" +} + +style "toolbar-combo-box" = "default" +{ + fg[NORMAL] = @fg_color + text[NORMAL] = @fg_color + bg[NORMAL] = "#fff" + base[NORMAL] = "#fff" + + engine "wimp" { + comboboxstyle = 0 + arrowstyle = 2 + } +} + +style "combo-box" = "default" +{ + fg[NORMAL] = "#616161" + + engine "wimp" { + arrowstyle = 3 + } +} + +style "combo-box-label" = "combo-box" +{ + fg[NORMAL] = "#595959" +} + +style "notebook" = "default" +{ + GtkNotebook::tab-overlap = 1 + bg[ACTIVE] = @base_color + bg[NORMAL] = @base_color + + engine "xamarin" { + gradient_shades = { 0.945, 0.945, 0.945, 0.685 } + } +} + +style "radio-button" = "default" +{ + GtkCheckButton::indicator-size = 15 + text[NORMAL] = lighter (@text_color) + base[NORMAL] = @base_color + text[ACTIVE] = lighter(@text_color) +} + +style "check-box" = "default" +{ + GtkCheckButton::indicator-size = 15 + base[NORMAL] = "#f8f8f8" + text[NORMAL] = "#404040" + text[ACTIVE] = "#404040" +} + +style "entry" = "default" +{ + xthickness = 4 + ythickness = 4 + GtkEntry::inner-border = { 2, 2, 2, 2 } +} + +style "search-entry" = "wider" +{ + GtkEntry::inner-border = { 0, 0, 0, 0 } + xthickness = 6 + ythickness = 4 + bg[NORMAL] = @base_color +} + +style "scrollbar" = "default" +{ + GtkRange::slider-width = 7 + GtkRange::trough-border = 2 + + engine "wimp" { + } +} + +style "progressbar" = "default" +{ + bg[SELECTED] = "#62b3ec" + fg[SELECTED] = "#3a67a6" + xthickness = 0 + ythickness = 0 +} + +style "scrolled-window" = "default" +{ + xthickness = 1 + ythickness = 1 +} + +style "scale" = "default" +{ + engine "xamarin" { + roundness = 7 + } +} + +### Apply the styles +class "GtkWidget" style "default" + +class "GtkEntry" style "entry" +class "GtkSpinButton" style "wider" +class "GtkFrame" style "wide" +class "GtkRange" style "wide" +class "GtkSeparator" style "wide" +class "GtkScrollbar" style "scrollbar" +class "GtkProgressBar" style "progressbar" +class "GtkScrolledWindow" style "scrolled-window" +class "GtkNotebook" style "notebook" +class "GtkButton" style "button" + +class "GtkRadioButton" style "radio-button" +class "GtkCheckButton" style "check-box" +class "GtkScale" style "scale" + +widget "*GtkEntry" style:highest "entry" +widget "*search-entry*" style "search-entry" + +widget_class "*<GtkButton>" style "button" +widget "*.GtkToggleButton" style "button" + +widget_class "*<GtkMenu>*" style "menu" +widget_class "*<GtkMenuItem>*" style "menu-item" + +widget_class "*<GtkToolbar>*" style "toolbar" +widget_class "*ToolButton*" style "toolbar-button" + +widget_class "*.<GtkTreeView>*" style "treeview" +widget_class "*.GtkTreeView.GtkButton" style "tree-header" +widget_class "*.GtkList.GtkButton" style "tree-header" + +widget_class "*<GtkIconView>" style "icon-view" + +class "GtkComboBox" style "combo-box" +widget_class "*.<GtkComboBox>.*" style "combo-box" +widget_class "*.<GtkComboBoxText>.*" style "combo-box" +widget_class "*.<GtkComboBoxEntry>.*" style "combo-box" +widget_class "*.<GtkComboBoxText>.<GtkEntry>" style "entry" +widget_class "*.<GtkComboBox>.*.GtkLabel" style "combo-box-label" + +# Comboboxes within toolbars +widget_class "*.<GtkToolbar>.*.<GtkComboBox>.*" style "toolbar-combo-box" +widget "*MainToolbar*.GtkComboBox.*" style "toolbar-combo-box" + +widget "gtk-tooltip*" style "tooltip" |