make theme selectable

This commit is contained in:
rolux 2011-09-09 12:09:05 +00:00
parent 9cf7fb28dd
commit 3154c18067
3 changed files with 12 additions and 17 deletions

View File

@ -20,11 +20,6 @@ pandora.ui.folderBrowserList = function(id) {
operator: '+',
title: $('<img>').attr({
src: Ox.UI.getImageURL('symbolIcon')
})
.css({
width: '10px',
height: '10px',
padding: '3px',
}),
unique: true,
visible: true,
@ -74,11 +69,6 @@ pandora.ui.folderBrowserList = function(id) {
title: $('<img>')
.attr({
src: Ox.UI.getImageURL('symbolEdit')
})
.css({
width: '10px',
height: '10px',
padding: '3px',
}),
tooltip: function(data) {
return data.type == 'smart'
@ -113,11 +103,6 @@ pandora.ui.folderBrowserList = function(id) {
src: Ox.UI.getImageURL(
'symbol' + (id == 'favorite' ? 'Like' : 'Star')
)
})
.css({
width: '10px',
height: '10px',
padding: '3px'
}),
tooltip: function(data) {
var checked = id == 'favorite' ? data.subscribed : data.status == 'featured';

View File

@ -530,7 +530,7 @@ pandora.ui.list = function() { // fixme: remove view argument
copy: function(data) {
Ox.Clipboard.copy({
items: data.ids,
text: $.map(data.ids, function(id) {
text: data.ids.map(function(id) {
return pandora.$ui.list.value(id, 'title');
}).join('\n')
});

View File

@ -103,7 +103,14 @@ pandora.ui.mainMenu = function() {
{ id: 'lists', title: 'Hide Lists', keyboard: 'shift l' },
{ id: 'info', title: 'Hide Info', keyboard: 'shift i' },
{ 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: '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.user.ui.lists[pandora.user.ui.list].sort[0] = {key: key, operator: operator};
pandora.URL.push(pandora.Query.toString());
} else if (data.id == 'settheme') {
Ox.Theme(value);
pandora.UI.set('theme', value);
} else if (data.id == 'sortmovies') {
var operator = pandora.getSortOperator(value);
pandora.$ui.mainMenu.checkItem('sortMenu_ordermovies_' + (operator == '+' ? 'ascending' : 'descending'));