PySide2-Frameless-Window 0.3.1__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.1 → PySide2-Frameless-Window-0.3.2}/PKG-INFO +1 -1
- {PySide2-Frameless-Window-0.3.1 → PySide2-Frameless-Window-0.3.2}/PySide2_Frameless_Window.egg-info/PKG-INFO +1 -1
- {PySide2-Frameless-Window-0.3.1 → PySide2-Frameless-Window-0.3.2}/qframelesswindow/__init__.py +1 -1
- {PySide2-Frameless-Window-0.3.1 → PySide2-Frameless-Window-0.3.2}/qframelesswindow/linux/window_effect.py +4 -1
- {PySide2-Frameless-Window-0.3.1 → PySide2-Frameless-Window-0.3.2}/qframelesswindow/mac/window_effect.py +4 -1
- {PySide2-Frameless-Window-0.3.1 → PySide2-Frameless-Window-0.3.2}/qframelesswindow/windows/window_effect.py +5 -2
- {PySide2-Frameless-Window-0.3.1 → PySide2-Frameless-Window-0.3.2}/setup.py +1 -1
- {PySide2-Frameless-Window-0.3.1 → PySide2-Frameless-Window-0.3.2}/LICENSE +0 -0
- {PySide2-Frameless-Window-0.3.1 → PySide2-Frameless-Window-0.3.2}/PySide2_Frameless_Window.egg-info/SOURCES.txt +0 -0
- {PySide2-Frameless-Window-0.3.1 → PySide2-Frameless-Window-0.3.2}/PySide2_Frameless_Window.egg-info/dependency_links.txt +0 -0
- {PySide2-Frameless-Window-0.3.1 → PySide2-Frameless-Window-0.3.2}/PySide2_Frameless_Window.egg-info/requires.txt +0 -0
- {PySide2-Frameless-Window-0.3.1 → PySide2-Frameless-Window-0.3.2}/PySide2_Frameless_Window.egg-info/top_level.txt +0 -0
- {PySide2-Frameless-Window-0.3.1 → PySide2-Frameless-Window-0.3.2}/README.md +0 -0
- {PySide2-Frameless-Window-0.3.1 → PySide2-Frameless-Window-0.3.2}/qframelesswindow/_rc/__init__.py +0 -0
- {PySide2-Frameless-Window-0.3.1 → PySide2-Frameless-Window-0.3.2}/qframelesswindow/_rc/resource.py +0 -0
- {PySide2-Frameless-Window-0.3.1 → PySide2-Frameless-Window-0.3.2}/qframelesswindow/linux/__init__.py +0 -0
- {PySide2-Frameless-Window-0.3.1 → PySide2-Frameless-Window-0.3.2}/qframelesswindow/mac/__init__.py +0 -0
- {PySide2-Frameless-Window-0.3.1 → PySide2-Frameless-Window-0.3.2}/qframelesswindow/titlebar/__init__.py +0 -0
- {PySide2-Frameless-Window-0.3.1 → PySide2-Frameless-Window-0.3.2}/qframelesswindow/titlebar/title_bar_buttons.py +0 -0
- {PySide2-Frameless-Window-0.3.1 → PySide2-Frameless-Window-0.3.2}/qframelesswindow/utils/__init__.py +0 -0
- {PySide2-Frameless-Window-0.3.1 → PySide2-Frameless-Window-0.3.2}/qframelesswindow/utils/linux_utils.py +0 -0
- {PySide2-Frameless-Window-0.3.1 → PySide2-Frameless-Window-0.3.2}/qframelesswindow/utils/mac_utils.py +0 -0
- {PySide2-Frameless-Window-0.3.1 → PySide2-Frameless-Window-0.3.2}/qframelesswindow/utils/win32_utils.py +0 -0
- {PySide2-Frameless-Window-0.3.1 → PySide2-Frameless-Window-0.3.2}/qframelesswindow/windows/__init__.py +0 -0
- {PySide2-Frameless-Window-0.3.1 → PySide2-Frameless-Window-0.3.2}/qframelesswindow/windows/c_structures.py +0 -0
- {PySide2-Frameless-Window-0.3.1 → 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,7 +25,7 @@ class LinuxWindowEffect:
|
|
|
25
25
|
"""
|
|
26
26
|
pass
|
|
27
27
|
|
|
28
|
-
def setMicaEffect(self, hWnd, isDarkMode=False):
|
|
28
|
+
def setMicaEffect(self, hWnd, isDarkMode=False, isAlt=False):
|
|
29
29
|
""" Add mica effect to the window (Win11 only)
|
|
30
30
|
|
|
31
31
|
Parameters
|
|
@@ -35,6 +35,9 @@ class LinuxWindowEffect:
|
|
|
35
35
|
|
|
36
36
|
isDarkMode: bool
|
|
37
37
|
whether to use dark mode mica effect
|
|
38
|
+
|
|
39
|
+
isAlt: bool
|
|
40
|
+
whether to use mica alt effect
|
|
38
41
|
"""
|
|
39
42
|
pass
|
|
40
43
|
|
|
@@ -55,7 +55,7 @@ class MacWindowEffect:
|
|
|
55
55
|
content.addSubview_positioned_relativeTo_(
|
|
56
56
|
visualEffectView, Cocoa.NSWindowBelow, container)
|
|
57
57
|
|
|
58
|
-
def setMicaEffect(self, hWnd, isDarkMode=False):
|
|
58
|
+
def setMicaEffect(self, hWnd, isDarkMode=False, isAlt=False):
|
|
59
59
|
""" Add mica effect to the window (Win11 only)
|
|
60
60
|
|
|
61
61
|
Parameters
|
|
@@ -65,6 +65,9 @@ class MacWindowEffect:
|
|
|
65
65
|
|
|
66
66
|
isDarkMode: bool
|
|
67
67
|
whether to use dark mode mica effect
|
|
68
|
+
|
|
69
|
+
isAlt: bool
|
|
70
|
+
whether to use mica alt effect
|
|
68
71
|
"""
|
|
69
72
|
self.setAcrylicEffect(hWnd)
|
|
70
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,7 @@ 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)
|
|
112
115
|
|
|
113
116
|
self.DwmSetWindowAttribute(hWnd, 20, byref(c_int(1*isDarkMode)), 4)
|
|
114
117
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{PySide2-Frameless-Window-0.3.1 → PySide2-Frameless-Window-0.3.2}/qframelesswindow/_rc/__init__.py
RENAMED
|
File without changes
|
{PySide2-Frameless-Window-0.3.1 → PySide2-Frameless-Window-0.3.2}/qframelesswindow/_rc/resource.py
RENAMED
|
File without changes
|
{PySide2-Frameless-Window-0.3.1 → PySide2-Frameless-Window-0.3.2}/qframelesswindow/linux/__init__.py
RENAMED
|
File without changes
|
{PySide2-Frameless-Window-0.3.1 → 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.1 → 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
|