From 7537662b6ddbefc6a5cea104d92911c79e9bc693 Mon Sep 17 00:00:00 2001 From: Didi Hoffmann Date: Sun, 10 Dec 2023 20:52:57 +0100 Subject: [PATCH] Closes #20 making table font fixed with --- app/hog/hog/DetailView.swift | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app/hog/hog/DetailView.swift b/app/hog/hog/DetailView.swift index ddbe867..40eb019 100644 --- a/app/hog/hog/DetailView.swift +++ b/app/hog/hog/DetailView.swift @@ -507,19 +507,23 @@ struct TopProcessTable: View { }.width(20) TableColumn("Name", value: \TopProcess.name) + TableColumn("Energy Impact", value: \TopProcess.energy_impact){ line in Text(String(line.energy_impact)) + .font(.system(.body, design: .monospaced)) + } TableColumn("AVG CPU time %", value: \TopProcess.cputime_per){ line in Text(String(line.cputime_per)) + .font(.system(.body, design: .monospaced)) + } } .onChange(of: sortOrder) { newOrder in tpData.sort(using: newOrder) }.foregroundColor(tableColour) - - .tableStyle(.bordered(alternatesRowBackgrounds: true)) + HStack { Spacer() // Pushes the Link to the right side. Link("Description", destination: URL(string: "https://github.com/green-coding-berlin/hog#the-desktop-app")!)