Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions Sources/MarkdownText/UI/UnorderedListView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import SwiftUI

struct UnorderedListView: View {

@Environment(\.markdownConfig) var config: MarkdownRenderConfig

let items: [MarkdownListItem]
let nestedLevel: Int

Expand Down Expand Up @@ -44,19 +46,19 @@ struct UnorderedListView: View {
Image(systemName: checkbox == .checked ? "checkmark.square.fill" : "square")
.resizable()
.frame(width: 12, height: 12)
.foregroundStyle( Color.Theme.Foreground.Primary.Primary450)
.foregroundStyle(config.orderedListStyle.textColor)
.transition(.opacity)
} else if nestedLevel % 2 == 0 {
Image(systemName: "circle.fill")
.resizable()
.frame(width: 4, height: 4)
.foregroundStyle( Color.Theme.Foreground.Primary.Primary450)
.foregroundStyle(config.orderedListStyle.textColor)
.transition(.opacity)
} else {
Image(systemName: "circle")
.resizable()
.frame(width: 4, height: 4)
.foregroundStyle( Color.Theme.Foreground.Primary.Primary450)
.foregroundStyle(config.orderedListStyle.textColor)
.transition(.opacity)
}
}.frame(width: 22.0)
Expand Down