diff --git a/dashboard-ui/bower_components/material-design-lite/material.css b/dashboard-ui/bower_components/material-design-lite/material.css index 8dd484b8f6..a1870886e5 100644 --- a/dashboard-ui/bower_components/material-design-lite/material.css +++ b/dashboard-ui/bower_components/material-design-lite/material.css @@ -1,4 +1,4 @@ -/** +/** * material-design-lite - Material Design Components in CSS, JS and HTML * @version v1.1.2 * @license Apache-2.0 @@ -9384,8 +9384,7 @@ _:-ms-input-placeholder, :root .mdl-slider.mdl-slider.is-upgraded { align-items: flex-start; height: 48px; padding: 0 0 0 0; - margin: 0; - border-bottom: 1px solid rgb(224,224,224); } + margin: 0;} .mdl-tabs__tab { margin: 0; @@ -9398,8 +9397,7 @@ _:-ms-input-placeholder, :root .mdl-slider.mdl-slider.is-upgraded { height: 48px; line-height: 48px; text-align: center; - font-weight: 500; - font-size: 14px; + font-weight: 400; text-transform: uppercase; color: rgba(0,0,0, 0.54); overflow: hidden; } diff --git a/dashboard-ui/channels.html b/dashboard-ui/channels.html index b3884ce7e1..38c23341e0 100644 --- a/dashboard-ui/channels.html +++ b/dashboard-ui/channels.html @@ -1,20 +1,16 @@ -
+
-
- - ${TabLatest} - ${TabChannels} - -
- ${TabLatest} - ${TabChannels} + -
-
+
-
+
diff --git a/dashboard-ui/components/remotecontrol.js b/dashboard-ui/components/remotecontrol.js index 5c97493960..dde6368cc1 100644 --- a/dashboard-ui/components/remotecontrol.js +++ b/dashboard-ui/components/remotecontrol.js @@ -1,4 +1,4 @@ -define(['browser', 'datetime', 'jQuery', 'paper-fab', 'paper-tabs', 'paper-slider'], function (browser, datetime, $) { +define(['browser', 'datetime', 'jQuery', 'paper-fab', 'paper-slider'], function (browser, datetime, $) { function showSlideshowMenu(context) { require(['scripts/slideshow'], function () { @@ -459,7 +459,7 @@ } function isPlaylistOpen(context) { - return context.querySelector('paper-tabs').selected == 2; + return LibraryBrowser.selectedTab(context.querySelector('.mdl-tabs')) == 2; } function onStateChanged(e, state) { @@ -793,24 +793,6 @@ return false; } - function showTab(index) { - - var all = dlg.querySelectorAll('.nowPlayingPageTab'); - - index = (index || 0).toString(); - - for (var i = 0, length = all.length; i < length; i++) { - - var tab = all[i]; - - if (tab.getAttribute('data-tab') == index) { - tab.classList.remove('hide'); - } else { - tab.classList.add('hide'); - } - } - } - function init(context) { require(['css!css/nowplaying.css']); @@ -831,39 +813,18 @@ // showSlideshowMenu(context); //}); - var tabs = context.querySelector('paper-tabs'); + var mdlTabs = context.querySelector('.mdl-tabs'); if (AppInfo.enableNowPlayingPageBottomTabs) { - tabs.classList.remove('hide'); - context.querySelector('.libraryViewNav').classList.add('hide'); + context.querySelector('.libraryViewNav').classList.add('bottom'); } else { - tabs.classList.add('hide'); - context.querySelector('.libraryViewNav').classList.remove('hide'); + context.querySelector('.libraryViewNav').classList.remove('bottom'); } - tabs.noSlide = true; - - tabs.addEventListener('iron-select', function (e) { - - var btn = context.querySelector('.libraryViewNav a.ui-btn-active'); - - if (btn) { - btn.classList.remove('ui-btn-active'); - } - - context.querySelector('.libraryViewNav a[data-index=\'' + e.target.selected + '\']').classList.add('ui-btn-active'); - - if (e.target.selected == 2 && playlistNeedsRefresh) { + mdlTabs.addEventListener('tabchange', function (e) { + if (e.detail.selectedTabIndex == 2 && playlistNeedsRefresh) { loadPlaylist(context); } - - showTab(e.target.selected); - }); - - $(context.querySelectorAll('.libraryViewNav a')).on('click', function () { - var newSelected = this.getAttribute('data-index'); - - tabs.selected = newSelected; }); Events.on(MediaController, 'playerchange', onPlayerChange); @@ -887,21 +848,6 @@ bindToPlayer(context, MediaController.getCurrentPlayer()); - var selected = tab == '#playlist' ? 2 : 0; - - var delay = browser.animate ? 0 : 1000; - - // hack alert. doing this because the neon elements don't seem to be initialized yet - setTimeout(function () { - - if (AppInfo.enableNowPlayingPageBottomTabs) { - context.querySelector('paper-tabs').selected = selected; - } else { - - showTab(selected); - } - }, delay); - updateCastIcon(context); } @@ -914,6 +860,7 @@ context.querySelector('.topRightContainer').style.position = 'relative'; } + componentHandler.upgradeAllRegistered(dlg); init(dlg); }; diff --git a/dashboard-ui/css/librarybrowser.css b/dashboard-ui/css/librarybrowser.css index 8365802b28..92bbc06448 100644 --- a/dashboard-ui/css/librarybrowser.css +++ b/dashboard-ui/css/librarybrowser.css @@ -62,7 +62,7 @@ padding-bottom: 0; } -.pageWithAbsoluteTabs .pageTabsContainer, .libraryPage > .ui-content { +.pageWithAbsoluteTabs .pageTabContent, .libraryPage > .ui-content { padding-top: 10px; } @@ -71,6 +71,10 @@ padding-right: .5em !important; }*/ +.flexPageTabContent.is-active { + display: flex!important; +} + @media all and (max-width: 600px) { .libraryPage > .ui-content { diff --git a/dashboard-ui/css/librarymenu.css b/dashboard-ui/css/librarymenu.css index 769d7293bd..2063d159f7 100644 --- a/dashboard-ui/css/librarymenu.css +++ b/dashboard-ui/css/librarymenu.css @@ -26,7 +26,7 @@ .absolutePageTabContent.headroomUnpinned { transform: translateY(-92px); - bottom: -92px!important; + bottom: -92px !important; } .sidebarDivider { @@ -188,14 +188,44 @@ box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.2); } + .libraryViewNav.bottom { + top: auto!important; + bottom: 0; + } + + + .libraryViewNav .mdl-tabs__tab-bar { + -webkit-justify-content: initial; + justify-content: initial; + display: inline-flex; + text-align: center; + margin: 0 auto; + } + + + .libraryViewNav .mdl-tabs__tab { + color: #888 !important; + padding: 0 1.25em; + float: none; + flex-shrink: 0; + } + + .libraryViewNav .mdl-tabs__tab.is-active { + color: #fff !important; + } + + .libraryViewNav .mdl-tabs__tab.is-active:after { + background: #52B54B !important; + } + .libraryViewNav::-webkit-scrollbar { height: 0 !important; display: none; } -.libraryViewNavWithMinHeight { - min-height: 48px; -} + .libraryViewNav .mdl-tabs__tab .mdl-tabs__ripple-container .mdl-ripple { + background: #52B54B !important; + } .viewMenuBar, .libraryViewNav { background-color: #020202; @@ -335,72 +365,6 @@ background-color: #212121; } -.libraryViewNav a { - display: inline-block; - padding: 14px 13px 11px; - color: rgba(255,255,255,.8) !important; - text-decoration: none; - margin: 0 0; - position: relative; - font-weight: normal; - border-bottom: 2px solid transparent; -} - -.libraryViewNav .ui-btn-active { - border-bottom-color: #52B54B; - color: #fff !important; -} - -.libraryViewNav .iron-selected a { - color: inherit !important; - text-decoration: none; - text-align: center; -} - -.libraryViewNav #tabsContainer { - margin: auto; - -ms-flex: none; - -webkit-flex: none; - flex: none; - flex-shrink: 0; - flex-grow: 1; - touch-action: auto !important; -} - -.libraryViewNav paper-tabs { - flex: none; - flex-shrink: 0; - flex-grow: 1; - overflow-x: visible !important; -} - -.libraryViewNav paper-tab { - flex: none; - flex-shrink: 0; - flex-grow: 1; -} - -.basicPaperLibraryTabs .libraryViewNav paper-tabs { - display: none; -} - -.fullPaperLibraryTabs .legacyTabs { - display: none; -} - -.minimumSizeTabs .libraryViewNav .tab-content { - display: block !important; -} - -.minimumSizeTabs .libraryViewNav paper-tab { - height: auto !important; - flex-grow: 0 !important; -} - -.minimumSizeTabs .libraryViewNav #tabsContainer { - flex-grow: 0 !important; -} - @media all and (max-width: 400px) { .libraryMenuButtonText { diff --git a/dashboard-ui/css/nowplaying.css b/dashboard-ui/css/nowplaying.css index efb7070fb7..edeaf5eab2 100644 --- a/dashboard-ui/css/nowplaying.css +++ b/dashboard-ui/css/nowplaying.css @@ -2,13 +2,6 @@ padding-top: 0 !important; } -.nowPlayingPagePaperTabs.bottom { - position: fixed; - bottom: 0; - left: 0; - right: 0; -} - .nowPlayingPage .btnCommand, .nowPlayingPage .btnPlayStateCommand { margin: 2px 1px; } diff --git a/dashboard-ui/devices/android/android.css b/dashboard-ui/devices/android/android.css index f97bc7a3f5..84ad997727 100644 --- a/dashboard-ui/devices/android/android.css +++ b/dashboard-ui/devices/android/android.css @@ -1,3 +1,18 @@ -.libraryViewNav a, paper-tab, paper-tab a { +paper-tab, paper-tab a { font-weight: bold !important; } + +.libraryViewNav .mdl-tabs__tab { + font-weight: bold !important; +} + +@media all and (min-width: 800px) { + + .libraryViewNav .mdl-tabs__tab-bar { + display: flex; + } + + .libraryViewNav .mdl-tabs__tab { + flex-grow: 1; + } +} diff --git a/dashboard-ui/devices/windowsphone/wp.css b/dashboard-ui/devices/windowsphone/wp.css index a2423578a4..3b6400ec7c 100644 --- a/dashboard-ui/devices/windowsphone/wp.css +++ b/dashboard-ui/devices/windowsphone/wp.css @@ -2,14 +2,14 @@ background-color: #000; } -.libraryViewNav, .libraryViewNav paper-tabs { +.libraryViewNav { background-color: #161616; box-shadow: none; text-transform: lowercase; font-size: 220%; } - .libraryViewNav a, paper-tab { + .libraryViewNav .mdl-tabs__tab { font-weight: 400 !important; } @@ -17,17 +17,13 @@ background: #161616; } -.libraryViewNav #selectionBar { - background-color: transparent !important; -} - -.libraryViewNav .ui-btn-active, .libraryViewNav .iron-selected, .btnActiveCast { +.libraryViewNav .mdl-tabs__tab.is-active { color: #52B54B !important; } -.libraryViewNav .ui-btn-active { - border-bottom-color: transparent; -} + .libraryViewNav .mdl-tabs__tab.is-active:after { + background-color: transparent !important; + } .libraryPage:not(.noSecondaryNavPage) { padding-top: 105px !important; diff --git a/dashboard-ui/home.html b/dashboard-ui/home.html index a6193ca841..38317f2494 100644 --- a/dashboard-ui/home.html +++ b/dashboard-ui/home.html @@ -1,22 +1,15 @@ 
-
- - ${TabHome} - ${TabNextUp} - ${TabFavorites} - ${TabUpcoming} - -
- ${TabHome} - ${TabNextUp} - ${TabFavorites} - ${TabUpcoming} + - -
-
+
-
+

${HeaderNextUp}

@@ -37,10 +30,10 @@
-
+
- diff --git a/dashboard-ui/livetv.html b/dashboard-ui/livetv.html index ea08794bdc..a886613acd 100644 --- a/dashboard-ui/livetv.html +++ b/dashboard-ui/livetv.html @@ -1,24 +1,16 @@ -
+
-
- - ${TabSuggestions} - ${TabGuide} - ${TabChannels} - ${TabRecordings} - ${TabSeries} - -
- ${TabSuggestions} - ${TabGuide} - ${TabChannels} - ${TabRecordings} - ${TabSeries} + - -
-
+

${HeaderWhatsOnTV}

@@ -54,16 +46,16 @@
-
+
-
+
-
+

${HeaderActiveRecordings}

@@ -88,7 +80,7 @@
-
+
diff --git a/dashboard-ui/movies.html b/dashboard-ui/movies.html index cf4f7b75ca..78812fb2f9 100644 --- a/dashboard-ui/movies.html +++ b/dashboard-ui/movies.html @@ -1,26 +1,17 @@ 
-
- - ${TabSuggestions} - ${TabMovies} - ${TabTrailers} - ${TabCollections} - ${TabGenres} - ${TabStudios} - -
- ${TabSuggestions} - ${TabMovies} - ${TabTrailers} - ${TabCollections} - ${TabGenres} - ${TabStudios} + - -
-
+
-
+
@@ -57,7 +48,7 @@
-
+
@@ -67,7 +58,7 @@
-
+
@@ -81,14 +72,14 @@
-
+
-
+
diff --git a/dashboard-ui/music.html b/dashboard-ui/music.html index 268f920780..a37156ba47 100644 --- a/dashboard-ui/music.html +++ b/dashboard-ui/music.html @@ -1,28 +1,18 @@ -
-
- - ${TabSuggestions} - ${TabAlbums} - ${TabAlbumArtists} - ${TabArtists} - ${TabSongs} - ${TabGenres} - ${TabFolders} - -
- ${TabSuggestions} - ${TabAlbums} - ${TabAlbumArtists} - ${TabArtists} - ${TabSongs} - ${TabGenres} - ${TabFolders} +
+ + - -
- -
+

${HeaderLatestMusic}

@@ -53,7 +43,7 @@
-
+
@@ -62,7 +52,7 @@
-
+
@@ -71,7 +61,7 @@
-
+
@@ -80,21 +70,21 @@
-
+
-
+
-
+
diff --git a/dashboard-ui/nowplaying.html b/dashboard-ui/nowplaying.html index 6a32f3f166..591d1adece 100644 --- a/dashboard-ui/nowplaying.html +++ b/dashboard-ui/nowplaying.html @@ -1,4 +1,4 @@ -
+
@@ -9,127 +9,124 @@
- -
-
-
+
+
+ -