update theme

This commit is contained in:
Luke Pulverenti 2015-10-13 02:31:20 -04:00
parent 1ac9bfe5aa
commit 4670ba6fbf
7 changed files with 66 additions and 5 deletions

View File

@ -31,14 +31,14 @@
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0",
"iron-test-helpers": "PolymerElements/iron-test-helpers#^1.0.0"
},
"homepage": "https://github.com/PolymerElements/paper-ripple",
"homepage": "https://github.com/polymerelements/paper-ripple",
"_release": "1.0.3",
"_resolution": {
"type": "version",
"tag": "v1.0.3",
"commit": "c6e9664ca79c74bbd4219077438c4d163d6be962"
},
"_source": "git://github.com/PolymerElements/paper-ripple.git",
"_source": "git://github.com/polymerelements/paper-ripple.git",
"_target": "^1.0.0",
"_originalSource": "PolymerElements/paper-ripple"
"_originalSource": "polymerelements/paper-ripple"
}

View File

@ -136,7 +136,6 @@
}
.libraryMenuButtonText {
color: #fff !important;
text-decoration: none;
font-weight: 400 !important;
font-size: 15px;

View File

@ -8,6 +8,7 @@
-o-transition: all 500ms ease;
-ms-transition: all 500ms ease;
transition: all 500ms ease;
color: inherit!important;
}
.tileItem .starRating {
@ -43,7 +44,6 @@
.tileContent {
display: inline-block;
padding-left: 10px;
color: #fff;
text-align: left;
vertical-align: top;
overflow: hidden;

View File

@ -1935,6 +1935,21 @@ var AppInfo = {};
}
}
function loadTheme() {
var name = getParameterByName('theme');
if (name) {
require(['themes/' + name + '/theme']);
return;
}
var date = new Date();
if (date.getMonth() == 9 && date.getDate() == 31) {
require(['themes/halloween/theme']);
return;
}
}
function onDocumentReady() {
// Do these now to prevent a flash of content
@ -1947,6 +1962,8 @@ var AppInfo = {};
}
}
loadTheme();
if ($.browser.safari && $.browser.mobile) {
initFastClick();
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 133 KiB

View File

@ -0,0 +1,25 @@
.ui-body-b h1, .ui-body-b h2 {
color: #FF9100;
}
.viewMenuBar, .barsMenuButton {
color: #FF9100 !important;
}
.libraryViewNav .ui-btn-active {
border-bottom-color: #FF9100 !important;
color: #FF9100 !important;
}
paper-button[raised].more {
background: #FF9100;
}
.channelTimeslotHeader, .timeslotHeader {
background: #FF9100;
}
.channelTimeslotHeader {
border-right-color: #FF9100;
}

View File

@ -0,0 +1,20 @@
(function () {
Dashboard.importCss('themes/halloween/style.css');
function onPageShow() {
var page = this;
if (!$.browser.mobile) {
Backdrops.setBackdropUrl(page, 'themes/halloween/bg.jpg');
}
}
pageClassOn('pageshow', "libraryPage", onPageShow);
if ($($.mobile.activePage)[0].classList.contains('libraryPage')) {
onPageShow.call($($.mobile.activePage)[0]);
}
})();