commit 31
This commit is contained in:
Binary file not shown.
@@ -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:
|
||||
|
@@ -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()
|
||||
|
Reference in New Issue
Block a user