Newer Older
32 lines | 1.022kb
Bogdan Timofte authored 2 months ago
1
//
2
//  SidebarBluetoothStatusCardView.swift
3
//  USB Meter
4
//
5

            
6
import SwiftUI
7

            
8
struct SidebarBluetoothStatusCardView: View {
9
    let tint: Color
10
    let statusText: String
11

            
12
    var body: some View {
13
        VStack(alignment: .leading, spacing: 6) {
Bogdan Timofte authored a month ago
14
            HStack(spacing: 8) {
Bogdan Timofte authored 2 months ago
15
                Label("Bluetooth", systemImage: "bolt.horizontal.circle.fill")
16
                    .font(.footnote.weight(.semibold))
17
                    .foregroundColor(tint)
Bogdan Timofte authored a month ago
18
                ContextInfoButton(
19
                    title: "Bluetooth",
20
                    message: "Refer to this adapter state while walking through the Bluetooth and Device troubleshooting steps.",
21
                    popoverWidth: 300
22
                )
Bogdan Timofte authored 2 months ago
23
                Spacer()
24
                Text(statusText)
25
                    .font(.caption.weight(.semibold))
26
                    .foregroundColor(.secondary)
27
            }
28
        }
29
        .padding(14)
30
        .meterCard(tint: tint, fillOpacity: 0.22, strokeOpacity: 0.26, cornerRadius: 18)
31
    }
Bogdan Timofte authored a month ago
32
}