diff --git a/dashboard-ui/bower_components/emby-webcomponents/emby-button/emby-button.css b/dashboard-ui/bower_components/emby-webcomponents/emby-button/emby-button.css index 50f0c0d6b5..cbe032f37c 100644 --- a/dashboard-ui/bower_components/emby-webcomponents/emby-button/emby-button.css +++ b/dashboard-ui/bower_components/emby-webcomponents/emby-button/emby-button.css @@ -52,10 +52,10 @@ } [is="emby-button"].fab i { - height: 4.4vh; - width: 4.4vh; + height: 40px; + width: 40px; vertical-align: middle; - font-size: 4.4vh; + font-size: 40px; } [is="emby-button"].noflex { @@ -110,6 +110,12 @@ margin-left: .5em; } + [is="emby-button"]:not(.autoSize) i { + font-size: 24px; + width: 24px; + height: 24px; + } + [is=emby-button].autoSize { width: auto !important; height: auto !important; diff --git a/dashboard-ui/components/channelmapper/channelmapper.js b/dashboard-ui/components/channelmapper/channelmapper.js index 4b0936ecd8..37c8fc1db5 100644 --- a/dashboard-ui/components/channelmapper/channelmapper.js +++ b/dashboard-ui/components/channelmapper/channelmapper.js @@ -110,7 +110,7 @@ function (dialogHelper, loading, connectionManager, globalize, actionsheet) { html += ''; - html += ''; + html += ''; html += ''; diff --git a/dashboard-ui/components/imageeditor/imageeditor.js b/dashboard-ui/components/imageeditor/imageeditor.js index c452615b16..6b429f87b3 100644 --- a/dashboard-ui/components/imageeditor/imageeditor.js +++ b/dashboard-ui/components/imageeditor/imageeditor.js @@ -94,24 +94,24 @@ if (image.ImageType == "Backdrop" || image.ImageType == "Screenshot") { if (i > 0) { - html += ''; + html += ''; } else { - html += ''; + html += ''; } if (i < length - 1) { - html += ''; + html += ''; } else { - html += ''; + html += ''; } } else { if (imageProviders.length) { - html += ''; + html += ''; } } - html += ''; + html += ''; html += ''; @@ -269,7 +269,7 @@ var html = ''; html += '

'; - html += ''; + html += ''; html += '
' + item.Name + '
'; html += '

'; diff --git a/dashboard-ui/components/imageuploader/imageuploader.js b/dashboard-ui/components/imageuploader/imageuploader.js index cfbab4ed06..35fb93459f 100644 --- a/dashboard-ui/components/imageuploader/imageuploader.js +++ b/dashboard-ui/components/imageuploader/imageuploader.js @@ -149,7 +149,7 @@ var html = ''; html += '

'; - html += ''; + html += ''; html += '
' + Globalize.translate('HeaderUploadImage') + '
'; html += '

'; diff --git a/dashboard-ui/components/remotecontrol.js b/dashboard-ui/components/remotecontrol.js index a40e1363cf..93b4977d46 100644 --- a/dashboard-ui/components/remotecontrol.js +++ b/dashboard-ui/components/remotecontrol.js @@ -97,7 +97,7 @@ menuItems.unshift({ id: -1, name: Globalize.translate('ButtonOff'), - ironIcon: currentIndex == null ? 'check' : null + selected: currentIndex == null }); require(['actionsheet'], function (actionsheet) { diff --git a/dashboard-ui/css/librarybrowser.css b/dashboard-ui/css/librarybrowser.css index 86d2d3a139..5b9713c69f 100644 --- a/dashboard-ui/css/librarybrowser.css +++ b/dashboard-ui/css/librarybrowser.css @@ -324,7 +324,7 @@ span.itemCommunityRating:not(:empty) + .userDataIcons { @media all and (min-width: 540px) { .detailUserDataIcons { - margin-left: 1em; + margin-left: .5em; } } @@ -900,6 +900,10 @@ span.itemCommunityRating:not(:empty) + .userDataIcons { font-weight: 500; } + .playedIndicator i, .syncIndicator i { + font-size: 180%; + } + .mediaSourceIndicator { display: block; position: absolute; diff --git a/dashboard-ui/css/librarymenu.css b/dashboard-ui/css/librarymenu.css index 9be47f1f7a..34c497f692 100644 --- a/dashboard-ui/css/librarymenu.css +++ b/dashboard-ui/css/librarymenu.css @@ -471,6 +471,16 @@ body:not(.dashboardDocument) .btnNotifications { margin-left: 1.6em; } +i.sidebarLinkIcon { + font-size: 24px; + height: 24px; + width: 24px; +} + +.darkDrawerPanel i.sidebarLinkIcon { + margin-left: 1em; +} + .darkDrawerPanel .sidebarLinkText, .darkDrawerPanel .sidebarLink { color: #fff !important; font-weight: normal !important; diff --git a/dashboard-ui/css/site.css b/dashboard-ui/css/site.css index 9a24528977..b9242bd8ce 100644 --- a/dashboard-ui/css/site.css +++ b/dashboard-ui/css/site.css @@ -416,7 +416,7 @@ paper-input + .fieldDescription { .sidebarLinkIcon { text-align: center; vertical-align: middle; - margin-right: 2em; + margin-right: 1.2em; } .sidebarLinkIcon + span { diff --git a/dashboard-ui/itemdetails.html b/dashboard-ui/itemdetails.html index a20044ffa6..85b3f66b07 100644 --- a/dashboard-ui/itemdetails.html +++ b/dashboard-ui/itemdetails.html @@ -3,14 +3,14 @@
- - + +
- - + +
@@ -27,12 +27,12 @@

- - - - - - + + + + + +
@@ -45,12 +45,12 @@

- - - - - - + + + + + +
@@ -146,7 +146,7 @@

${HeaderScenes} - +

diff --git a/dashboard-ui/scripts/itemdetailpage.js b/dashboard-ui/scripts/itemdetailpage.js index db920bb6ea..1268c08a8e 100644 --- a/dashboard-ui/scripts/itemdetailpage.js +++ b/dashboard-ui/scripts/itemdetailpage.js @@ -1075,7 +1075,7 @@ html += '' + type.name + ''; html += ''; - html += ''; + html += ''; html += ''; html += '
'; diff --git a/dashboard-ui/scripts/librarybrowser.js b/dashboard-ui/scripts/librarybrowser.js index 4818ff1b80..b5f92fa1c2 100644 --- a/dashboard-ui/scripts/librarybrowser.js +++ b/dashboard-ui/scripts/librarybrowser.js @@ -1406,15 +1406,6 @@ html += '
'; } - //html += LibraryBrowser.getSyncIndicator(item); - - //if (item.Type == 'Series' || item.Type == 'Season' || item.Type == 'BoxSet' || item.MediaType == 'Video') { - // if (item.UserData.UnplayedItemCount) { - // //html += '' + item.UserData.UnplayedItemCount + ''; - // } else if (item.UserData.Played && item.Type != 'TvChannel') { - // html += '
'; - // } - //} html += ''; html += ''; @@ -2101,14 +2092,14 @@ } else if (item.MediaType == "Audio" || item.Type == "MusicAlbum" || item.Type == "MusicArtist") { if (item.Name && showTitle) { - icon = 'library-music'; + icon = 'library_music'; } cssClass += " defaultBackground"; } else if (item.Type == "Recording" || item.Type == "Program" || item.Type == "TvChannel") { if (item.Name && showTitle) { - icon = 'folder-open'; + icon = 'folder_open'; } cssClass += " defaultBackground"; @@ -2126,7 +2117,7 @@ cssClass += " defaultBackground"; } else { if (item.Name && showTitle) { - icon = 'folder-open'; + icon = 'folder_open'; } cssClass += " defaultBackground"; } @@ -2211,7 +2202,7 @@ html += ''; html += '
'; if (icon) { - html += ''; + html += '' + icon + ''; } html += '
'; @@ -2226,7 +2217,7 @@ } if (item.SeriesTimerId) { - html += ''; + html += 'fiber_smart_record'; } html += LibraryBrowser.getSyncIndicator(item); @@ -2289,7 +2280,7 @@ if (options.cardLayout) { html += '
'; - html += ''; + html += ''; html += "
"; } @@ -2586,7 +2577,7 @@ if (item.Type != 'TvChannel') { if (item.UserData.PlayedPercentage && item.UserData.PlayedPercentage >= 100 || (item.UserData && item.UserData.Played)) { - return '
'; + return '
check
'; } } } @@ -2607,17 +2598,17 @@ if (item.SyncStatus == 'Synced') { - return '
'; + return '
sync
'; } var syncPercent = item.SyncPercent; if (syncPercent) { - return '
'; + return '
sync
'; } if (item.SyncStatus == 'Queued' || item.SyncStatus == 'Converting' || item.SyncStatus == 'ReadyToTransfer' || item.SyncStatus == 'Transferring') { - return '
'; + return '
sync
'; } return ''; @@ -3030,7 +3021,7 @@ return '<' + tagName + ' title="' + tooltip + '" data-itemid="' + itemId + '" icon="' + icon + '" class="' + btnCssClass + '" onclick="LibraryBrowser.' + method + '(this);return false;">'; } - return ''; + return ''; }, getUserDataIconsHtml: function (item, includePlayed, style) { diff --git a/dashboard-ui/scripts/librarylist.js b/dashboard-ui/scripts/librarylist.js index 8c2c72b9e6..445d4dd809 100644 --- a/dashboard-ui/scripts/librarylist.js +++ b/dashboard-ui/scripts/librarylist.js @@ -149,16 +149,16 @@ var resumePosition = (item.UserData || {}).PlaybackPositionTicks || 0; - html += ''; + html += ''; buttonCount++; } if (commands.indexOf('trailer') != -1) { - html += ''; + html += ''; buttonCount++; } - html += ''; + html += ''; buttonCount++; html += ''; @@ -1097,11 +1097,11 @@ var html = ''; html += '
'; - html += ''; + html += ''; html += ''; html += '
'; - html += ''; + html += ''; selectionCommandsPanel.innerHTML = html; @@ -1544,7 +1544,7 @@ playedIndicator.classList.add('playedIndicator'); card.querySelector('.cardContent').appendChild(playedIndicator); } - playedIndicator.innerHTML = ''; + playedIndicator.innerHTML = 'check'; } else if (userData.UnplayedItemCount) { diff --git a/dashboard-ui/scripts/librarymenu.js b/dashboard-ui/scripts/librarymenu.js index fe1175b41a..f2cd3668af 100644 --- a/dashboard-ui/scripts/librarymenu.js +++ b/dashboard-ui/scripts/librarymenu.js @@ -7,38 +7,38 @@ var html = ''; html += '
'; - var backIcon = browserInfo.safari ? 'chevron-left' : 'arrow-back'; + var backIcon = browserInfo.safari ? 'chevron_left' : 'arrow_back'; - html += ''; + html += ''; - html += ''; - html += ''; + html += ''; + html += ''; html += '
' + Globalize.translate('ButtonHome') + '
'; html += '
'; html += ''; - html += ''; + html += ''; if (AppInfo.enableSearchInTopMenu) { - html += ''; + html += ''; html += '
'; html += '
'; html += ''; - html += ''; + html += ''; html += '
'; html += '
'; } - html += ''; + html += ''; html += ''; - html += ''; + html += ''; if (!browserInfo.mobile && !Dashboard.isConnectMode()) { - html += ''; + html += ''; } html += '
'; @@ -112,11 +112,14 @@ if (src) { headerUserButton.classList.add('headerUserButtonRound'); + headerUserButton.classList.remove('autoSize'); headerUserButton.innerHTML = ''; } else if (icon) { headerUserButton.classList.remove('headerUserButtonRound'); - headerUserButton.innerHTML = ''; + headerUserButton.classList.add('autoSize'); + headerUserButton.innerHTML = ''; html += ''; - html += ''; + html += ''; html += '
' + Globalize.translate('ButtonHome') + '
'; html += '
'; @@ -208,11 +211,11 @@ html += '
'; html += ''; - html += ''; + html += ''; html += '
' + Globalize.translate('ButtonMetadataManager') + '
'; html += '
'; html += ''; - html += ''; + html += ''; html += '
' + Globalize.translate('ButtonReports') + '
'; html += '
'; @@ -327,7 +330,7 @@ html += Globalize.translate('ButtonHome'); html += ''; - html += '' + Globalize.translate('ButtonRemote') + ''; + html += 'tablet_android' + Globalize.translate('ButtonRemote') + ''; html += '
'; @@ -344,11 +347,11 @@ html += Globalize.translate('HeaderAdmin'); html += '
'; - html += '' + Globalize.translate('ButtonManageServer') + ''; - html += '' + Globalize.translate('ButtonMetadataManager') + ''; + html += 'dashboard' + Globalize.translate('ButtonManageServer') + ''; + html += 'mode_edit' + Globalize.translate('ButtonMetadataManager') + ''; if (!browserInfo.mobile) { - html += '' + Globalize.translate('ButtonReports') + ''; + html += 'insert_chart' + Globalize.translate('ButtonReports') + ''; } html += '
'; } @@ -358,17 +361,17 @@ html += '
'; if (user.localUser && (AppInfo.isNativeApp && browserInfo.android)) { - html += '' + Globalize.translate('ButtonSettings') + ''; + html += 'settings' + Globalize.translate('ButtonSettings') + ''; } - html += '' + Globalize.translate('ButtonSync') + ''; + html += 'sync' + Globalize.translate('ButtonSync') + ''; if (Dashboard.isConnectMode()) { - html += '' + Globalize.translate('ButtonSelectServer') + ''; + html += 'wifi' + Globalize.translate('ButtonSelectServer') + ''; } if (user.localUser) { - html += '' + Globalize.translate('ButtonSignOut') + ''; + html += 'lock' + Globalize.translate('ButtonSignOut') + ''; } html += ''; @@ -428,6 +431,7 @@ var title = ''; + link = link.querySelector('span') || link; var secondaryTitle = (link.innerText || link.textContent).trim(); title += secondaryTitle; @@ -481,7 +485,7 @@ if (view.CollectionType == 'livetv') { view.ImageTags = {}; - view.icon = 'live-tv'; + view.icon = 'live_tv'; view.onclick = "LibraryBrowser.showTab('livetv.html', 0);"; var guideView = Object.assign({}, view); @@ -558,19 +562,19 @@ } if (i.CollectionType == "photos") { - icon = 'photo-library'; + icon = 'photo_library'; color = "#009688"; } else if (i.CollectionType == "music" || i.CollectionType == "musicvideos") { - icon = 'library-music'; + icon = 'library_music'; color = '#FB8521'; } else if (i.CollectionType == "books") { - icon = 'library-books'; + icon = 'library_books'; color = "#1AA1E1"; } else if (i.CollectionType == "playlists") { - icon = 'view-list'; + icon = 'view_list'; color = "#795548"; } else if (i.CollectionType == "games") { @@ -578,7 +582,7 @@ color = "#F44336"; } else if (i.CollectionType == "movies") { - icon = 'video-library'; + icon = 'video_library'; color = '#CE5043'; } else if (i.CollectionType == "channels" || i.Type == 'Channel') { @@ -590,14 +594,14 @@ color = "#4CAF50"; } else if (i.CollectionType == "livetv") { - icon = 'live-tv'; + icon = 'live_tv'; color = "#293AAE"; } icon = i.icon || icon; var onclick = i.onclick ? ' function(){' + i.onclick + '}' : 'null'; - return '' + i.Name + ''; + return '' + icon + '' + i.Name + ''; }).join(''); @@ -742,7 +746,7 @@ var helpUrl = page.getAttribute('data-helpurl'); if (helpUrl) { - html += ''; + html += ''; } } @@ -805,14 +809,14 @@ if (info.isLocalPlayer) { - btnCast.querySelector('iron-icon').icon = 'cast'; + btnCast.querySelector('i').innerHTML = 'cast'; btnCast.classList.remove('btnActiveCast'); context.querySelector('.headerSelectedPlayer').innerHTML = ''; } else { - btnCast.querySelector('iron-icon').icon = 'cast-connected'; + btnCast.querySelector('i').icon = 'cast_connected'; btnCast.classList.add('btnActiveCast'); context.querySelector('.headerSelectedPlayer').innerHTML = info.deviceName || info.name; } @@ -1108,7 +1112,7 @@ var headerCreated; var userRequiresUpdateAfterHeader; - require(['paper-icon-button-light', 'emby-icons'], function () { + require(['paper-icon-button-light', 'material-icons'], function () { renderHeader(); headerCreated = true; diff --git a/dashboard-ui/scripts/mypreferenceshome.js b/dashboard-ui/scripts/mypreferenceshome.js index 2928ad085d..0c4251ba8d 100644 --- a/dashboard-ui/scripts/mypreferenceshome.js +++ b/dashboard-ui/scripts/mypreferenceshome.js @@ -82,11 +82,11 @@ if (index > 0) { - currentHtml += ''; + currentHtml += ''; } else if (result.Items.length > 1) { - currentHtml += ''; + currentHtml += ''; } diff --git a/dashboard-ui/scripts/selectserver.js b/dashboard-ui/scripts/selectserver.js index ade5e8aaf5..df19ad5e7d 100644 --- a/dashboard-ui/scripts/selectserver.js +++ b/dashboard-ui/scripts/selectserver.js @@ -44,7 +44,7 @@ html += ''; if (server.Id) { - html += ''; + html += ''; } html += ''; @@ -198,8 +198,7 @@ menuItems.push({ name: Globalize.translate('ButtonDelete'), - id: 'delete', - ironIcon: 'delete' + id: 'delete' }); require(['actionsheet'], function (actionsheet) { @@ -233,14 +232,12 @@ menuItems.push({ name: Globalize.translate('ButtonAccept'), - id: 'accept', - ironIcon: 'add' + id: 'accept' }); menuItems.push({ name: Globalize.translate('ButtonReject'), - id: 'reject', - ironIcon: 'cancel' + id: 'reject' }); require(['actionsheet'], function (actionsheet) { @@ -283,7 +280,7 @@ html += ''; - html += ''; + html += ''; html += ''; @@ -361,7 +358,7 @@ return s.Id == id; })[0]; - connectToServer(page, server); + connectToServer(view, server); } var btnServerMenu = parentWithClass(e.target, 'btnServerMenu'); diff --git a/dashboard-ui/scripts/site.js b/dashboard-ui/scripts/site.js index 2091e74ef6..ba8ead5930 100644 --- a/dashboard-ui/scripts/site.js +++ b/dashboard-ui/scripts/site.js @@ -255,7 +255,7 @@ var Dashboard = { var html = '' + Globalize.translate('MessagePleaseRestart') + ''; if (systemInfo.CanSelfRestart) { - html += ''; + html += ''; } Dashboard.showFooterNotification({ id: "serverRestartWarning", html: html, forceShow: true, allowHide: false }); @@ -277,7 +277,7 @@ var Dashboard = { var html = '' + Globalize.translate('MessagePleaseRefreshPage') + ''; - html += ''; + html += ''; Dashboard.showFooterNotification({ id: "dashboardVersionWarning", html: html, forceShow: true, allowHide: false }); }, @@ -639,7 +639,7 @@ var Dashboard = { if (icon) { var style = item.color ? ' style="color:' + item.color + '"' : ''; - menuHtml += ''; + menuHtml += '' + icon + ''; } menuHtml += ''; @@ -726,16 +726,16 @@ var Dashboard = { name: Globalize.translate('TabMetadata'), href: "metadata.html", pageIds: ['metadataConfigurationPage', 'metadataImagesConfigurationPage', 'metadataNfoPage'], - icon: 'insert-drive-file', + icon: 'insert_drive_file', color: '#FF9800' }, { name: Globalize.translate('TabSubtitles'), href: "metadatasubtitles.html", pageIds: ['metadataSubtitlesPage'], - icon: 'closed-caption' + icon: 'closed_caption' }, { name: Globalize.translate('TabPlayback'), - icon: 'play-circle-filled', + icon: 'play_circle_filled', color: '#E5342E', href: "cinemamodeconfiguration.html", pageIds: ['cinemaModeConfigurationPage', 'playbackConfigurationPage', 'streamingSettingsPage', 'encodingSettingsPage'] @@ -771,7 +771,7 @@ var Dashboard = { pageIds: ['notificationSettingsPage', 'notificationSettingPage'] }, { name: Globalize.translate('TabPlugins'), - icon: 'add-shopping-cart', + icon: 'add_shopping_cart', color: '#9D22B1', href: "plugins.html", pageIds: ['pluginsPage', 'pluginCatalogPage'] @@ -1900,7 +1900,7 @@ var AppInfo = {}; define("fade-in-animation", ["html!" + bowerPath + "/neon-animation/animations/fade-in-animation.html"]); define("fade-out-animation", ["html!" + bowerPath + "/neon-animation/animations/fade-out-animation.html"]); define("scale-up-animation", ["html!" + bowerPath + "/neon-animation/animations/scale-up-animation.html"]); - define("paper-fab", ["html!" + bowerPath + "/paper-fab/paper-fab.html"]); + define("paper-fab", ["emby-icons", "html!" + bowerPath + "/paper-fab/paper-fab.html"]); define("iron-list", ["html!" + bowerPath + "/iron-list/iron-list.html"]); define("iron-scroll-threshold", ["html!" + bowerPath + "/iron-scroll-threshold/iron-scroll-threshold.html"]); define("paper-progress", ["html!" + bowerPath + "/paper-progress/paper-progress.html"]); diff --git a/dashboard-ui/scripts/sync.js b/dashboard-ui/scripts/sync.js index 49a5d34532..cfc8ad676b 100644 --- a/dashboard-ui/scripts/sync.js +++ b/dashboard-ui/scripts/sync.js @@ -258,12 +258,12 @@ var html = ''; html += '
'; - html += ''; + html += ''; html += '
'; html += Globalize.translate('SyncMedia'); html += '
'; - html += ''; + html += ''; html += '
'; @@ -272,7 +272,7 @@ html += '
'; html += '

'; - html += ''; + html += ''; html += '

'; html += ''; diff --git a/dashboard-ui/scripts/syncactivity.js b/dashboard-ui/scripts/syncactivity.js index ca0e3b83cf..96c858aeb6 100644 --- a/dashboard-ui/scripts/syncactivity.js +++ b/dashboard-ui/scripts/syncactivity.js @@ -133,7 +133,7 @@ } html += '
'; - html += ''; + html += ''; html += "
"; for (var i = 0, length = textLines.length; i < length; i++) { @@ -277,14 +277,12 @@ if (status == 'Cancelled') { menuItems.push({ name: Globalize.translate('ButtonDelete'), - id: 'delete', - ironIcon: 'delete' + id: 'delete' }); } else { menuItems.push({ name: Globalize.translate('ButtonCancelSyncJob'), - id: 'cancel', - ironIcon: 'delete' + id: 'cancel' }); } diff --git a/dashboard-ui/scripts/syncjob.js b/dashboard-ui/scripts/syncjob.js index f8ff1612f7..6b0a244a06 100644 --- a/dashboard-ui/scripts/syncjob.js +++ b/dashboard-ui/scripts/syncjob.js @@ -12,7 +12,7 @@ html += '
'; html += '
'; - html += ''; + html += ''; $('.syncJobForm', page).html(html); @@ -90,9 +90,9 @@ if (hasActions) { - html += ''; + html += ''; } else { - html += ''; + html += ''; } html += ''; @@ -144,36 +144,31 @@ if (status == 'Failed') { menuItems.push({ name: Globalize.translate('ButtonQueueForRetry'), - id: 'retry', - ironIcon: 'check' + id: 'retry' }); } else if (status == 'Cancelled') { menuItems.push({ name: Globalize.translate('ButtonReenable'), - id: 'retry', - ironIcon: 'check' + id: 'retry' }); } else if (status == 'Queued' || status == 'Transferring' || status == 'Converting' || status == 'ReadyToTransfer') { menuItems.push({ name: Globalize.translate('ButtonCancelItem'), - id: 'cancel', - ironIcon: 'delete' + id: 'cancel' }); } else if (status == 'Synced' && remove) { menuItems.push({ name: Globalize.translate('ButtonUnmarkForRemoval'), - id: 'unmarkforremoval', - ironIcon: 'check' + id: 'unmarkforremoval' }); } else if (status == 'Synced') { menuItems.push({ name: Globalize.translate('ButtonMarkForRemoval'), - id: 'markforremoval', - ironIcon: 'delete' + id: 'markforremoval' }); } diff --git a/dashboard-ui/selectserver.html b/dashboard-ui/selectserver.html index ce1dd80b3b..7284c3090c 100644 --- a/dashboard-ui/selectserver.html +++ b/dashboard-ui/selectserver.html @@ -16,7 +16,7 @@

- -