pyloid 0.10.0__py3-none-any.whl → 0.10.2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
pyloid/pyloid.py CHANGED
@@ -8,7 +8,7 @@ from PySide6.QtWidgets import (
8
8
  )
9
9
  from PySide6.QtWebEngineWidgets import QWebEngineView
10
10
  from PySide6.QtWebChannel import QWebChannel
11
- from PySide6.QtGui import QIcon, QKeySequence, QShortcut, QClipboard, QImage, QAction
11
+ from PySide6.QtGui import QIcon, QKeySequence, QShortcut, QClipboard, QImage, QAction, QPalette, QColor
12
12
  from PySide6.QtCore import Qt, Signal, QUrl, QObject, QTimer
13
13
  from PySide6.QtNetwork import QLocalServer, QLocalSocket
14
14
  from PySide6.QtWebEngineCore import QWebEnginePage, QWebEngineSettings
@@ -22,12 +22,14 @@ from .monitor import Monitor
22
22
  import json
23
23
  from .autostart import AutoStart
24
24
  from .filewatcher import FileWatcher
25
+ import logging
26
+ from PySide6.QtCore import QCoreApplication
25
27
 
26
28
  # for linux debug
27
29
  os.environ["QTWEBENGINE_DICTIONARIES_PATH"] = "/"
28
30
 
29
31
  # for macos debug
30
-
32
+ logging.getLogger('Qt').setLevel(logging.ERROR)
31
33
 
32
34
  def custom_message_handler(mode, context, message):
33
35
  if not hasattr(custom_message_handler, "vulkan_warning_shown") and (
@@ -351,10 +353,13 @@ class BrowserWindow:
351
353
  def set_frame(self, frame: bool):
352
354
  """Sets the frame of the window."""
353
355
  self.frame = frame
356
+ was_visible = self._window.isVisible()
354
357
  if self.frame:
355
358
  self._window.setWindowFlags(Qt.Window)
356
359
  else:
357
360
  self._window.setWindowFlags(Qt.FramelessWindowHint)
361
+ if was_visible:
362
+ self._window.show()
358
363
 
359
364
  def set_context_menu(self, context_menu: bool):
360
365
  """Sets the context menu of the window."""
@@ -198,4 +198,4 @@ Apache License
198
198
  distributed under the License is distributed on an "AS IS" BASIS,
199
199
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
200
  See the License for the specific language governing permissions and
201
- limitations under the License.
201
+ limitations under the License.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pyloid
3
- Version: 0.10.0
3
+ Version: 0.10.2
4
4
  Summary:
5
5
  Author: aesthetics-of-record
6
6
  Author-email: 111675679+aesthetics-of-record@users.noreply.github.com
@@ -3,10 +3,10 @@ pyloid/api.py,sha256=whgfvPr1A6iwZ1Ewo-0FnOUNnt1K58c-P7YjzuQHcUM,194
3
3
  pyloid/autostart.py,sha256=K7DQYl4LHItvPp0bt1V9WwaaZmVSTeGvadkcwG-KKrI,3899
4
4
  pyloid/filewatcher.py,sha256=n8N56D65le5TpsgxXb7z-FO_0lqv4UYD4yGq_UuMrAs,1285
5
5
  pyloid/monitor.py,sha256=fqDnZ_7dpxVZLVJ5gCluDRY2USrQ5YL_fw1AnYivhsk,12741
6
- pyloid/pyloid.py,sha256=XQ6Tht37P0W1io9B4bA163TYSsL41msYmurx6X7fHtI,40227
6
+ pyloid/pyloid.py,sha256=s3oES8HVgW53mYxizUzcVIYDNOhMADuEkYKuv5IlBtQ,40459
7
7
  pyloid/tray.py,sha256=rXgdkvzGxtie_EIcTSA7fjuta4nJk5THhNkGFcfv5Ew,634
8
8
  pyloid/utils.py,sha256=DQerZWU_0o8dHcJ5y3yXf9i5OXn7KQZqU-hVBq3uPUA,711
9
- pyloid-0.10.0.dist-info/LICENSE,sha256=MTYF-6xpRekyTUglRweWtbfbwBL1I_3Bgfbm_SNOuI8,11525
10
- pyloid-0.10.0.dist-info/METADATA,sha256=rEpRbZ71xxDl9X9NB7w6lIr70uAXOrzveQ_dPb4SO8s,6068
11
- pyloid-0.10.0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
12
- pyloid-0.10.0.dist-info/RECORD,,
9
+ pyloid-0.10.2.dist-info/LICENSE,sha256=F96EzotgWhhpnQTW2TcdoqrMDir1jyEo6H915tGQ-QE,11524
10
+ pyloid-0.10.2.dist-info/METADATA,sha256=wnzUpr44CzzouCGHgoVKsDVHWnbE1QY1E1tHZ4TpK9Y,6068
11
+ pyloid-0.10.2.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
12
+ pyloid-0.10.2.dist-info/RECORD,,