commit 31

This commit is contained in:
2025-07-30 22:41:22 +02:00
parent c010bd53cb
commit f1f85d36c9
3 changed files with 6 additions and 2 deletions

View File

@@ -349,7 +349,11 @@ class CustomFileDialog(tk.Toplevel):
for device_name, mount_point, removable in self._get_mounted_devices():
icon = self.icons['usb_small'] if removable else self.icons['device_small']
btn = ttk.Button(mounted_devices_frame, text=f" {device_name}", image=icon,
button_text = f" {device_name}"
if len(device_name) > 13:
button_text = f" {device_name[:13]}\n{device_name[13:]}"
btn = ttk.Button(mounted_devices_frame, text=button_text, image=icon,
compound="left", command=lambda p=mount_point: self.navigate_to(p), style="Dark.TButton.Borderless")
btn.pack(fill="x", pady=1)
try:

View File

@@ -58,7 +58,7 @@ if __name__ == "__main__":
style = ttk.Style(root)
root.tk.call('source', f"{theme_path}/water.tcl")
try:
root.tk.call('set_theme', 'dark')
root.tk.call('set_theme', 'light')
except tk.TclError:
pass
root.mainloop()