mirror of
https://github.com/Flowseal/tg-ws-proxy.git
synced 2026-09-05 18:16:11 +03:00
remove topmost
This commit is contained in:
@@ -147,8 +147,8 @@ def _edit_config_dialog() -> None:
|
|||||||
theme = ctk_theme_for_platform()
|
theme = ctk_theme_for_platform()
|
||||||
w, h = CONFIG_DIALOG_SIZE
|
w, h = CONFIG_DIALOG_SIZE
|
||||||
root = create_ctk_toplevel(
|
root = create_ctk_toplevel(
|
||||||
ctk, title=t("app.settings_title"), width=w, height=h, theme=theme,
|
ctk, title=t("app.settings_title"), width=w, height=h,
|
||||||
after_create=_apply_window_icon,
|
theme=theme, topmost=False, after_create=_apply_window_icon
|
||||||
)
|
)
|
||||||
fpx, fpy = CONFIG_DIALOG_FRAME_PAD
|
fpx, fpy = CONFIG_DIALOG_FRAME_PAD
|
||||||
frame = main_content_frame(ctk, root, theme, padx=fpx, pady=fpy)
|
frame = main_content_frame(ctk, root, theme, padx=fpx, pady=fpy)
|
||||||
@@ -244,7 +244,7 @@ def _show_first_run() -> None:
|
|||||||
w, h = FIRST_RUN_SIZE
|
w, h = FIRST_RUN_SIZE
|
||||||
root = create_ctk_toplevel(
|
root = create_ctk_toplevel(
|
||||||
ctk, title=t("app.name"), width=w, height=h, theme=theme,
|
ctk, title=t("app.name"), width=w, height=h, theme=theme,
|
||||||
after_create=_apply_window_icon,
|
topmost=False, after_create=_apply_window_icon,
|
||||||
)
|
)
|
||||||
|
|
||||||
def on_done(open_tg: bool) -> None:
|
def on_done(open_tg: bool) -> None:
|
||||||
|
|||||||
@@ -348,6 +348,7 @@ def _edit_config_dialog() -> None:
|
|||||||
width=width,
|
width=width,
|
||||||
height=height,
|
height=height,
|
||||||
theme=theme,
|
theme=theme,
|
||||||
|
topmost=False,
|
||||||
after_create=lambda window: _activate_app(),
|
after_create=lambda window: _activate_app(),
|
||||||
)
|
)
|
||||||
_settings_window = root
|
_settings_window = root
|
||||||
@@ -471,6 +472,7 @@ def _show_first_run() -> None:
|
|||||||
width=width,
|
width=width,
|
||||||
height=height,
|
height=height,
|
||||||
theme=theme,
|
theme=theme,
|
||||||
|
topmost=False,
|
||||||
after_create=lambda window: _activate_app(),
|
after_create=lambda window: _activate_app(),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
+3
-2
@@ -150,6 +150,7 @@ def update_ctk_form(
|
|||||||
width=310 if IS_FROZEN else 210,
|
width=310 if IS_FROZEN else 210,
|
||||||
height=130 if IS_FROZEN else 100,
|
height=130 if IS_FROZEN else 100,
|
||||||
theme=theme,
|
theme=theme,
|
||||||
|
topmost=False,
|
||||||
after_create=lambda r: r.iconbitmap(ICON_PATH),
|
after_create=lambda r: r.iconbitmap(ICON_PATH),
|
||||||
)
|
)
|
||||||
frame = main_content_frame(ctk, root, theme, padx=16, pady=14)
|
frame = main_content_frame(ctk, root, theme, padx=16, pady=14)
|
||||||
@@ -510,7 +511,7 @@ def _edit_config_dialog() -> None:
|
|||||||
|
|
||||||
root = create_ctk_toplevel(
|
root = create_ctk_toplevel(
|
||||||
ctk, title=t("app.settings_title"), width=w, height=h, theme=theme,
|
ctk, title=t("app.settings_title"), width=w, height=h, theme=theme,
|
||||||
after_create=lambda r: r.iconbitmap(ICON_PATH),
|
topmost=False, after_create=lambda r: r.iconbitmap(ICON_PATH),
|
||||||
)
|
)
|
||||||
fpx, fpy = CONFIG_DIALOG_FRAME_PAD
|
fpx, fpy = CONFIG_DIALOG_FRAME_PAD
|
||||||
frame = main_content_frame(ctk, root, theme, padx=fpx, pady=fpy)
|
frame = main_content_frame(ctk, root, theme, padx=fpx, pady=fpy)
|
||||||
@@ -609,7 +610,7 @@ def _show_first_run() -> None:
|
|||||||
w, h = FIRST_RUN_SIZE
|
w, h = FIRST_RUN_SIZE
|
||||||
root = create_ctk_toplevel(
|
root = create_ctk_toplevel(
|
||||||
ctk, title=t("app.name"), width=w, height=h, theme=theme,
|
ctk, title=t("app.name"), width=w, height=h, theme=theme,
|
||||||
after_create=lambda r: r.iconbitmap(ICON_PATH),
|
topmost=False, after_create=lambda r: r.iconbitmap(ICON_PATH),
|
||||||
)
|
)
|
||||||
|
|
||||||
def on_done(open_tg: bool) -> None:
|
def on_done(open_tg: bool) -> None:
|
||||||
|
|||||||
Reference in New Issue
Block a user