[gnome-shell-extensions/merged-classic-branches: 1/15] legacy-colors: New extension



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

    legacy-colors: New extension

 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   |   24 ++++++++++++++++++++++++
 5 files changed, 52 insertions(+), 2 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 9ac1e1a..902fd65 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 window-list"
+CLASSIC_EXTENSIONS="apps-menu places-menu alternate-tab default-min-max launch-new-instance legacy-colors static-workspaces window-list"
 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|window-list|windowsNavigator|workspace-indicator)
+		alternate-tab|alternative-status-menu|apps-menu|auto-move-windows|default-min-max|drive-menu|example|launch-new-instance|legacy-colors|native-window-placement|places-menu|static-workspaces|user-theme|window-list|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..289b980
--- /dev/null
+++ b/extensions/legacy-colors/stylesheet.css
@@ -0,0 +1,24 @@
+#panel {
+    background-color: #e9e9e9 !important;
+    background-gradient-direction: vertical;
+    background-gradient-end: #c0c0c0;
+}
+
+.panel-corner {
+    -panel-corner-background-color: #c0c0c0 !important;
+}
+
+.panel-button {
+    color: black !important;
+}
+
+.panel-button:hover,
+.panel-button:active,
+.panel-button:overview,
+.panel-button:focus {
+     text-shadow: rgba(255,255,255,.7) 0px 2px 2px !important;
+}
+
+.label-shadow {
+    color: rgba(255,255,255,.5) !important;
+}



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