[bugfix] Main Window: Main Window Cover: UI崩壊修正続き。SetProcessDpiAwareness 1 -> 0

[bugfix] 設定画面を開いた時にカバーするWindowがずれるのを修正するため、メイン画面を移動した時に毎回lift(最前面に表示)する機能を削除。
[Update] Main Window: ウィンドウサイズの幅を縮めた時に、テキストボックスのサイズが一定以上縮まず、ログが折り返されなかったので、折り返されるように改善。それにより幅固定を外したので、起動時にgeometryを指定するなどしている。
※上記相互に影響しているためまとめて編集しました。
This commit is contained in:
Sakamoto Shiina
2023-10-16 10:09:59 +09:00
parent 465f9f9628
commit 16cac0d557
5 changed files with 19 additions and 21 deletions

View File

@@ -6,9 +6,9 @@ from ._create_sidebar import createSidebarFeatures, createSidebarLanguagesSettin
def createSidebar(settings, main_window, view_variable):
# Side Bar Container
main_window.grid_rowconfigure(0, weight=1)
main_window.toplevel_wrapper.grid_rowconfigure(0, weight=1)
main_window.sidebar_bg_container_wrapper = CTkFrame(main_window, corner_radius=0, fg_color=settings.ctm.SIDEBAR_BG_COLOR, width=0, height=0)
main_window.sidebar_bg_container_wrapper = CTkFrame(main_window.toplevel_wrapper, corner_radius=0, fg_color=settings.ctm.SIDEBAR_BG_COLOR, width=0, height=0)
main_window.sidebar_bg_container_wrapper.grid(row=0, column=0, sticky="nsew")
@@ -16,7 +16,7 @@ def createSidebar(settings, main_window, view_variable):
main_window.sidebar_compact_mode_bg_container = CTkFrame(main_window.sidebar_bg_container_wrapper, corner_radius=0, fg_color=settings.ctm.SIDEBAR_BG_COLOR, width=0, height=0)
main_window.sidebar_bg_container.grid_columnconfigure(0, weight=1)
main_window.sidebar_bg_container.grid_columnconfigure(0, weight=1, minsize=settings.uism.SIDEBAR_MIN_WIDTH)
main_window.sidebar_compact_mode_bg_container.grid_columnconfigure(0, weight=1)