Skip to content
Browse files

Added extension "widescrollbars" to make the scrollbar easier to oper…

…ate on a touch screen
  • Loading branch information...
1 parent 1e7f193 commit 45ca9e9e3a51f5bcd16f850b22c6de1e8368c881 @kaihendry kaihendry committed May 7, 2013
View
3 etc/webc/extensions/scrollbars@kaply.com/chrome.manifest
@@ -0,0 +1,3 @@
+content scrollbars chrome/content/
+
+overlay chrome://browser/content/browser.xul chrome://scrollbars/content/scrollbars.xul
View
36 etc/webc/extensions/scrollbars@kaply.com/chrome/content/scrollbars.css
@@ -0,0 +1,36 @@
+scrollbar,
+scrollbarbutton,
+scrollbar thumb[orient="vertical"],
+scrollbar thumb[orient="horizontal"] {
+ -moz-appearance: none
+}
+
+scrollcorner {
+ background: darkgray;
+}
+
+scrollbar {
+ background: lightgray;
+}
+
+scrollbar thumb {
+ background-color: darkgray;
+ border-radius: 10px;
+ border: 1px solid black;
+}
+
+scrollbar thumb:hover {
+ background-color: darkgray;
+}
+
+scrollbar[orient="vertical"] {
+ width: 50px;
+}
+
+scrollbar[orient="horizontal"] {
+ height: 50px;
+}
+
+scrollbarbutton {
+ height: 50px;
+}
View
22 etc/webc/extensions/scrollbars@kaply.com/chrome/content/scrollbars.js
@@ -0,0 +1,22 @@
+Components.utils.import("resource://gre/modules/Services.jsm");
+
+(function () {
+ function startup()
+ {
+ var sheet = Services.io.newURI("chrome://scrollbars/content/scrollbars.css", null, null);
+ var sss = Components.classes["@mozilla.org/content/style-sheet-service;1"]
+ .getService(Components.interfaces.nsIStyleSheetService);
+ if (!sss.sheetRegistered(sheet,sss.AGENT_SHEET)) {
+ sss.loadAndRegisterSheet(sheet,sss.AGENT_SHEET);
+ }
+ window.removeEventListener("load", startup, false);
+ }
+
+ function shutdown()
+ {
+ window.removeEventListener("unload", shutdown, false);
+ }
+
+ window.addEventListener("load", startup, false);
+ window.addEventListener("unload", shutdown, false);
+})();
View
5 etc/webc/extensions/scrollbars@kaply.com/chrome/content/scrollbars.xul
@@ -0,0 +1,5 @@
+<?xml version="1.0"?>
+<overlay xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
+ xmlns:html="http://www.w3.org/1999/xhtml">
+ <script type="application/x-javascript;version=1.7" src="scrollbars.js"/>
+</overlay>
View
19 etc/webc/extensions/scrollbars@kaply.com/install.rdf
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:em="http://www.mozilla.org/2004/em-rdf#">
+ <Description about="urn:mozilla:install-manifest">
+ <em:id>scrollbars@kaply.com</em:id>
+ <em:type>2</em:type>
+ <em:name>Wide Scrollbars</em:name>
+ <em:version>0.1</em:version>
+ <em:creator>Michael Kaply</em:creator>
+ <em:contributor></em:contributor>
+ <em:description>Widen Your Firefox Scrollbars</em:description>
+ <em:targetApplication>
+ <Description>
+ <em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id> <!-- Firefox -->
+ <em:minVersion>3.0</em:minVersion>
+ <em:maxVersion>*</em:maxVersion>
+ </Description>
+ </em:targetApplication>
+ </Description>
+</RDF>
View
4 etc/webc/live-config.sh
@@ -107,6 +107,10 @@ for x in $( cmdline ); do
mount_git
;;
+ widescrollbars)
+ ln -s /etc/webc/extensions/scrollbars@kaply.com /opt/firefox/extensions/
+ ;;
+
support)
echo '*/5 * * * * root /sbin/support' > /etc/cron.d/webc-support
;;

0 comments on commit 45ca9e9

Please sign in to comment.
Something went wrong with that request. Please try again.