Skip to content

Commit

Permalink
Add thin line around slices in pie chart
Browse files Browse the repository at this point in the history
  • Loading branch information
dsnallfot committed Jun 18, 2024
1 parent 6bfd1b7 commit ea9b1e9
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 6 deletions.
8 changes: 4 additions & 4 deletions LoopFollow/Controllers/StatsView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -65,20 +65,20 @@ extension MainViewController {

if pieData[i].name == "high" {
if UserDefaultsRepository.colorBGText.value {
let color = UIColor.systemPurple.withAlphaComponent(0.9)
let color = UIColor.systemPurple.withAlphaComponent(0.8)
colors.append(color)
} else {
if let color = UIColor(named: "LoopYellow")?.withAlphaComponent(0.9) {
if let color = UIColor(named: "LoopYellow")?.withAlphaComponent(0.8) {
colors.append(color)
}
}

} else if pieData[i].name == "low" {
if let color = UIColor(named: "LoopRed")?.withAlphaComponent(0.9) {
if let color = UIColor(named: "LoopRed")?.withAlphaComponent(0.8) {
colors.append(color)
}
} else {
if let color = UIColor(named: "LoopGreen")?.withAlphaComponent(0.9) {
if let color = UIColor(named: "LoopGreen")?.withAlphaComponent(0.8) {
colors.append(color)
}
}
Expand Down
15 changes: 13 additions & 2 deletions Pods/Charts/Source/Charts/Renderers/PieChartRenderer.swift

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ea9b1e9

Please sign in to comment.