[gnome-shell-extensions/legacy-colors: 1/5] legacy-colors: New extension



commit 21a281d06c4598b18b6c46154ac07e05d70d124d
Author: Florian MÃllner <fmuellner gnome org>
Date:   Fri Jan 18 16:34:21 2013 +0100

    legacy-colors: New extension
    
    https://bugzilla.gnome.org/show_bug.cgi?id=693169

 configure.ac                              |    5 +-
 extensions/legacy-colors/Makefile.am      |    3 +
 extensions/legacy-colors/extension.js     |   12 ++++
 extensions/legacy-colors/metadata.json.in |   10 ++++
 extensions/legacy-colors/stylesheet.css   |   83 +++++++++++++++++++++++++++++
 5 files changed, 111 insertions(+), 2 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 536ba3d..199b1c0 100644
--- a/configure.ac
+++ b/configure.ac
@@ -27,7 +27,7 @@ fi
 AC_SUBST([SHELL_VERSION])
 
 dnl keep this in alphabetic order
-CLASSIC_EXTENSIONS="apps-menu places-menu alternate-tab default-min-max launch-new-instance static-workspaces"
+CLASSIC_EXTENSIONS="apps-menu places-menu alternate-tab default-min-max launch-new-instance legacy-colors static-workspaces"
 DEFAULT_EXTENSIONS="$CLASSIC_EXTENSIONS alternative-status-menu drive-menu windowsNavigator workspace-indicator"
 ALL_EXTENSIONS="$DEFAULT_EXTENSIONS auto-move-windows example native-window-placement systemMonitor user-theme xrandr-indicator"
 AC_SUBST(CLASSIC_EXTENSIONS, [$CLASSIC_EXTENSIONS])
@@ -71,7 +71,7 @@ for e in $enable_extensions; do
 					[AC_MSG_WARN([gnome-desktop-3.0 not found, disabling xrandr-indicator])])
 			;;
 dnl		keep this in alphabetic order
-		alternate-tab|alternative-status-menu|apps-menu|auto-move-windows|default-min-max|drive-menu|example|launch-new-instance|native-window-placement|places-menu|static-workspaces|user-theme|windowsNavigator|workspace-indicator)
+		alternate-tab|alternative-status-menu|apps-menu|auto-move-windows|default-min-max|drive-menu|example|launch-new-instance|native-window-placement|legacy-colors|places-menu|static-workspaces|user-theme|windowsNavigator|workspace-indicator)
 			ENABLED_EXTENSIONS="$ENABLED_EXTENSIONS $e"
 			;;
 		*)
@@ -94,6 +94,7 @@ AC_CONFIG_FILES([
   extensions/launch-new-instance/Makefile
   extensions/native-window-placement/Makefile
   extensions/places-menu/Makefile
+  extensions/legacy-colors/Makefile
   extensions/static-workspaces/Makefile
   extensions/systemMonitor/Makefile
   extensions/user-theme/Makefile
diff --git a/extensions/legacy-colors/Makefile.am b/extensions/legacy-colors/Makefile.am
new file mode 100644
index 0000000..d46da9a
--- /dev/null
+++ b/extensions/legacy-colors/Makefile.am
@@ -0,0 +1,3 @@
+EXTENSION_ID = legacy-colors
+
+include ../../extension.mk
diff --git a/extensions/legacy-colors/extension.js b/extensions/legacy-colors/extension.js
new file mode 100644
index 0000000..cb8907e
--- /dev/null
+++ b/extensions/legacy-colors/extension.js
@@ -0,0 +1,12 @@
+const Main = imports.ui.main;
+
+function init() {
+}
+
+function enable() {
+    Main.loadTheme();
+}
+
+function disable() {
+    Main.loadTheme();
+}
diff --git a/extensions/legacy-colors/metadata.json.in b/extensions/legacy-colors/metadata.json.in
new file mode 100644
index 0000000..daee818
--- /dev/null
+++ b/extensions/legacy-colors/metadata.json.in
@@ -0,0 +1,10 @@
+{
+"extension-id": "@extension_id@",
+"uuid": "@uuid@",
+"settings-schema": "@gschemaname@",
+"gettext-domain": "@gettext_domain@",
+"name": "Recolor Top Bar",
+"description": "Change the color of the top bar",
+"shell-version": [ "@shell_current@" ],
+"url": "@url@"
+}
diff --git a/extensions/legacy-colors/stylesheet.css b/extensions/legacy-colors/stylesheet.css
new file mode 100644
index 0000000..df4bbff
--- /dev/null
+++ b/extensions/legacy-colors/stylesheet.css
@@ -0,0 +1,83 @@
+/* FIXME:
+   - panel should be black and/or more subtle in :overview
+   - white edge highlight with text-shadow and icon-shadow for panel-button
+   - better shading of the panel (dark 5%) - impossible without multipoint gradients, image-bg is a hack
+   - ON/OFF svg widgets. Can they be placed inside the extension dir?
+   - calendar dropdown colors
+   - bubble menus: separators
+   - submenus (network, ...)
+   - startup notification spinner
+*/
+
+#panel {
+    background-color: #e9e9e9 !important;
+    background-gradient-direction: vertical;
+    background-gradient-end: #d0d0d0;
+    border-top-color: #ddd; /* we don't support non-uniform border-colors and
+                               use the top border color for any border, so we
+                               need to set it even if all we want is a bottom
+                               border */
+    border-bottom: 1px solid #ddd;
+
+/* hrm, still no multipoint gradients
+    background-image: linear-gradient(left, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1) 50%, rgba(255, 255, 255, 0)) !important;*/
+}
+
+.panel-corner,
+.panel-corner:active,
+.panel-corner:overview,
+.panel-corner:focus {
+    -panel-corner-radius: 0 !important;
+}
+
+.panel-button {
+    color: #555 !important;
+    -natural-hpadding: 6px !important;
+    -minimum-hpadding: 3px !important;
+  }
+
+  .panel-button:hover {
+    color: #000 !important;
+  }
+
+  .panel-button > .system-status-icon {
+    icon-shadow: #fff 0 1px 0 !important; /* FIXME */
+  }
+
+  .panel-button:hover,
+  .panel-button:active,
+  .panel-button:overview,
+  .panel-button:focus {
+    text-shadow: 0 0 0 transparent !important; /* FIXME: why can't I do none ? */
+  }
+
+  .panel-button:active,
+  .panel-button:overview,
+  .panel-button:focus {
+     background-color: #4a90d9 !important; /* FIXME */
+     color: #fff !important;
+     border: none !important;
+     border-image: none !important;
+     background-image: none !important;
+  }
+
+  #panelUserMenu {
+    padding: 0 10px 0 10px !important;
+  }
+
+  #appMenu {
+    text-shadow: 0 0 0 transparent !important;
+  }
+
+  /* used for the app menu header only */
+  .label-shadow {
+      color: rgba(0,0,0,0.5);
+  }
+
+.label-shadow {
+    color: rgba(255,255,255,.5) !important;
+}
+  .panel-button:active .label-shadow,
+  .panel-button:focus .label-shadow {
+    color: rgba(0,0,0,.5) !important;
+  }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]