mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-17 19:08:18 -07:00
update theme
This commit is contained in:
parent
1ac9bfe5aa
commit
4670ba6fbf
@ -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"
|
||||
}
|
@ -136,7 +136,6 @@
|
||||
}
|
||||
|
||||
.libraryMenuButtonText {
|
||||
color: #fff !important;
|
||||
text-decoration: none;
|
||||
font-weight: 400 !important;
|
||||
font-size: 15px;
|
||||
|
@ -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;
|
||||
|
@ -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();
|
||||
}
|
||||
|
BIN
dashboard-ui/themes/halloween/bg.jpg
Normal file
BIN
dashboard-ui/themes/halloween/bg.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 133 KiB |
25
dashboard-ui/themes/halloween/style.css
Normal file
25
dashboard-ui/themes/halloween/style.css
Normal 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;
|
||||
}
|
20
dashboard-ui/themes/halloween/theme.js
Normal file
20
dashboard-ui/themes/halloween/theme.js
Normal 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]);
|
||||
}
|
||||
|
||||
})();
|
Loading…
Reference in New Issue
Block a user