Anpassungen GUI
Dieser Commit ist enthalten in:
@ -315,8 +315,9 @@ class MainWindow:
|
||||
# Get all projects
|
||||
projects = self.project_manager.get_all_projects()
|
||||
|
||||
# Update count
|
||||
project_count = len([p for p in projects if p.id not in ["vps-permanent", "admin-panel-permanent", "vps-docker-permanent"]])
|
||||
# Update count (only local projects)
|
||||
vps_ids = ["vps-permanent", "admin-panel-permanent", "vps-docker-permanent", "activity-server-permanent"]
|
||||
project_count = len([p for p in projects if p.id not in vps_ids])
|
||||
self.count_label.configure(text=f"{project_count} project{'s' if project_count != 1 else ''}")
|
||||
|
||||
if differential and self.project_tiles:
|
||||
@ -371,9 +372,41 @@ class MainWindow:
|
||||
self.create_project_tile_flow(vps_docker_project, current_row_frame, is_vps=True)
|
||||
tiles_in_current_row += 1
|
||||
|
||||
# Add project tiles
|
||||
# Add Activity Server tile fourth
|
||||
activity_project = next((p for p in projects if p.id == "activity-server-permanent"), None)
|
||||
if activity_project:
|
||||
if tiles_in_current_row >= tiles_per_row:
|
||||
create_new_row()
|
||||
self.create_project_tile_flow(activity_project, current_row_frame, is_vps=True)
|
||||
tiles_in_current_row += 1
|
||||
|
||||
# Add separator line between VPS tiles and local projects
|
||||
separator_frame = ctk.CTkFrame(self.flow_frame, fg_color="transparent")
|
||||
separator_frame.pack(fill="x", pady=15)
|
||||
|
||||
# Use a more visible separator
|
||||
separator_line = ctk.CTkFrame(
|
||||
separator_frame,
|
||||
height=2, # Thicker line
|
||||
fg_color=COLORS['accent_secondary'] # More visible blue-gray color
|
||||
)
|
||||
separator_line.pack(fill="x", padx=20)
|
||||
|
||||
# Label for local projects section
|
||||
local_label = ctk.CTkLabel(
|
||||
self.flow_frame,
|
||||
text="Lokale Projekte",
|
||||
font=FONTS['tile_text'],
|
||||
text_color=COLORS['text_secondary']
|
||||
)
|
||||
local_label.pack(pady=(0, 10))
|
||||
|
||||
# Start new row for local projects
|
||||
create_new_row()
|
||||
|
||||
# Add local project tiles
|
||||
for project in projects:
|
||||
if project.id not in ["vps-permanent", "admin-panel-permanent", "vps-docker-permanent"]:
|
||||
if project.id not in vps_ids:
|
||||
if tiles_in_current_row >= tiles_per_row:
|
||||
create_new_row()
|
||||
self.create_project_tile_flow(project, current_row_frame)
|
||||
|
||||
In neuem Issue referenzieren
Einen Benutzer sperren