From df2ec09e5014a17a251b9b49c35d0e2959a390ed Mon Sep 17 00:00:00 2001 From: rolux Date: Wed, 17 Aug 2011 15:52:58 +0000 Subject: [PATCH] use border radius for icon lists with frame icons --- static/js/pandora/ui/browser.js | 1 + static/js/pandora/ui/list.js | 1 + static/js/pandora/ui/menu.js | 1 + 3 files changed, 3 insertions(+) diff --git a/static/js/pandora/ui/browser.js b/static/js/pandora/ui/browser.js index 6dee507bf..77147b5c8 100644 --- a/static/js/pandora/ui/browser.js +++ b/static/js/pandora/ui/browser.js @@ -37,6 +37,7 @@ pandora.ui.browser = function() { }); } else { var that = Ox.IconList({ + borderRadius: pandora.user.ui.icons == 'posters' ? 0 : 8, centered: true, defaultRatio: pandora.user.ui.icons == 'posters' ? 5/8 : 1, id: 'list', diff --git a/static/js/pandora/ui/list.js b/static/js/pandora/ui/list.js index 4355effea..c65b25caa 100644 --- a/static/js/pandora/ui/list.js +++ b/static/js/pandora/ui/list.js @@ -76,6 +76,7 @@ pandora.ui.list = function() { // fixme: remove view argument } else if (view == 'icons') { //alert(JSON.stringify(pandora.user.ui.lists[pandora.user.ui.list].selected)) that = Ox.IconList({ + borderRadius: pandora.user.ui.icons == 'posters' ? 0 : 16, defaultRatio: pandora.user.ui.icons == 'posters' ? 5/8 : 1, id: 'list', item: function(data, sort, size) { diff --git a/static/js/pandora/ui/menu.js b/static/js/pandora/ui/menu.js index f14f7791a..5d84c85aa 100644 --- a/static/js/pandora/ui/menu.js +++ b/static/js/pandora/ui/menu.js @@ -173,6 +173,7 @@ pandora.ui.mainMenu = function() { $list = pandora.$ui.list } $list && $list.options({ + borderRadius: value == 'posters' ? 0 : pandora.user.ui.item ? 8 : 16, defaultRatio: value == 'posters' ? 5/8 : 1 }).reloadList(true); } else if (data.id == 'viewmovies') {