From b65d9acc9d466265d30060e5b771766c2fa6a501 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Sun, 1 Nov 2015 16:53:05 -0800 Subject: [PATCH] Make transparency visible when editing, and reset background color to white when done. --- src/General/css/style.css | 3 +++ src/Posting/QR.oekaki.coffee | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/General/css/style.css b/src/General/css/style.css index 655a67585..ca41eca29 100755 --- a/src/General/css/style.css +++ b/src/General/css/style.css @@ -111,6 +111,9 @@ hr + div.center:not(.ad-cnt):not(.topad):not(.middlead):not(.bottomad) { #captchaContainerAlt td:nth-child(2) { display: table-cell !important; } +#tegaki-canvas { + background: none; +} /* Disable obnoxious captcha fade-in. */ body > div:last-of-type { transition: none !important; diff --git a/src/Posting/QR.oekaki.coffee b/src/Posting/QR.oekaki.coffee index 749121446..0104f135c 100644 --- a/src/Posting/QR.oekaki.coffee +++ b/src/Posting/QR.oekaki.coffee @@ -85,6 +85,7 @@ QR.oekaki = onCancel: -> width: +document.querySelector('#qr [name=oekaki-width]').value height: +document.querySelector('#qr [name=oekaki-height]').value + bgColor: '#ffffff' button: -> if QR.selected.file @@ -113,7 +114,7 @@ QR.oekaki = FCX.oekakiName = name Tegaki.open onDone: FCX.oekakiCB - onCancel: -> + onCancel: -> Tegaki.bgColor = '#ffffff' width: file.naturalWidth or file.videoWidth height: file.naturalHeight or file.videoHeight bgColor: 'transparent'