Skip to content

armgit / peel

Public Imported from GitHub
0

Uninstall Mac apps with every file they leave behind, and see why each belongs. Free up space, fine-tune macOS, and set up Terminal.

582 B
Raw Blame
import SwiftUI

/// A warning or a state beside a setting or under a row. The symbol takes the color and the words keep the text's
/// own: a colored word reads under 4.5:1 on a light background, orange at about 2.3.
struct StatusLabel: View {
    let title: Text
    var systemImage = "exclamationmark.triangle"
    var tint: Color = .orange

    var body: some View {
        LeavesRowSeparatorAlone {
            Label {
                title
            } icon: {
                Image(systemName: systemImage)
                    .rowTint(tint)
            }
        }
    }
}