make theme selectable
This commit is contained in:
parent
9cf7fb28dd
commit
3154c18067
3 changed files with 12 additions and 17 deletions
|
@ -20,11 +20,6 @@ pandora.ui.folderBrowserList = function(id) {
|
||||||
operator: '+',
|
operator: '+',
|
||||||
title: $('<img>').attr({
|
title: $('<img>').attr({
|
||||||
src: Ox.UI.getImageURL('symbolIcon')
|
src: Ox.UI.getImageURL('symbolIcon')
|
||||||
})
|
|
||||||
.css({
|
|
||||||
width: '10px',
|
|
||||||
height: '10px',
|
|
||||||
padding: '3px',
|
|
||||||
}),
|
}),
|
||||||
unique: true,
|
unique: true,
|
||||||
visible: true,
|
visible: true,
|
||||||
|
@ -74,11 +69,6 @@ pandora.ui.folderBrowserList = function(id) {
|
||||||
title: $('<img>')
|
title: $('<img>')
|
||||||
.attr({
|
.attr({
|
||||||
src: Ox.UI.getImageURL('symbolEdit')
|
src: Ox.UI.getImageURL('symbolEdit')
|
||||||
})
|
|
||||||
.css({
|
|
||||||
width: '10px',
|
|
||||||
height: '10px',
|
|
||||||
padding: '3px',
|
|
||||||
}),
|
}),
|
||||||
tooltip: function(data) {
|
tooltip: function(data) {
|
||||||
return data.type == 'smart'
|
return data.type == 'smart'
|
||||||
|
@ -113,11 +103,6 @@ pandora.ui.folderBrowserList = function(id) {
|
||||||
src: Ox.UI.getImageURL(
|
src: Ox.UI.getImageURL(
|
||||||
'symbol' + (id == 'favorite' ? 'Like' : 'Star')
|
'symbol' + (id == 'favorite' ? 'Like' : 'Star')
|
||||||
)
|
)
|
||||||
})
|
|
||||||
.css({
|
|
||||||
width: '10px',
|
|
||||||
height: '10px',
|
|
||||||
padding: '3px'
|
|
||||||
}),
|
}),
|
||||||
tooltip: function(data) {
|
tooltip: function(data) {
|
||||||
var checked = id == 'favorite' ? data.subscribed : data.status == 'featured';
|
var checked = id == 'favorite' ? data.subscribed : data.status == 'featured';
|
||||||
|
|
|
@ -530,7 +530,7 @@ pandora.ui.list = function() { // fixme: remove view argument
|
||||||
copy: function(data) {
|
copy: function(data) {
|
||||||
Ox.Clipboard.copy({
|
Ox.Clipboard.copy({
|
||||||
items: data.ids,
|
items: data.ids,
|
||||||
text: $.map(data.ids, function(id) {
|
text: data.ids.map(function(id) {
|
||||||
return pandora.$ui.list.value(id, 'title');
|
return pandora.$ui.list.value(id, 'title');
|
||||||
}).join('\n')
|
}).join('\n')
|
||||||
});
|
});
|
||||||
|
|
|
@ -103,7 +103,14 @@ pandora.ui.mainMenu = function() {
|
||||||
{ id: 'lists', title: 'Hide Lists', keyboard: 'shift l' },
|
{ id: 'lists', title: 'Hide Lists', keyboard: 'shift l' },
|
||||||
{ id: 'info', title: 'Hide Info', keyboard: 'shift i' },
|
{ id: 'info', title: 'Hide Info', keyboard: 'shift i' },
|
||||||
{ id: 'groups', title: 'Hide Groups', keyboard: 'shift g' },
|
{ id: 'groups', title: 'Hide Groups', keyboard: 'shift g' },
|
||||||
{ id: 'movies', title: 'Hide ' + pandora.site.itemName.plural, disabled: true, keyboard: 'shift m' }
|
{ id: 'movies', title: 'Hide ' + pandora.site.itemName.plural, disabled: true, keyboard: 'shift m' },
|
||||||
|
{},
|
||||||
|
{ id: 'theme', title: 'Theme', items: [
|
||||||
|
{ group: 'settheme', min: 1, max: 1, items: [
|
||||||
|
{ id: 'classic', title: 'Classic', checked: pandora.user.ui.theme == 'classic'},
|
||||||
|
{ id: 'modern', title: 'Modern', checked: pandora.user.ui.theme == 'modern' }
|
||||||
|
]}
|
||||||
|
] }
|
||||||
]},
|
]},
|
||||||
{ id: 'sortMenu', title: 'Sort', items: [
|
{ id: 'sortMenu', title: 'Sort', items: [
|
||||||
{ id: 'sortmovies', title: 'Sort ' + pandora.site.itemName.plural + ' by', items: [
|
{ id: 'sortmovies', title: 'Sort ' + pandora.site.itemName.plural + ' by', items: [
|
||||||
|
@ -179,6 +186,9 @@ pandora.ui.mainMenu = function() {
|
||||||
pandora.UI.set(['lists', pandora.user.ui.list, 'sort'].join('|'), [{key: key, operator: operator}]);
|
pandora.UI.set(['lists', pandora.user.ui.list, 'sort'].join('|'), [{key: key, operator: operator}]);
|
||||||
//pandora.user.ui.lists[pandora.user.ui.list].sort[0] = {key: key, operator: operator};
|
//pandora.user.ui.lists[pandora.user.ui.list].sort[0] = {key: key, operator: operator};
|
||||||
pandora.URL.push(pandora.Query.toString());
|
pandora.URL.push(pandora.Query.toString());
|
||||||
|
} else if (data.id == 'settheme') {
|
||||||
|
Ox.Theme(value);
|
||||||
|
pandora.UI.set('theme', value);
|
||||||
} else if (data.id == 'sortmovies') {
|
} else if (data.id == 'sortmovies') {
|
||||||
var operator = pandora.getSortOperator(value);
|
var operator = pandora.getSortOperator(value);
|
||||||
pandora.$ui.mainMenu.checkItem('sortMenu_ordermovies_' + (operator == '+' ? 'ascending' : 'descending'));
|
pandora.$ui.mainMenu.checkItem('sortMenu_ordermovies_' + (operator == '+' ? 'ascending' : 'descending'));
|
||||||
|
|
Loading…
Reference in a new issue