Warning, /plasma/oxygen-gtk/rc/gtkrc is written in an unsupported language. File is not indexed.
0001 # this file is part of the oxygen gtk engine 0002 # SPDX-FileCopyrightText: 2010 Hugo Pereira Da Costa <hugo.pereira@free.fr> 0003 # SPDX-FileCopyrightText: 2010 Ruslan Kabatsayev <b7.10110111@gmail.com> 0004 # 0005 # based on the Null Theme Engine for Gtk+. 0006 # SPDX-FileCopyrightText: 2008 Robert Staudinger 0007 # 0008 # Icon rendering code from Walmis 0009 # <http://gnome-look.org/content/show.php?content=77783&forumpage=3> 0010 # SPDX-License-Identifier: LGPL-2.0-or-later 0011 0012 # oxygen's generic style options 0013 style "oxygen-default" 0014 { 0015 GtkPaned::handle-size = 3 0016 0017 GtkButton::child_displacement_x = 0 0018 GtkButton::child_displacement_y = 0 0019 GtkButton::default_border = { 0, 0, 0, 0 } 0020 GtkButton::default_outside_border = { 0, 0, 0, 0 } 0021 0022 GtkButton::inner-border = { 2, 2, 1, 0 } 0023 GtkToggleButton::inner-border = { 0, 0, 1, 0 } 0024 0025 GtkCalendar::inner-border = 0 0026 GtkCalendar::horizontal-separation = 0 0027 GtkCheckButton::indicator-size = 18 0028 GtkComboBox::appears-as-list = 1 0029 GtkEntry::honors-transparent-bg-hint = 1 0030 0031 GtkExpander::expander-size = 15 0032 0033 GtkMenu::horizontal-padding = 3 0034 GtkMenu::vertical-padding = 5 0035 GtkMenu::horizontal-offset = -7 0036 GtkMenuBar::internal-padding = 0 0037 GtkCheckMenuItem::indicator-size = 16 0038 0039 GtkScale::slider-width = 23 0040 GtkScale::slider-length = 21 0041 0042 GtkRange::activate-slider = 1 0043 0044 GtkScrollbar::trough-border=0 0045 GtkScrollbar::stepper-size=12 0046 GtkScrolledWindow::scrollbar-spacing=1 0047 GtkStatusbar::has-resize-grip = FALSE 0048 0049 GtkTreeView::allow-rules = 1 0050 GtkTreeView::row-ending-details = 1 0051 GtkTreeView::expander-size = 10 0052 GtkTreeView::vertical-separator = 0 0053 0054 # shadow types 0055 GtkMenuBar::shadow-type = GTK_SHADOW_NONE 0056 GtkStatusbar::shadow-type = GTK_SHADOW_NONE 0057 GtkToolbar::shadow-type = GTK_SHADOW_NONE 0058 0059 engine "oxygen-gtk" 0060 {} 0061 } 0062 0063 class "*" style "oxygen-default" 0064 0065 # force resize-handle size to zero 0066 style "oxygen-sizegrip" = "oxygen-default" 0067 { 0068 0069 GtkWindow::resize-grip-height = 0 0070 GtkWindow::resize-grip-width = 0 0071 } 0072 0073 class "GtkWidget" style "oxygen-sizegrip" 0074 0075 # menuitems padding 0076 style "oxygen-menubar" = "oxygen-default" 0077 { 0078 xthickness = 1 0079 ythickness = 1 0080 } 0081 0082 class "GtkMenuBar" style "oxygen-menubar" 0083 0084 # menuitems padding 0085 style "oxygen-menubaritem" = "oxygen-default" 0086 { 0087 xthickness = 3 0088 ythickness = 2 0089 } 0090 0091 style "oxygen-menuitem" = "oxygen-default" 0092 { 0093 xthickness = 1 0094 ythickness = 5 0095 } 0096 0097 style "oxygen-separator-menuitem" = "oxygen-default" 0098 { 0099 xthickness = 1 0100 ythickness = 1 0101 } 0102 0103 class "GtkMenuItem" style "oxygen-menubaritem" 0104 widget_class "*<GtkMenu>.<GtkMenuItem>" style "oxygen-menuitem" 0105 widget_class "*<GtkMenu>.<GtkSeparatorMenuItem>" style "oxygen-separator-menuitem" 0106 0107 # toolbuttons with menu 0108 style "oxygen-menutoolbutton" = "oxygen-default" 0109 { 0110 xthickness=1 0111 ythickness=1 0112 GtkButton::focus-padding=0 0113 GtkWidget::focus-line-width=0 0114 } 0115 0116 class "*GtkMenuToolButton" style "oxygen-menutoolbutton" 0117 widget_class "*.GtkMenuToolButton.*Box.GtkToggleButton" style "oxygen-menutoolbutton" 0118 0119 # icon views 0120 style "oxygen-iconview" = "oxygen-default" 0121 { GtkWidget::focus-line-width=0 } 0122 0123 class "GtkIconView" style "oxygen-iconview" 0124 0125 # notebook settings 0126 style "oxygen-notebook" = "oxygen-default" 0127 { 0128 xthickness = 4 0129 ythickness = 4 0130 } 0131 0132 class "GtkNotebook" style "oxygen-notebook" 0133 0134 # comboboxes 0135 style "oxygen-combobox" = "oxygen-default" 0136 { 0137 # must set combobox frame x thickness to 0, otherwise there 0138 # is a dead area between combobox text and button 0139 xthickness = 0 0140 ythickness = 2 0141 } 0142 0143 style "oxygen-combobox-frame" = "oxygen-default" 0144 { 0145 xthickness = 4 0146 ythickness = 4 0147 } 0148 0149 class "GtkComboBox" style "oxygen-combobox" 0150 widget_class "*<GtkComboBox>.<GtkFrame>" style "oxygen-combobox-frame" 0151 0152 # editable combobox margins 0153 style "oxygen-combobox-entry" = "oxygen-default" 0154 { 0155 xthickness = 1 0156 ythickness = 1 0157 } 0158 0159 class "GtkComboBoxEntry" style "oxygen-combobox-entry" 0160 0161 # GtkCombo 0162 style "oxygen-combo-button" = "oxygen-combobox-entry" 0163 { 0164 xthickness = 0 0165 ythickness = 2 0166 } 0167 0168 widget_class "*<GtkCombo>.<GtkButton>" style "oxygen-combo-button" 0169 0170 # option menu 0171 style "oxygen-option-menu" = "oxygen-default" 0172 { 0173 xthickness = 4 0174 ythickness = 0 0175 } 0176 0177 class "GtkOptionMenu" style "oxygen-option-menu" 0178 0179 # vertical separators need enough room 0180 style "oxygen-vseparator" = "oxygen-default" 0181 { 0182 xthickness = 3 0183 ythickness = 2 0184 } 0185 0186 class "GtkVSeparator" style "oxygen-vseparator" 0187 0188 # 2pixels thickness. 0189 style "oxygen-w2" = "oxygen-default" 0190 { 0191 xthickness = 2 0192 ythickness = 2 0193 } 0194 0195 class "GtkScrolledWindow" style "oxygen-w2" 0196 class "GtkViewport" style "oxygen-w2" 0197 class "GtkFrame" style "oxygen-w2" 0198 class "gtkmm__GtkSpinButton" style "oxygen-w2" 0199 0200 # 1pixels thickness. 0201 style "oxygen-progressbar" = "oxygen-default" 0202 { 0203 xthickness = 1 0204 ythickness = 0 0205 } 0206 class "GtkProgressBar" style "oxygen-progressbar" 0207 0208 # tree headers 0209 style "oxygen-header" = "oxygen-default" 0210 { 0211 xthickness = 2 0212 ythickness = 0 0213 } 0214 widget_class "*<GtkTreeView>.<GtkButton>" style "oxygen-header" 0215 widget_class "*<GtkList>.<GtkButton>" style "oxygen-header" 0216 widget_class "*GimpThumbBox*.<GtkEventBox>.<GtkVBox>.<GtkButton>" style "oxygen-header" 0217 0218 ############# 0219 # Workarounds 0220 # 0221 # # gimp 0222 # # this is commented, as it is apparently crashing for gimp-2.7 0223 # style "oxygen-gimp-scale" 0224 # { 0225 # # this ensures that toolpanels fonts in gimp is identical 0226 # # to default font (which otherwise is ugly 0227 # GimpDock::font-scale = 1.01 0228 # } 0229 # 0230 # class "*" style "oxygen-gimp-scale" 0231