PySide2-Frameless-Window 0.3.0__tar.gz → 0.3.2__tar.gz
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.
- {PySide2-Frameless-Window-0.3.0 → PySide2-Frameless-Window-0.3.2}/PKG-INFO +1 -1
- {PySide2-Frameless-Window-0.3.0 → PySide2-Frameless-Window-0.3.2}/PySide2_Frameless_Window.egg-info/PKG-INFO +1 -1
- {PySide2-Frameless-Window-0.3.0 → PySide2-Frameless-Window-0.3.2}/qframelesswindow/__init__.py +1 -1
- {PySide2-Frameless-Window-0.3.0 → PySide2-Frameless-Window-0.3.2}/qframelesswindow/linux/window_effect.py +7 -1
- {PySide2-Frameless-Window-0.3.0 → PySide2-Frameless-Window-0.3.2}/qframelesswindow/mac/window_effect.py +7 -1
- {PySide2-Frameless-Window-0.3.0 → PySide2-Frameless-Window-0.3.2}/qframelesswindow/windows/window_effect.py +7 -2
- {PySide2-Frameless-Window-0.3.0 → PySide2-Frameless-Window-0.3.2}/setup.py +1 -1
- {PySide2-Frameless-Window-0.3.0 → PySide2-Frameless-Window-0.3.2}/LICENSE +0 -0
- {PySide2-Frameless-Window-0.3.0 → PySide2-Frameless-Window-0.3.2}/PySide2_Frameless_Window.egg-info/SOURCES.txt +0 -0
- {PySide2-Frameless-Window-0.3.0 → PySide2-Frameless-Window-0.3.2}/PySide2_Frameless_Window.egg-info/dependency_links.txt +0 -0
- {PySide2-Frameless-Window-0.3.0 → PySide2-Frameless-Window-0.3.2}/PySide2_Frameless_Window.egg-info/requires.txt +0 -0
- {PySide2-Frameless-Window-0.3.0 → PySide2-Frameless-Window-0.3.2}/PySide2_Frameless_Window.egg-info/top_level.txt +0 -0
- {PySide2-Frameless-Window-0.3.0 → PySide2-Frameless-Window-0.3.2}/README.md +0 -0
- {PySide2-Frameless-Window-0.3.0 → PySide2-Frameless-Window-0.3.2}/qframelesswindow/_rc/__init__.py +0 -0
- {PySide2-Frameless-Window-0.3.0 → PySide2-Frameless-Window-0.3.2}/qframelesswindow/_rc/resource.py +0 -0
- {PySide2-Frameless-Window-0.3.0 → PySide2-Frameless-Window-0.3.2}/qframelesswindow/linux/__init__.py +0 -0
- {PySide2-Frameless-Window-0.3.0 → PySide2-Frameless-Window-0.3.2}/qframelesswindow/mac/__init__.py +0 -0
- {PySide2-Frameless-Window-0.3.0 → PySide2-Frameless-Window-0.3.2}/qframelesswindow/titlebar/__init__.py +0 -0
- {PySide2-Frameless-Window-0.3.0 → PySide2-Frameless-Window-0.3.2}/qframelesswindow/titlebar/title_bar_buttons.py +0 -0
- {PySide2-Frameless-Window-0.3.0 → PySide2-Frameless-Window-0.3.2}/qframelesswindow/utils/__init__.py +0 -0
- {PySide2-Frameless-Window-0.3.0 → PySide2-Frameless-Window-0.3.2}/qframelesswindow/utils/linux_utils.py +0 -0
- {PySide2-Frameless-Window-0.3.0 → PySide2-Frameless-Window-0.3.2}/qframelesswindow/utils/mac_utils.py +0 -0
- {PySide2-Frameless-Window-0.3.0 → PySide2-Frameless-Window-0.3.2}/qframelesswindow/utils/win32_utils.py +0 -0
- {PySide2-Frameless-Window-0.3.0 → PySide2-Frameless-Window-0.3.2}/qframelesswindow/windows/__init__.py +0 -0
- {PySide2-Frameless-Window-0.3.0 → PySide2-Frameless-Window-0.3.2}/qframelesswindow/windows/c_structures.py +0 -0
- {PySide2-Frameless-Window-0.3.0 → PySide2-Frameless-Window-0.3.2}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: PySide2-Frameless-Window
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.2
|
|
4
4
|
Summary: A cross-platform frameless window based on pyside2, support Win32, Linux and macOS.
|
|
5
5
|
Home-page: https://github.com/zhiyiYo/PyQt-Frameless-Window/tree/Pyside2
|
|
6
6
|
Author: zhiyiYo
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: PySide2-Frameless-Window
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.2
|
|
4
4
|
Summary: A cross-platform frameless window based on pyside2, support Win32, Linux and macOS.
|
|
5
5
|
Home-page: https://github.com/zhiyiYo/PyQt-Frameless-Window/tree/Pyside2
|
|
6
6
|
Author: zhiyiYo
|
|
@@ -25,13 +25,19 @@ class LinuxWindowEffect:
|
|
|
25
25
|
"""
|
|
26
26
|
pass
|
|
27
27
|
|
|
28
|
-
def setMicaEffect(self, hWnd):
|
|
28
|
+
def setMicaEffect(self, hWnd, isDarkMode=False, isAlt=False):
|
|
29
29
|
""" Add mica effect to the window (Win11 only)
|
|
30
30
|
|
|
31
31
|
Parameters
|
|
32
32
|
----------
|
|
33
33
|
hWnd: int or `sip.voidptr`
|
|
34
34
|
Window handle
|
|
35
|
+
|
|
36
|
+
isDarkMode: bool
|
|
37
|
+
whether to use dark mode mica effect
|
|
38
|
+
|
|
39
|
+
isAlt: bool
|
|
40
|
+
whether to use mica alt effect
|
|
35
41
|
"""
|
|
36
42
|
pass
|
|
37
43
|
|
|
@@ -55,13 +55,19 @@ class MacWindowEffect:
|
|
|
55
55
|
content.addSubview_positioned_relativeTo_(
|
|
56
56
|
visualEffectView, Cocoa.NSWindowBelow, container)
|
|
57
57
|
|
|
58
|
-
def setMicaEffect(self, hWnd):
|
|
58
|
+
def setMicaEffect(self, hWnd, isDarkMode=False, isAlt=False):
|
|
59
59
|
""" Add mica effect to the window (Win11 only)
|
|
60
60
|
|
|
61
61
|
Parameters
|
|
62
62
|
----------
|
|
63
63
|
hWnd: int or `sip.voidptr`
|
|
64
64
|
Window handle
|
|
65
|
+
|
|
66
|
+
isDarkMode: bool
|
|
67
|
+
whether to use dark mode mica effect
|
|
68
|
+
|
|
69
|
+
isAlt: bool
|
|
70
|
+
whether to use mica alt effect
|
|
65
71
|
"""
|
|
66
72
|
self.setAcrylicEffect(hWnd)
|
|
67
73
|
|
|
@@ -78,7 +78,7 @@ class WindowsWindowEffect:
|
|
|
78
78
|
self.winCompAttrData.Attribute = WINDOWCOMPOSITIONATTRIB.WCA_ACCENT_POLICY.value
|
|
79
79
|
self.SetWindowCompositionAttribute(hWnd, pointer(self.winCompAttrData))
|
|
80
80
|
|
|
81
|
-
def setMicaEffect(self, hWnd, isDarkMode=False):
|
|
81
|
+
def setMicaEffect(self, hWnd, isDarkMode=False, isAlt=False):
|
|
82
82
|
""" Add the mica effect to the window (Win11 only)
|
|
83
83
|
|
|
84
84
|
Parameters
|
|
@@ -88,6 +88,9 @@ class WindowsWindowEffect:
|
|
|
88
88
|
|
|
89
89
|
isDarkMode: bool
|
|
90
90
|
whether to use dark mode mica effect
|
|
91
|
+
|
|
92
|
+
isAlt: bool
|
|
93
|
+
whether to enable mica alt effect
|
|
91
94
|
"""
|
|
92
95
|
if not isGreaterEqualWin11():
|
|
93
96
|
warnings.warn("The mica effect is only available on Win11")
|
|
@@ -108,7 +111,9 @@ class WindowsWindowEffect:
|
|
|
108
111
|
if sys.getwindowsversion().build < 22523:
|
|
109
112
|
self.DwmSetWindowAttribute(hWnd, 1029, byref(c_int(1)), 4)
|
|
110
113
|
else:
|
|
111
|
-
self.DwmSetWindowAttribute(hWnd, 38, byref(c_int(2)), 4)
|
|
114
|
+
self.DwmSetWindowAttribute(hWnd, 38, byref(c_int(4 if isAlt else 2)), 4)
|
|
115
|
+
|
|
116
|
+
self.DwmSetWindowAttribute(hWnd, 20, byref(c_int(1*isDarkMode)), 4)
|
|
112
117
|
|
|
113
118
|
def setAeroEffect(self, hWnd):
|
|
114
119
|
""" Add the aero effect to the window
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{PySide2-Frameless-Window-0.3.0 → PySide2-Frameless-Window-0.3.2}/qframelesswindow/_rc/__init__.py
RENAMED
|
File without changes
|
{PySide2-Frameless-Window-0.3.0 → PySide2-Frameless-Window-0.3.2}/qframelesswindow/_rc/resource.py
RENAMED
|
File without changes
|
{PySide2-Frameless-Window-0.3.0 → PySide2-Frameless-Window-0.3.2}/qframelesswindow/linux/__init__.py
RENAMED
|
File without changes
|
{PySide2-Frameless-Window-0.3.0 → PySide2-Frameless-Window-0.3.2}/qframelesswindow/mac/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{PySide2-Frameless-Window-0.3.0 → PySide2-Frameless-Window-0.3.2}/qframelesswindow/utils/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|