From 9676f3f5b16b8f9e505973e7726985d07306b257 Mon Sep 17 00:00:00 2001 From: kkapsner Date: Fri, 15 May 2015 11:21:14 +0200 Subject: [PATCH] Changed preferencePane styling to self hosted module. --- canvasblocker.xpi | Bin 29288 -> 29718 bytes data/options.css | 16 ++++++++++++++++ lib/main.js | 1 + lib/stylePreferencePane.js | 33 +++++++++++++++++++++++++++++++++ package.json | 12 ++++-------- 5 files changed, 54 insertions(+), 8 deletions(-) create mode 100644 data/options.css create mode 100644 lib/stylePreferencePane.js diff --git a/canvasblocker.xpi b/canvasblocker.xpi index 8db8e3059efc1cd945e83c49109956121c4979af..df5676ba04f04fce166e815a06dc9cb3753de8d9 100644 GIT binary patch delta 10592 zcmZ{~byQqU_a)r8J2dX@uEB#l1P$&I8h2~lLjsKx+}$Ao8VwNK-GjS(fXVZG>;2Ze zGrzh2RGqqY&b3-~_C0$a?7*ZRz<@QB;o$KB001)J(V$jt-veyn0}B8w!UF(ke@E?| z+&#=49XZ^rY^*;RtFLh32kz^w62z1WE6$+WF`LKN;KI?tJ5Ez%@08qTE+z)fd{KQq zcmKu!+F~BR6u#enSRWcI`DGrlj7(qaAINzCGb~dqJznciV13fyji)LO=0_xq<;9rx$sFK_Z-F&Jhfvj0=Lr6w*V#ghMM>vhZNq)7ba4M2NCgP+l)HWUt&P^ znilK^^vQ-WXTqhpZtBY-N}<1WMKTH$o0x_^qKoPh7}z$Goy%BKV_b^bBBas0f3Id` ztsgH-vgZ2Z_ui+PB>E%H5qi$gGN;8tm!#72>re}PpTP5Ps;&_~z$|FVJL#t&`BG4f z=E2!&eS35Y&9N{i?X(WW2FtTbDOJ=!j(9?~ZwZDGqcA5uV=}#56?8Aoy5L^4($KWs zUCw&2SPVQ?d59ab=0a{jOAUvy?YlM~kaG>LlGub3@15%3bbC1em8ffs{OG>m=W~XT z;2uow{#eqFBsH=IwgeTwMrn}}O0;-wM(8GOW~pqU#Hb5j(i+lnUObc=DWO ziN-)8%uFuEM2^OMQXY3koq3Q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xqEwZ|E6x($e*=;OJ?GThj}rkLJ{`HdX)Xc8-r3eO1QK=Cy~z3U4*sYl+IB` z03SDA;Vyq=f zfs9oWFE2Ig#H|$rq)i-moeN&Y^SJIWS7?oPBVXc*)C7e$nfD6M^5mdtYk;jnO@3C* z5lbo>ChfRRczu0BW+9#M+Pat4SHoFy%XLnR9=CeuOvqYO^*5*Ieyy|-2%NWA#NbA; zgDmab%;gAwv@A{%kZe|V z>kAY=988<#ohN0NI)|ixs{dQG`K?_$UIx4*URL->{XVHOYE(H1Y8HD)+6_-HUBRFo zWnCs2s?*4a36x&@N^xY<;GNobhzGvB9Yd$_?+F^cW#Q@NmiNxqOBAqd78;YvnLn;x z$*ptX{vxdP^_@)17CcF5RNa}F(rf0IpB+In&&gltRyq<|+mW?QKF%_C5L#b^5$CxP z^?|KfxyrjZgzR8MzsXmE?$qy2zO*;_7=-+drjy2@^Jh|Xp_W5f9F}gE@EG_FIh3-S zeZ?!40#q`yj`_;*DEOTo8+~6S<;8(~ADmN}@TgNRu;xXn@RVGckJ7+)oL(zP!nkss zx3_K*_R(JTLLOB3ZGXgE<88ke_04S3uh3U3&`ewOaC{(^B-vjIRNnQO#2t-`QO6- z4O;w1NKN%Wu?w{S$z4F4-NEo5~zs>vucQ}LoV+#@Re<2Y6HrE_1DDvNch<_Y} z2)m#`cYJ~7U{M2Ms?ZJpcdz diff --git a/data/options.css b/data/options.css new file mode 100644 index 0000000..b219665 --- /dev/null +++ b/data/options.css @@ -0,0 +1,16 @@ +setting[pref-name="showNotifications"] { + border-bottom: 0px transparent none; + padding-top: 0.5em; +} +setting[pref-name="ignoreList"]{ + border-top: 0px transparent none; + padding-bottom: 0.5em; +} +setting[pref-name="showCallingFile"]{ + border-bottom: 0px transparent none; + padding-top: 0.5em; +} +setting[pref-name="showCompleteCallingStack"]{ + border-top: 0px transparent none; + padding-bottom: 0.5em; +} \ No newline at end of file diff --git a/lib/main.js b/lib/main.js index 752cf56..b4dd326 100644 --- a/lib/main.js +++ b/lib/main.js @@ -4,6 +4,7 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ (function(){ "use strict"; + require("./stylePreferencePane.js"); var self = require("sdk/self"); var pageMod = require("sdk/page-mod"); diff --git a/lib/stylePreferencePane.js b/lib/stylePreferencePane.js new file mode 100644 index 0000000..e96b082 --- /dev/null +++ b/lib/stylePreferencePane.js @@ -0,0 +1,33 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ +(function(){ + "use strict"; + const { Cu } = require('chrome'); + const { on } = require('sdk/system/events'); + const self = require('sdk/self'); + const { AddonManager } = Cu.import("resource://gre/modules/AddonManager.jsm"); + const { setTimeout } = require("sdk/timers"); + const { loadSheet } = require("sdk/stylesheet/utils"); + AddonManager.getAddonByID(self.id, function(addon){ + on('addon-options-displayed', onAddonOptionsDisplayed, true); + }); + + function onAddonOptionsDisplayed({ subject: doc, data }) { + if (data === self.id) { + loadSheet(doc.defaultView, self.data.url("options.css")); + + // need to wait unttil the simple-prefs are inserted in the DOM + setTimeout(function(){ + // replace empty menuitems with separators + [].slice.call(doc.querySelectorAll("menuitem[value='']")).forEach( + function(menuitem){ + var separator = doc.createElement("menuseparator"); + menuitem.parentNode.replaceChild(separator, menuitem); + } + ); + }, 1); + } + } + +}()); \ No newline at end of file diff --git a/package.json b/package.json index 997834e..73c322a 100644 --- a/package.json +++ b/package.json @@ -70,29 +70,25 @@ "name": "showNotifications", "title": "Show notifications", "type": "bool", - "value": true, - "style": "border-bottom: 0px transparent none; padding-top: 0.5em;" + "value": true }, { "name": "ignoreList", "title": "Ignore list", "type": "string", - "value": "", - "style": "border-top: 0px transparent none; padding-bottom: 0.5em;" + "value": "" }, { "name": "showCallingFile", "title": "Display calling file", "type": "bool", - "value": false, - "style": "border-bottom: 0px transparent none; padding-top: 0.5em;" + "value": false }, { "name": "showCompleteCallingStack", "title": "Display complete calling stack", "type": "bool", - "value": false, - "style": "border-top: 0px transparent none; padding-bottom: 0.5em;" + "value": false }, { "name": "allowPDFCanvas",