From 7f0d5efccd7fc75587a397f69b4b8a801a2b287c Mon Sep 17 00:00:00 2001 From: j Date: Mon, 15 Feb 2016 21:22:47 +0530 Subject: [PATCH] set text color based on theme --- static/js/oml.update.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/static/js/oml.update.js b/static/js/oml.update.js index 5bb9a22..aec6d55 100644 --- a/static/js/oml.update.js +++ b/static/js/oml.update.js @@ -61,7 +61,8 @@ update.status.style.height = '16px'; update.status.style.margin = 'auto'; update.status.style.textAlign = 'center'; - update.status.style.color = 'rgb(16, 16, 16)'; + update.status.style.color = theme == 'oxdark' ? 'rgb(244, 244, 244)' + : theme == 'oxmedium' ? 'rgb(0, 0, 0)' : 'rgb(16, 16, 16)'; update.status.style.fontFamily = 'Lucida Grande, Segoe UI, DejaVu Sans, Lucida Sans Unicode, Helvetica, Arial, sans-serif'; update.status.style.fontSize = '11px'; document.querySelector('#loadingScreen').appendChild(update.status);