before grid manager is used
This commit is contained in:
@ -22,7 +22,7 @@ class LXToolsAppConfig:
|
||||
VERSION = "1.1.3"
|
||||
APP_NAME = "LX Tools Installer"
|
||||
WINDOW_WIDTH = 500
|
||||
WINDOW_HEIGHT = 700
|
||||
WINDOW_HEIGHT = 720
|
||||
|
||||
# Working directory
|
||||
WORK_DIR = os.getcwd()
|
||||
@ -1110,6 +1110,7 @@ class LXToolsGUI:
|
||||
self.root.iconphoto(False, icon)
|
||||
except:
|
||||
pass
|
||||
# self.root.minsize(LXToolsAppConfig.WINDOW_WIDTH, LXToolsAppConfig.WINDOW_HEIGHT)
|
||||
ThemeManager.apply_light_theme(self.root)
|
||||
# Create header
|
||||
self._create_header()
|
||||
@ -1493,36 +1494,32 @@ class LXToolsGUI:
|
||||
def _create_modern_buttons(self):
|
||||
"""Create modern styled buttons"""
|
||||
button_frame = tk.Frame(self.root, bg=self.colors["bg"])
|
||||
button_frame.pack(fill="x", padx=15, pady=(0, 15))
|
||||
button_frame.pack(fill="x", padx=15, pady=(5, 10))
|
||||
|
||||
# Button style configuration
|
||||
style = ttk.Style()
|
||||
|
||||
# Install button (green)
|
||||
style.configure(
|
||||
"Install.TButton", foreground="#27ae60", font=("Helvetica", 10, "bold")
|
||||
)
|
||||
style.configure("Install.TButton", foreground="#27ae60", font=("Helvetica", 11))
|
||||
style.map(
|
||||
"Install.TButton",
|
||||
foreground=[("active", "#2ecc71"), ("pressed", "#1e8449")],
|
||||
foreground=[("active", "#14542f"), ("pressed", "#1e8449")],
|
||||
)
|
||||
|
||||
# Uninstall button (red)
|
||||
style.configure(
|
||||
"Uninstall.TButton", foreground="#e74c3c", font=("Helvetica", 10, "bold")
|
||||
"Uninstall.TButton", foreground="#e74c3c", font=("Helvetica", 11)
|
||||
)
|
||||
style.map(
|
||||
"Uninstall.TButton",
|
||||
foreground=[("active", "#ec7063"), ("pressed", "#c0392b")],
|
||||
foreground=[("active", "#7d3b34"), ("pressed", "#c0392b")],
|
||||
)
|
||||
|
||||
# Refresh button (blue)
|
||||
style.configure(
|
||||
"Refresh.TButton", foreground="#3498db", font=("Helvetica", 10, "bold")
|
||||
)
|
||||
style.configure("Refresh.TButton", foreground="#3498db", font=("Helvetica", 11))
|
||||
style.map(
|
||||
"Refresh.TButton",
|
||||
foreground=[("active", "#5dade2"), ("pressed", "#2980b9")],
|
||||
foreground=[("active", "#1e3747"), ("pressed", "#2980b9")],
|
||||
)
|
||||
|
||||
# Create buttons
|
||||
@ -1531,6 +1528,7 @@ class LXToolsGUI:
|
||||
text="Install/Update Selected",
|
||||
command=self.install_selected,
|
||||
style="Install.TButton",
|
||||
padding=8,
|
||||
)
|
||||
install_btn.pack(side="left", padx=(0, 10))
|
||||
|
||||
@ -1539,6 +1537,7 @@ class LXToolsGUI:
|
||||
text="Uninstall Selected",
|
||||
command=self.uninstall_selected,
|
||||
style="Uninstall.TButton",
|
||||
padding=8,
|
||||
)
|
||||
uninstall_btn.pack(side="left", padx=(0, 10))
|
||||
|
||||
@ -1547,6 +1546,7 @@ class LXToolsGUI:
|
||||
text="Refresh Status",
|
||||
command=self.refresh_status,
|
||||
style="Refresh.TButton",
|
||||
padding=8,
|
||||
)
|
||||
refresh_btn.pack(side="right")
|
||||
|
||||
@ -1596,7 +1596,7 @@ class LXToolsGUI:
|
||||
self.update_progress("Refreshing status and checking versions...")
|
||||
self._reset_download_icon()
|
||||
self.log_message("=== Refreshing Status ===")
|
||||
|
||||
self.root.focus_set()
|
||||
for project_key, project_info in self.app_manager.get_all_projects().items():
|
||||
status_label = self.status_labels[project_key]
|
||||
version_label = self.version_labels[project_key]
|
||||
@ -1688,6 +1688,7 @@ class LXToolsGUI:
|
||||
"Repository Error", "Cannot access repository.\nPlease try again later."
|
||||
)
|
||||
return
|
||||
self.root.focus_set()
|
||||
|
||||
# Reset download icon
|
||||
self._reset_download_icon()
|
||||
@ -1763,6 +1764,7 @@ class LXToolsGUI:
|
||||
self.refresh_status()
|
||||
except Exception as e:
|
||||
messagebox.showerror("Error", f"Uninstallation failed: {e}")
|
||||
self.root.focus_set()
|
||||
|
||||
################### Teil 18 - GUI Helper Methods ###################
|
||||
def update_progress(self, message):
|
||||
|
Reference in New Issue
Block a user