Skip to content

Commit

Permalink
Closes #20 making table font fixed with
Browse files Browse the repository at this point in the history
  • Loading branch information
ribalba committed Dec 10, 2023
1 parent 1df4df5 commit 7537662
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions app/hog/hog/DetailView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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")!)
Expand Down

0 comments on commit 7537662

Please sign in to comment.