basic theming...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2013-05-17 18:20:38 +04:00
parent 3861f5ff89
commit ee3801823f
3 changed files with 22 additions and 2 deletions

View File

@ -273,6 +273,7 @@ function getBestPreview(gid, size){
function updateImage(image, gid, size){
image = $(image)
var html = ''
if(gid == null){
gid = getImageGID(image)
} else {
@ -303,7 +304,10 @@ function updateImage(image, gid, size){
'background-image': 'url('+ preview.url +')',
})
window.DEBUG && image.html(DATA.order.indexOf(gid) +'<br>'+ gid +'<br>'+ preview.size)
html = window.DEBUG ?
DATA.order.indexOf(gid) +'<br>'+ gid +'<br>'+ preview.size
: html
image.html(html)
return image
}

View File

@ -270,6 +270,20 @@ body {
visibility: hidden;
}
/* XXX this is by no means final... */
.viewer,
.light.viewer {
background: white;
}
.gray.viewer {
background: #333;
}
.dark.viewer {
background: black;
}
</style>
@ -294,7 +308,7 @@ body {
<script>
DEBUG = true
//DEBUG = true
// setup...

View File

@ -148,6 +148,8 @@ var KEYBOARD_CONFIG = {
centerRibbons()
},
B: function(){ toggleTheme() },
S: {
ctrl: function(){
saveLocalStorage()