pyloid 0.22.0.dev4__tar.gz → 0.22.0.dev5__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.
- {pyloid-0.22.0.dev4 → pyloid-0.22.0.dev5}/PKG-INFO +1 -1
- {pyloid-0.22.0.dev4 → pyloid-0.22.0.dev5}/pyproject.toml +1 -1
- {pyloid-0.22.0.dev4 → pyloid-0.22.0.dev5}/src/pyloid/browser_window.py +1 -21
- {pyloid-0.22.0.dev4 → pyloid-0.22.0.dev5}/LICENSE +0 -0
- {pyloid-0.22.0.dev4 → pyloid-0.22.0.dev5}/README.md +0 -0
- {pyloid-0.22.0.dev4 → pyloid-0.22.0.dev5}/src/pyloid/__init__.py +0 -0
- {pyloid-0.22.0.dev4 → pyloid-0.22.0.dev5}/src/pyloid/api.py +0 -0
- {pyloid-0.22.0.dev4 → pyloid-0.22.0.dev5}/src/pyloid/autostart.py +0 -0
- {pyloid-0.22.0.dev4 → pyloid-0.22.0.dev5}/src/pyloid/custom/titlebar.py +0 -0
- {pyloid-0.22.0.dev4 → pyloid-0.22.0.dev5}/src/pyloid/filewatcher.py +0 -0
- {pyloid-0.22.0.dev4 → pyloid-0.22.0.dev5}/src/pyloid/js_api/base.py +0 -0
- {pyloid-0.22.0.dev4 → pyloid-0.22.0.dev5}/src/pyloid/js_api/event_api.py +0 -0
- {pyloid-0.22.0.dev4 → pyloid-0.22.0.dev5}/src/pyloid/js_api/window_api.py +0 -0
- {pyloid-0.22.0.dev4 → pyloid-0.22.0.dev5}/src/pyloid/monitor.py +0 -0
- {pyloid-0.22.0.dev4 → pyloid-0.22.0.dev5}/src/pyloid/pyloid.py +0 -0
- {pyloid-0.22.0.dev4 → pyloid-0.22.0.dev5}/src/pyloid/serve.py +0 -0
- {pyloid-0.22.0.dev4 → pyloid-0.22.0.dev5}/src/pyloid/thread_pool.py +0 -0
- {pyloid-0.22.0.dev4 → pyloid-0.22.0.dev5}/src/pyloid/timer.py +0 -0
- {pyloid-0.22.0.dev4 → pyloid-0.22.0.dev5}/src/pyloid/tray.py +0 -0
- {pyloid-0.22.0.dev4 → pyloid-0.22.0.dev5}/src/pyloid/utils.py +0 -0
@@ -537,26 +537,6 @@ class _BrowserWindow:
|
|
537
537
|
}
|
538
538
|
});
|
539
539
|
|
540
|
-
function updateTheme(theme) {
|
541
|
-
if (typeof document !== 'undefined') {
|
542
|
-
document.documentElement.setAttribute(
|
543
|
-
'data-pyloid-theme',
|
544
|
-
theme
|
545
|
-
);
|
546
|
-
}
|
547
|
-
}
|
548
|
-
|
549
|
-
// 테마 변경 이벤트 리스너
|
550
|
-
if (typeof document !== 'undefined') {
|
551
|
-
document.addEventListener('themeChange', (e) => {
|
552
|
-
console.log('themeChange event received:', e);
|
553
|
-
updateTheme(e.detail.theme);
|
554
|
-
});
|
555
|
-
|
556
|
-
updateTheme('%s');
|
557
|
-
}
|
558
|
-
|
559
|
-
|
560
540
|
// Dispatch a custom event to signal that the initialization is ready
|
561
541
|
const event = new CustomEvent('pyloidReady');
|
562
542
|
document.dispatchEvent(event);
|
@@ -572,7 +552,7 @@ class _BrowserWindow:
|
|
572
552
|
for js_api in self.js_apis
|
573
553
|
]
|
574
554
|
)
|
575
|
-
self.web_view.page().runJavaScript(js_code % (js_api_init
|
555
|
+
self.web_view.page().runJavaScript(js_code % (js_api_init))
|
576
556
|
|
577
557
|
# if splash screen is set, close it when the page is loaded
|
578
558
|
if self.close_on_load and self.splash_screen:
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|