Skip to content

Commit 4d1700b

Browse files
committed
adjust some ui sizing
1 parent 1c80002 commit 4d1700b

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

koboldcpp.py

+8-8
Original file line numberDiff line numberDiff line change
@@ -608,7 +608,7 @@ def show_new_gui():
608608
return
609609

610610
nextstate = 0 #0=exit, 1=launch, 2=oldgui
611-
windowwidth = 480
611+
windowwidth = 520
612612
windowheight = 480
613613
ctk.set_appearance_mode("dark")
614614
root = ctk.CTk()
@@ -617,7 +617,7 @@ def show_new_gui():
617617
root.title("KoboldCpp v"+KcppVersion)
618618
root.resizable(False,False)
619619

620-
tabs = ctk.CTkFrame(root, corner_radius = 0, width=windowwidth, height=windowheight-40)
620+
tabs = ctk.CTkFrame(root, corner_radius = 0, width=windowwidth, height=windowheight-50)
621621
tabs.grid(row=0, stick="nsew")
622622
tabnames= ["Quick Launch", "Hardware", "Tokens", "Model", "Network"]
623623
navbuttons = {}
@@ -786,7 +786,7 @@ def changerunmode(a,b,c):
786786
# presets selector
787787
makelabel(quick_tab, "Presets:", 1)
788788

789-
runoptbox = ctk.CTkComboBox(quick_tab, values=runopts, width=150,variable=runopts_var, state="readonly")
789+
runoptbox = ctk.CTkComboBox(quick_tab, values=runopts, width=180,variable=runopts_var, state="readonly")
790790
runoptbox.grid(row=1, column=1,padx=8, stick="nw")
791791
runoptbox.set("Use OpenBLAS")
792792

@@ -818,7 +818,7 @@ def changerunmode(a,b,c):
818818

819819
# presets selector
820820
makelabel(hardware_tab, "Presets:", 1)
821-
runoptbox = ctk.CTkComboBox(hardware_tab, values=runopts, width=150,variable=runopts_var, state="readonly")
821+
runoptbox = ctk.CTkComboBox(hardware_tab, values=runopts, width=180,variable=runopts_var, state="readonly")
822822
runoptbox.grid(row=1, column=1,padx=8, stick="nw")
823823
runoptbox.set("Use OpenBLAS")
824824
runopts_var.trace('w', changerunmode)
@@ -914,12 +914,12 @@ def switch_old_gui():
914914
root.destroy()
915915
pass
916916

917-
ctk.CTkButton(tabs , text = "Launch", fg_color="#2f8d3c", command = guilaunch, width=50, height = 25 ).grid(row=1,column=1, stick="se", padx= 25, pady=5)
917+
ctk.CTkButton(tabs , text = "Launch", fg_color="#2f8d3c", command = guilaunch, width=80, height = 35 ).grid(row=1,column=1, stick="se", padx= 25, pady=5)
918918

919-
# ctk.CTkButton(tabs , text = "Save", fg_color="#084a66", command = save_config, width=60, height = 25 ).grid(row=1,column=1, stick="sw", padx= 5, pady=5)
920-
# ctk.CTkButton(tabs , text = "Load", fg_color="#084a66", command = load_config, width=60, height = 25 ).grid(row=1,column=1, stick="sw", padx= 70, pady=5)
919+
# ctk.CTkButton(tabs , text = "Save", fg_color="#084a66", command = save_config, width=60, height = 35 ).grid(row=1,column=1, stick="sw", padx= 5, pady=5)
920+
# ctk.CTkButton(tabs , text = "Load", fg_color="#084a66", command = load_config, width=60, height = 35 ).grid(row=1,column=1, stick="sw", padx= 70, pady=5)
921921

922-
ctk.CTkButton(tabs , text = "Old GUI", fg_color="#084a66", command = switch_old_gui, width=100, height = 25 ).grid(row=1,column=0, stick="sw", padx= 5, pady=5)
922+
ctk.CTkButton(tabs , text = "Old GUI", fg_color="#084a66", command = switch_old_gui, width=100, height = 35 ).grid(row=1,column=0, stick="sw", padx= 5, pady=5)
923923
# runs main loop until closed or launch clicked
924924
root.mainloop()
925925

0 commit comments

Comments
 (0)