From f880291b8790d5267a83fedf9be9979f5b0cb7cf Mon Sep 17 00:00:00 2001 From: "Scott J. Miles" Date: Wed, 9 Oct 2013 13:57:13 -0700 Subject: [PATCH] separate `activeTheme` and `theme` concepts from theme-aware controls, so that an inherited theme is not expressed as an attribute --- polymer-ui-icon/polymer-ui-icon.html | 4 +-- polymer-ui-menu/polymer-ui-menu.html | 17 +++++----- polymer-ui-sidebar-menu/metadata.html | 4 +-- .../polymer-ui-theme-aware.html | 31 +++++++++++-------- 4 files changed, 31 insertions(+), 25 deletions(-) diff --git a/polymer-ui-icon/polymer-ui-icon.html b/polymer-ui-icon/polymer-ui-icon.html index 5309863..8e99673 100644 --- a/polymer-ui-icon/polymer-ui-icon.html +++ b/polymer-ui-icon/polymer-ui-icon.html @@ -136,10 +136,10 @@ this.style.backgroundImage = 'url(' + this.src + ')'; this.updateIcon(); }, - themeChanged: function(old) { + activeThemeChanged: function(old) { this.super(arguments); this.style.backgroundPosition = ''; - this.bx = calcThemeOffset(this.theme, this); + this.bx = calcThemeOffset(this.activeTheme, this); this.updateIcon(); }, updateIcon: function() { diff --git a/polymer-ui-menu/polymer-ui-menu.html b/polymer-ui-menu/polymer-ui-menu.html index b5b2cf0..ee0927d 100644 --- a/polymer-ui-menu/polymer-ui-menu.html +++ b/polymer-ui-menu/polymer-ui-menu.html @@ -57,22 +57,23 @@ - +