Skip to content

Instantly share code, notes, and snippets.

@jnbek
Created May 8, 2011 18:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jnbek/961591 to your computer and use it in GitHub Desktop.
Save jnbek/961591 to your computer and use it in GitHub Desktop.
my gtkrc-3.0
/*
* this file is part of the oxygen gtk engine
* Copyright (c) 2010 Hugo Pereira Da Costa <hugo@oxygen-icons.org>
* Copyright (c) 2010 Ruslan Kabatsayev <b7.10110111@gmail.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or( at your option ) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
* MA 02110-1301, USA.
*/
/*
INFO: css border and padding ordering is either:
- all-sides;
- top/bottom left/right;
- top left/right bottom;
- top right bottom left;
*/
* {
color: #FEFEFE;
-GtkPaned-handle-size: 3;
-GtkButton-child_displacement_x: 0;
-GtkButton-child_displacement_y: 0;
-GtkButton-default_border: 0;
-GtkButton-default_outside_border: 0;
-GtkButton-inner-border: 1 2 0;
-GtkCalendar-inner-border: 0;
-GtkCalendar-horizontal-separation: 0;
-GtkComboBox-appears-as-list: 1;
-GtkMenu-horizontal-padding: 3;
-GtkMenu-vertical-padding: 5;
-GtkMenu-horizontal-offset: -7;
-GtkScrolledWindow-scrollbar-spacing:1;
-GtkCheckButton-indicator-size: 18;
-GtkCheckMenuItem-indicator-size: 16;
-GtkExpander-expander-size: 15;
-GtkTreeView-expander-size: 15;
-GtkTreeView-allow-rules: 1;
-GtkStatusbar-shadow-type: GTK_SHADOW_NONE;
-GtkWindow-resize-grip-height: 0;
-GtkWindow-resize-grip-width: 0;
/*
Apparently the following have become obsolete
-GtkTreeView-row-ending-details: 1;
-GtkStatusbar-has-resize-grip: false;
-GtkEntry-honors-transparent-bg-hint: 1;
*/
engine: oxygen-gtk;
theme: oxygen-gtk;
}
GtkScrolledWindow { border-width: 1; }
/* customize border styles */
.toolbar { border-style: none; }
.menubar { border-style: none; }
GtkStatusBar { border-style: none; }
/*
TODO:
look at default values from GtkCssProvider for better style definitions
(class based, rather than widget based)
*/
/* specialization of default widgets style properties */
GtkToggleButton { -GtkButton-inner-border: 1 0 0; }
GtkScale {
-GtkRange-slider-width: 23;
-GtkScale-slider-length: 21;
}
GtkScrollbar {
-GtkRange-stepper-size:12;
-GtkRange-trough-border:1;
}
/* entries */
/* do not change unless also changing Entry_SideMargin in OxygenStyle.h */
GtkEntry {
padding: 1 5;
border-width: 2 5;
}
/* menuitems padding */
GtkMenuBar { padding: 1; }
GtkMenuItem { padding: 0 3; }
GtkMenu>GtkMenuItem { padding: 5 1; }
GtkMenu>GtkSeparatorMenuItem { padding: 1 1; }
/* menu toolbutton */
GtkMenuToolButton, GtkMenuToolButton * {
border-width: 0;
-GtkButton-focus-padding: 0;
-GtkWidget-focus-line-width: 0;
}
/* notebooks */
GtkNotebook { padding: 4; }
/* option menu */
GtkOptionMenu { padding: 0 4; }
/* separators */
GtkSeparator { border-width: 3; }
/* frames */
GtkFrame { padding: 1; }
GtkScrolledWindow { padding: 1; }
GtkViewport { padding: 1; }
GtkProgressBar { padding: 0; }
/* combo boxes */
GtkComboBox { border-width: 1 0; }
GtkComboBox>GtkFrame { border-width: 4; }
GtkComboBox>GtkEntry {
padding: 4 5;
border-width: 2 5;
}
/* headers */
GtkTreeView>GtkButton { border-width: 0 2; }
GtkList>GtkButton { border-width: 0 2; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment