[gnome-themes-standard] Add beginning of CSS theme
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-themes-standard] Add beginning of CSS theme
- Date: Mon, 6 Dec 2010 21:22:15 +0000 (UTC)
commit 652b3bfdf7894a0bb60083a59e4c5e99a69a7aac
Author: Carlos Garnacho <carlosg gnome org>
Date: Wed Nov 17 03:01:35 2010 +0100
Add beginning of CSS theme
some refinement is due.
themes/Adwaita/gtk-3.0/Makefile.am | 2 +-
themes/Adwaita/gtk-3.0/gtk.css | 297 ++++++++++++++++++++++++++++++++++++
2 files changed, 298 insertions(+), 1 deletions(-)
---
diff --git a/themes/Adwaita/gtk-3.0/Makefile.am b/themes/Adwaita/gtk-3.0/Makefile.am
index dbbee6f..4649a46 100644
--- a/themes/Adwaita/gtk-3.0/Makefile.am
+++ b/themes/Adwaita/gtk-3.0/Makefile.am
@@ -1,5 +1,5 @@
themedir = $(datadir)/themes/Adwaita/gtk-3.0
-theme_DATA = gtkrc
+theme_DATA = gtk.css
EXTRA_DIST = $(theme_DATA)
diff --git a/themes/Adwaita/gtk-3.0/gtk.css b/themes/Adwaita/gtk-3.0/gtk.css
new file mode 100644
index 0000000..0f1cc87
--- /dev/null
+++ b/themes/Adwaita/gtk-3.0/gtk.css
@@ -0,0 +1,297 @@
+/* Default color scheme */
+ define-color base_color #ffffff;
+ define-color bg_color #ededed;
+ define-color tooltip_bg_color #343434;
+ define-color selected_bg_color #4a90d9;
+ define-color text_color #2e3436;
+ define-color fg_color #2e3436;
+ define-color tooltip_fg_color #ffffff;
+ define-color selected_fg_color #ffffff;
+ define-color link_color #4a90d9;
+ define-color frame_color #8a9580;
+ define-color inactive_frame_color #c7ccc1;
+ define-color warning_color #f57900;
+ define-color error_color #cc0000;
+ define-color success_color #4e9a06;
+
+* {
+ font: Droid Sans;
+ engine: clearlooks;
+ padding: 1;
+
+ /* Style properties */
+ -GtkButton-child-displacement-x: 1;
+ -GtkButton-child-displacement-y: 1;
+ -GtkButton-default-border: 0;
+ -GtkButton-image-spacing: 4;
+ -GtkToolButton-icon-spacing: 4;
+
+ -GtkCheckButton-indicator-size: 14;
+
+ -GtkTextView-error-underline-color: #cc0000;
+
+ -GtkPaned-handle-size: 6;
+
+ /* The size for scrollbars. The slider is 2px smaller, but we keep it
+ * up so that the whole area is sensitive to button presses for the
+ * slider. The stepper button is larger in both directions, the slider
+ * only in the width
+ */
+ -GtkRange-stepper-position-details: 1;
+ -GtkRange-trough-border: 0;
+ -GtkRange-slider-width: 20;
+ -GtkRange-stepper-size: 20;
+
+ -GtkScale-slider-length: 15;
+ -GtkScale-slider-width: 21;
+ -GtkScale-trough-side-details: 1;
+
+ -GtkScrollbar-min-slider-length: 30;
+ -GtkMenuBar-internal-padding: 0;
+ -GtkExpander-expander-size: 16; /* ??? */
+ -GtkToolbar-internal-padding: 4; /* ??? */
+ -GtkTreeView-expander-size: 14; /* ??? */
+ -GtkTreeView-vertical-separator: 0; /* ??? */
+
+ -GtkScrolledWindow-scrollbar-spacing: 0;
+ -GtkScrolledWindow-scrollbars-within-bevel: 1;
+
+ -GtkMenu-horizontal-padding: 0;
+ -GtkMenu-vertical-padding: 0;
+
+ -GtkWidget-link-color: @link_color;
+ -GtkWidget-visited-link-color: @link_color;
+ -GtkIMHtml-hyperlink-color: @link_color;
+ -GtkHTML-link-color: @link_color;
+
+ -WnckTasklist-fade-overlay-rect: 0;
+
+ -NautilusIconContainer-selection-box-color: @selected_bg_color;
+ -NautilusIconContainer-dark-info-color: shade (@selected_bg_color, 0.6);
+ -NautilusIconContainer-light-info-color: shade (@selected_fg_color, 0.6);
+ -NautilusIconContainer-prelight-icon-color: #ffffff;
+ -NautilusIconContainer-prelight-icon-brightness: 255;
+ -NautilusIconContainer-selection-box-alpha: 0x40;
+ -NautilusIconContainer-selection-highlight-alpha: 0x00;
+
+ -GtkEntry-inner-border: 3;
+ -GtkEntry-progress-border: 0;
+
+ -GtkNotebook-tab-overlay: 10;
+ -GtkNotebook-tab-curvature: 5;
+
+ -GtkSeparatorToolItem-shadow-type: none;
+
+ /* Style */
+ background-color: @bg_color;
+ foreground-color: @fg_color;
+ border-radius: 3;
+
+ /* Engine settings */
+ -clearlooks-colorize-scrollbar: false;
+ -clearlooks-style: gnome3;
+ -clearlooks-accel-label-shade: 0.5;
+}
+
+*:hover {
+ background-color: shade (@bg_color, 1.02);
+}
+
+*:selected {
+ background-color: @selected_bg_color;
+ color: @selected_fg_color;
+}
+
+*:insensitive {
+ background-color: shade (@bg_color, 1.07);
+ color: darker (@bg_color);
+}
+
+*:active {
+ background-color: shade (@bg_color, 0.915);
+}
+
+.entry {
+ padding: 2;
+ background-color: @base_color;
+ color: shade (@selected_bg_color, 1.2);
+}
+
+.entry:selected {
+ background-color: @selected_bg_color;
+ color: @selected_fg_color;
+}
+
+.entry:prelight {
+ background-color: shade (@bg_color, 0.95);
+}
+
+.entry:insensitive {
+ background-color: shade (@bg_color, 1.07);
+ color: shade (@bg_color, 0.75);
+}
+
+GtkFrame,
+GtkCalendar,
+GtkScale {
+ padding: 2;
+}
+
+.cell {
+ background-color: @base_color;
+ foreground-color: @text_color;
+}
+
+.cell:selected {
+ background-color: @selected_bg_color;
+}
+
+.notebook {
+ background-color: shade (@bg_color, 1.12);
+ padding: 3;
+}
+
+GtkScrollbar {
+ padding: 2;
+ background-color: @base_color;
+ color: mix (@bg_color, @fg_color, 0.6);
+}
+
+.button {
+ padding: 3;
+ -clearlooks-focus-color: mix (@bg_color, @selected_bg_color, 0.5);
+ -clearlooks-focus-fill-color: @selected_bg_color;
+ -clearlooks-focus-fill-alpha: 0.05;
+}
+
+GtkStatusbar {
+ padding: 5;
+ color: @fg_color;
+ -GtkStatusbar-shadow-type: none;
+}
+
+GtkStatusbar * {
+ padding: 50;
+}
+
+.menubar {
+ padding: 0;
+ background-image: -gtk-gradient (linear,
+ left top, left bottom,
+ from (shade (@bg_color, 0.94)),
+ to (@bg_color));
+}
+
+.menu {
+ padding: 4 0;
+ background-color: @bg_color;
+ border-radius: 0;
+ -GtkMenu-vertical-offset: 0;
+ -GtkMenu-horizontal-offset: -1;
+}
+
+.menuitem {
+ -GtkMenuItem-arrow-scaling: 0.4;
+}
+
+.menuitem:hover {
+ background-color: @selected_fg_color;
+}
+
+.menu.separator {
+ padding: 1 0;
+ -GtkSeparatorMenuItem-horizontal-padding: 0;
+ -GtkWidget-wide-separators: 1;
+ -GtkWidget-separator-width: 1;
+ -GtkWidget-separator-height: 7;
+}
+
+.toolbar.separator {
+ padding: 1 0;
+ background-color: shade (@bg_color, 0.8);
+ -GtkVSeparator-vertical-padding: 0;
+ -GtkWidget-wide-separators: 1;
+ -GtkWidget-separator-width: 7;
+ -GtkWidget-separator-height: 1;
+}
+
+.frame GtlLabel.header {
+ color: lighter (@fg_color);
+}
+
+.progressbar {
+ padding: 0;
+ radius: 3;
+}
+
+column-header {
+ padding: 1 2;
+}
+
+.tooltips {
+ padding: 4 4;
+ background-color: @tooltip_bg_color;
+ color: @tooltip_fg_color;
+}
+
+.toolbar {
+ background-image: -gtk-gradient (linear,
+ left top,
+ left bottom,
+ from (shade (@bg_color, 0.6)),
+ color-stop (0.02, shade (@bg_color, 0.6)),
+ color-stop (0.03, shade (@bg_color, 0.7)),
+ color-stop (0.2, shade (@bg_color, 0.75)),
+ color-stop (0.8, shade (@bg_color, 0.8)),
+ color-stop (0.96, shade (@bg_color, 0.95)),
+ color-stop (0.97, shade (@bg_color, 0.8)),
+ color-stop (0.98, shade (@bg_color, 1.2)),
+ to (shade (@bg_color, 1.2)));
+ border-radius: 0;
+}
+
+.toolbar .button {
+ background-image: -gtk-gradient (linear,
+ left top, left bottom,
+ from (shade (@bg_color, 0.75)),
+ color-stop (0.3, shade (@bg_color, 0.9)),
+ color-stop (0.6, shade (@bg_color, 0.9)),
+ to (shade (@bg_color, 0.85)));
+}
+
+GtkSeparator {
+ -GtkSeparator-shadow-type: none;
+}
+
+GtkInfobar {
+ background-color: #ffffff;
+}
+
+/* Custom colors for some applications' widgets */
+#nautilus-extra-view-widget {
+ background-color: mix (shade (@bg_color, 1.05), @selected_bg_color, 0.60);
+}
+
+EvView, /* Evince */
+ApDocView, /* Abiword */
+EogScrollView, /* Eog */
+CheeseThumbView /* Cheese */
+{
+ background-color: #1e1a17;
+ -EogScrollView-shadow-type: none;
+}
+
+/* gnome-terminal */
+TerminalScreen {
+ background-color: #1e1a17;
+ color: #ffffff;
+ -TerminalScreen-background-darkness: 0.95;
+}
+
+/* For old gnome-panel */
+PanelWidget,
+PanelApplet,
+PanelToplevel {
+ background-color: #1e1a17;
+ color: #fff;
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]