diff src/browser/libervia_main.py @ 852:6f0a127077c4

browser: set the background transparent when the register panel is displayed
author souliane <souliane@mailoo.org>
date Sat, 16 Jan 2016 10:49:16 +0100
parents 83a40d786e7a
children fa7703642c0e
line wrap: on
line diff
--- a/src/browser/libervia_main.py	Sat Jan 16 10:48:31 2016 +0100
+++ b/src/browser/libervia_main.py	Sat Jan 16 10:49:16 2016 +0100
@@ -324,6 +324,7 @@
     def _isRegisteredCB(self, result):
         registered, warning = result
         if not registered:
+            self.panel.setStyleAttribute("opacity", "0.25")  # set background transparency
             self._register_box = register.RegisterBox(self.logged)
             self._register_box.centerBox()
             self._register_box.show()
@@ -340,6 +341,7 @@
             self.logged()
 
     def logged(self):
+        self.panel.setStyleAttribute("opacity", "1")  # background becomes foreground
         if self._register_box:
             self._register_box.hide()
             del self._register_box  # don't work if self._register_box is None