diff options
author | David Robillard <d@drobilla.net> | 2015-01-09 20:05:06 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2015-01-09 20:05:06 +0000 |
commit | 4067bd81444736ddd7047210e2afdaaf9eaeaf40 (patch) | |
tree | 5cd70895cc5f4247996c321e044dfec7d063e9c7 /osx/gtkrc | |
parent | 1dff3fea90f2dc43a8bfc782eb88512344c1b5ae (diff) | |
download | patchage-4067bd81444736ddd7047210e2afdaaf9eaeaf40.tar.gz patchage-4067bd81444736ddd7047210e2afdaaf9eaeaf40.tar.bz2 patchage-4067bd81444736ddd7047210e2afdaaf9eaeaf40.zip |
Fix OSX integration.
git-svn-id: http://svn.drobilla.net/lad/trunk/patchage@5504 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'osx/gtkrc')
-rw-r--r-- | osx/gtkrc | 275 |
1 files changed, 224 insertions, 51 deletions
@@ -1,75 +1,248 @@ -# FIXME: What sizes should we have? -gtk-icon-sizes = "gtk-menu=16,16:gtk-small-toolbar=16,16:gtk-large-toolbar=24,24:gtk-dnd=32,32" -gtk-toolbar-icon-size = small-toolbar +gtk-color-scheme = +"bg_color: #f5f5f5 +fg_color: #000 +base_color: #fff +text_color: #000 +selected_bg_color: #0066FF +selected_fg_color: #fff +tooltip_bg_color: #fafaba +tooltip_fg_color: #000" + +gtk-button-images = 0 +gtk-menu-images = 0 +gtk-toolbar-style = 0 +gtk-enable-mnemonics = 0 +gtk-icon-sizes = "gtk-small-toolbar=16,16:gtk-large-toolbar=22,22" +gtk-toolbar-icon-size = large-toolbar +gtk-error-bell = 0 +gtk-show-input-method-menu = 0 + +style "default" +{ + 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) + + GtkWidget::interior-focus = 1 + GtkWidget::new-tooltip-style = 1 + GtkWidget::focus-line-width = 0 + GtkWidget::focus-padding = 0 + GtkButton::default-border = { 1, 1, 1, 1 } + GtkButton::default-outside-border = { 1, 1, 1, 1 } + GtkButton::child-displacement-x = 0 + GtkButton::child-displacement-y = 0 + GtkCheckButton::indicator-spacing = 3 + GtkSpinButton::shadow-type = out + GtkButtonBox::child-min-width = 70 + GtkButtonBox::child-min-height = 22 + GtkComboBox::appears-as-list = 0 + GtkComboBox::focus-on-click = 0 + GtkNotebook::tab-curvature = 4 + GtkNotebook::tab-overlap = 0 + GtkTreeView::allow-rules = 1 + GtkTreeView::expander-size = 14 + GtkToolbar::internal-padding = 3 + GtkExpander::expander-size = 14 + GtkScrolledWindow::scrollbar-spacing = 0 + GtkMenuItem::horizontal-padding = 8 + GtkMenu::vertical-padding = 4 + GtkMenuItem::horizontal-padding = 9 + GtkMenuItem::toggle-spacing = 0 + GtkSeparatorMenuItem::horizontal-padding = 2 + GtkSeparatorMenuItem::horizontal-padding = 2 + GtkScrollbar::min-slider-length = 10 + GtkScrollbar::has-forward-stepper = 1 + GtkScrollbar::has-backward-stepper = 0 + GtkScrollbar::has-secondary-forward-stepper = 0 + GtkScrollbar::has-secondary-backward-stepper = 1 + GtkRange::trough-border = 0 + GtkRange::stepper-spacing = 0 + GtkRange::stepper-size = 14 + GtkRange::trough-under-steppers = 1 + + engine "quartz" + { + buttontype = "aqua" + } +} + +style "wider" +{ + xthickness = 3 + ythickness = 3 +} + +style "scrolled-window" +{ + xthickness = 1 + ythickness = 1 +} + +style "menu" +{ + xthickness = 0 + ythickness = 0 + font_name = "Lucida Grande 14" + + bg[PRELIGHT] = @selected_fg_color + fg[PRELIGHT] = @selected_fg_color + text[PRELIGHT] = @selected_fg_color +} + +style "menu-item" = "menu" +{ + ythickness = 2 + GtkWidget::draw-border = { 0, 0, 0, 2 } +} + +style "menu-separator" = "menu-item" +{ + ythickness = 3 +} + +style "menu-bar" +{ + ythickness = 0 + xthickness = 0 +} + +style "treeview" +{ + GtkTreeView::odd-row-color = "#f5f5f5" + + base[SELECTED] = "#2b5dcd" + base[ACTIVE] = "#cacaca" + text[SELECTED] = "#FFF" + text[ACTIVE] = "#000" + + font_name = "Lucida Grande 12" -gtk_color_scheme = "fg_color:#000\nbg_color:ededed\nbase_color:#fff\ntext_color:#1A1A1A\nselected_bg_color:#86ABD9\nselected_fg_color:#fff\ntooltip_bg_color:#F5F5B5\ntooltip_fg_color:#000" + GtkWidget::focus-line-width = 0 + GtkWidget::draw-border = { 1, 1, 1, 1 } + GtkButton::inner-border = { 3, 3, 1, 3 } +} -gtk-button-images = 0 -gtk-menu-images = 0 -gtk-enable-mnemonics = 0 +style "tree-header" +{ + ythickness = 0 + bg[NORMAL] = "#f2f2f2" -style "quartz-default" + font_name = "Lucida Grande 11" +} + +style "tooltip" { - xthickness = 0 - ythickness = 0 + xthickness = 5 + ythickness = 5 - GtkWidget::interior-focus = 1 - GtkWidget::focus-line-width = 0 - GtkWidget::focus-padding = 0 + fg[NORMAL] = @tooltip_fg_color + bg[NORMAL] = @tooltip_bg_color +} - GtkButton::default-border = { 0, 0, 0, 0 } - GtkButton::default-outside-border = { 0, 0, 0, 0 } - GtkButton::child-displacement-x = 0 - GtkButton::child-displacement-y = 0 +style "scrollbar" +{ + GtkScrollbar::has-forward-stepper = 0 + GtkScrollbar::has-backward-stepper = 0 + GtkRange::slider-width = 15 + GtkRange::trough-border = 0 + GtkRange::trough-side-details = 0 +} - GtkCheckButton::indicator-spacing = 3 +style "button" +{ + xthickness = 2 + ythickness = 2 - #GtkOptionMenu::indicator-size = { 9, 5 } - #GtkOptionMenu::indicator-spacing = { 7, 5, 2, 2 } + bg[NORMAL] = @bg_color + bg[PRELIGHT] = shade(1.1, @bg_color) + bg[ACTIVE] = @bg_color + bg[INSENSITIVE] = @bg_color - # We have to set a shadow to get the whole box exposed - GtkSpinButton::shadow-type = out + GtkWidget::draw-border = { 2, 2, 2, 2 } + GtkWidget::focus-line-width = 1 +} - GtkComboBox::appears-as-list = 0 - GtkComboBox::focus-on-click = 0 +style "combo-box" +{ + fg[NORMAL] = "#616161" + #xthickness = 2 + #ythickness = 2 +} - GtkNotebook::tab-curvature = 4 - GtkNotebook::tab-overlap = 0 - - GtkTreeView::allow-rules = 1 - GtkTreeView::expander-size = 14 - GtkToolbar::internal-padding = 3 - GtkExpander::expander-size = 14 +style "combo-box-button" +{ + xthickness = 6 + ythickness = 2 - GtkScrolledWindow::scrollbar-spacing = 0 + bg[NORMAL] = @base_color + bg[PRELIGHT] = shade(1.1, @base_color) + bg[ACTIVE] = @base_color + bg[INSENSITIVE] = @base_color - #GtkMenuItem::toggle-spacing = ... - GtkMenuItem::horizontal-padding = 8 - GtkSeparatorMenuItem::horizontal-padding = 2 + GtkWidget::focus-padding = 0 +} - engine "quartz" - { - } +style "combo-box-label" = "combo-box" +{ + fg[NORMAL] = "#595959" } -class "*" style "quartz-default" -style "quartz-toolbar" +style "small-font" { - xthickness = 3 - ythickness = 3 + font_name = "Lucida Grande 11" } -widget_class "*Toolbar*" style "quartz-toolbar" -style "quartz-frame" +style "mini-font" { - xthickness = 2 - ythickness = 2 + font_name = "Lucida Grande 9" } -widget_class "*.<GtkFrame>" style "quartz-frame" -style "quartz-scrolled-window" +style "entry" { - xthickness = 2 - ythickness = 2 + xthickness = 2 + ythickness = 2 + GtkEntry::inner-border = { 2, 2, 2, 2 } + base[INSENSITIVE] = shade(1.02, @bg_color) } -widget_class "*.<GtkScrolledWindow>" style "quartz-scrolled-window" + +class "GtkWidget" style "default" +class "GtkMenuBar" style "menu-bar" +class "GtkScrolledWindow" style "scrolled-window" +class "GtkFrame" style "wider" +class "GtkScrollbar" style "scrollbar" +class "GtkEntry" style "entry" +class "GtkButton" style "button" + +widget "gtk-tooltip*" style "tooltip" +widget "*small-font*" style "small-font" +widget "*mini-font*" style "mini-font" + +widget_class "*<GtkMenu>*" style "menu" +widget_class "*<GtkMenuItem>*" style "menu-item" +widget_class "*<GtkSeparatorMenuItem>" style "menu-separator" +/*widget "*.gtk-combobox-popup-menu*" style "combo-box-menu"*/ +widget_class "*.<GtkTreeView>*" style "treeview" +widget_class "*.GtkTreeView.GtkButton" style "tree-header" +widget_class "*.<GtkComboBox>.*" style "combo-box" +widget_class "*.<GtkComboBoxText>.<GtkToggleButton>" style "combo-box-button" +widget_class "*.<GtkComboBoxEntry>.<GtkToggleButton>" style "combo-box-button" |