mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update list styles
This commit is contained in:
parent
5b72e1c91b
commit
fad66be11a
23 changed files with 183 additions and 279 deletions
|
@ -1,4 +1,4 @@
|
|||
define(['jQuery'], function ($) {
|
||||
define(['jQuery', 'listViewStyle'], function ($) {
|
||||
|
||||
function reload(page) {
|
||||
|
||||
|
@ -29,23 +29,23 @@
|
|||
}
|
||||
|
||||
itemHtml += '<a class="clearLink" href="notificationsetting.html?type=' + i.Type + '">';
|
||||
itemHtml += '<paper-icon-item>';
|
||||
itemHtml += '<div class="listItem">';
|
||||
|
||||
if (i.Enabled) {
|
||||
itemHtml += '<paper-fab mini class="blue" icon="notifications-active" item-icon></paper-fab>';
|
||||
itemHtml += '<i class="listItemIcon md-icon">notifications_active</i>';
|
||||
}
|
||||
else {
|
||||
itemHtml += '<paper-fab mini style="background-color:#999;" icon="notifications-off" item-icon></paper-fab>';
|
||||
itemHtml += '<i class="listItemIcon md-icon" style="background-color:#999;">notifications_off</i>';
|
||||
}
|
||||
|
||||
itemHtml += '<paper-item-body two-line>';
|
||||
itemHtml += '<div>' + i.Name + '</div>';
|
||||
itemHtml += '<div class="listItemBody two-line">';
|
||||
itemHtml += '<div class="listItemBodyText">' + i.Name + '</div>';
|
||||
|
||||
itemHtml += '</paper-item-body>';
|
||||
itemHtml += '</div>';
|
||||
|
||||
itemHtml += '<button type="button" is="paper-icon-button-light"><iron-icon icon="mode-edit"></iron-icon></button>';
|
||||
itemHtml += '<button type="button" is="paper-icon-button-light"><i class="md-icon">mode_edit</i></button>';
|
||||
|
||||
itemHtml += '</paper-icon-item>';
|
||||
itemHtml += '</div>';
|
||||
itemHtml += '</a>';
|
||||
|
||||
return itemHtml;
|
||||
|
@ -80,9 +80,7 @@
|
|||
|
||||
LibraryMenu.setTabs('notifications', 0, getTabs);
|
||||
|
||||
require(['paper-fab', 'paper-item-body', 'paper-icon-item'], function () {
|
||||
reload(view);
|
||||
});
|
||||
reload(view);
|
||||
});
|
||||
};
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue