changeset 0:d62ba69a5f90 default tip

Initial commit with code and sizing change, plus readme
author IBBoard <dev@ibboard.co.uk>
date Sat, 23 Mar 2013 20:27:54 +0000
parents
children
files README.md extension.js metadata.json stylesheet.css
diffstat 4 files changed, 31 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/README.md	Sat Mar 23 20:27:54 2013 +0000
@@ -0,0 +1,11 @@
+# Smaller Message Tray
+
+The Gnome Shell message tray in versions up to 3.6 were small and discrete.
+Gnome Shell 3.6 changed this by growing the notification are to 48px high.
+This extension halves the size of the height of the bar.
+
+Note: This extension will not resize the icons until the next shell restart
+after it is enabled. To force a restart press Alt+F2, type "r" and press enter.
+To make the icons big again, disable the extension and force a shell restart.
+
+Source: http://dev.ibboard.co.uk/repos/other/SmallerMessageTray/summary
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/extension.js	Sat Mar 23 20:27:54 2013 +0000
@@ -0,0 +1,16 @@
+const MessageTray = imports.ui.messageTray;
+
+let src;
+
+function init() {
+	src = MessageTray.Source.prototype;
+}
+
+function enable() {
+	src.__OLD_SOURCE_ICON_SIZE = src.SOURCE_ICON_SIZE
+	src.SOURCE_ICON_SIZE = 24
+}
+
+function disable() {
+	src.SOURCE_ICON_SIZE = src.__OLD_SOURCE_ICON_SIZE
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/metadata.json	Sat Mar 23 20:27:54 2013 +0000
@@ -0,0 +1,1 @@
+{"shell-version": ["3.6.3.1"], "uuid": "smaller.message.tray@ibboard.co.uk", "name": "Smaller Message Tray", "description": "Shrinks the message tray back to a pre-3.6 size"}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/stylesheet.css	Sat Mar 23 20:27:54 2013 +0000
@@ -0,0 +1,3 @@
+#message-tray {
+	height: 36px;
+}
\ No newline at end of file