Skip to content

Commit a6994ee

Browse files
committed
Fix SSL icon color
FF 55 added -moz-context-properties extension to interact with SVG images. This is used upstream for the icon color.
1 parent 5796bc6 commit a6994ee

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

common/content/statusline.js

+4
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,10 @@ const StatusLine = Module("statusline", {
266266
let iconcolor = bbBackgroundLuminance < 128 ? "white" : "black";
267267
node.style.listStyleImage = node.style.listStyleImage.replace(/(#[\w-]+)(-white|-black)|(#[\w-]+)/, "$1$3-" + iconcolor);
268268

269+
if (services.get("vc").compare(VERSION, "56") >= 0) {
270+
node.style.fill = window.getComputedStyle(document.getElementById("liberator-status")).getPropertyValue("color");
271+
}
272+
269273
node.style.visibility = "visible";
270274

271275
var tooltip = conn_icon.tooltipText;

common/skin/liberator.css

+1
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@
142142
height: 16px;
143143
visibility: collapse;
144144
-moz-image-region: rect(0, 16px, 16px, 0);
145+
-moz-context-properties: fill;
145146
}
146147
#liberator-status-ssl.verifiedIdentity {
147148
visibility: visible;

0 commit comments

Comments
 (0)