fix #1776 (Print view looks wrong in dark theme)

This commit is contained in:
rolux 2013-08-06 20:42:58 +00:00
parent 2543cf756f
commit a300eed203

View file

@ -4,18 +4,16 @@
pandora.ui.printView = function(data) { pandora.ui.printView = function(data) {
var that = Ox.Element() var that = Ox.Element().css({padding: '64px 128px'}),
.css({
padding: '64px 128px',
backgroundColor: 'rgb(255, 255, 255)',
color: 'rgb(0, 0, 0)'
}),
$loading = Ox.LoadingScreen().appendTo(that), $loading = Ox.LoadingScreen().appendTo(that),
sortKey = pandora.user.ui.listSort[0].key, sortKey = pandora.user.ui.listSort[0].key,
keys = Ox.unique( keys = Ox.unique(
['director', 'id', 'summary', 'title', 'year'].concat(sortKey) ['director', 'id', 'summary', 'title', 'year'].concat(sortKey)
); );
$($loading.find('img')[0]).attr({
src: Ox.UI.getImageURL('symbolLoadingAnimated', null, 'oxlight')
});
Ox.$body.css({ Ox.$body.css({
background: 'rgb(255, 255, 255)', background: 'rgb(255, 255, 255)',
overflow: 'auto' overflow: 'auto'
@ -34,7 +32,10 @@ pandora.ui.printView = function(data) {
var padding; var padding;
$loading.remove(); $loading.remove();
$('<div>') $('<div>')
.css({height: '16px'}) .css({
height: '16px',
color: 'rgb(0, 0, 0)'
})
.html( .html(
'<b>' + pandora.site.site.name + ' - ' '<b>' + pandora.site.site.name + ' - '
+ ( + (
@ -58,6 +59,7 @@ pandora.ui.printView = function(data) {
.attr({title: url}) .attr({title: url})
.css({ .css({
height: '16px', height: '16px',
color: 'rgb(0, 0, 0)',
textAlign: 'justify', textAlign: 'justify',
textOverflow: 'ellipsis', textOverflow: 'ellipsis',
cursor: 'pointer', cursor: 'pointer',
@ -100,7 +102,7 @@ pandora.ui.printView = function(data) {
.css({height: '16px'}) .css({height: '16px'})
.html( .html(
'<span style="color: rgb(128, 128, 128)">' '<span style="color: rgb(128, 128, 128)">'
+ totals + '</span' + totals + '</span>'
) )
.appendTo(that); .appendTo(that);
}); });