From a5be309b16a8a3ce9d179ceb916ab57127ac402b Mon Sep 17 00:00:00 2001 From: Yvonne Yip Date: Wed, 16 Oct 2013 17:10:11 -0700 Subject: [PATCH] polymer-ui-icon: dark theme also gets the darker icon --- polymer-ui-icon/polymer-ui-icon.css | 2 +- polymer-ui-icon/polymer-ui-icon.html | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/polymer-ui-icon/polymer-ui-icon.css b/polymer-ui-icon/polymer-ui-icon.css index c0cae6a..a257af9 100644 --- a/polymer-ui-icon/polymer-ui-icon.css +++ b/polymer-ui-icon/polymer-ui-icon.css @@ -16,7 +16,7 @@ license that can be found in the LICENSE file. } .polymer-ui-light-icon, .polymer-ui-dark-theme { - background-position: -72px 0; + background-position: -24px 0; } .polymer-ui-icons { diff --git a/polymer-ui-icon/polymer-ui-icon.html b/polymer-ui-icon/polymer-ui-icon.html index 8e99673..558c690 100644 --- a/polymer-ui-icon/polymer-ui-icon.html +++ b/polymer-ui-icon/polymer-ui-icon.html @@ -156,6 +156,7 @@ if (themes[theme] === undefined) { var offset = parseFloat( getComputedStyle(node).backgroundPosition.split(' ').shift()); + console.log('calcThemeOffset', theme, offset) themes[theme] = offset; } return themes[theme];