mirror of
https://github.com/yJason/ClashX-Dashboard.git
synced 2026-02-04 10:02:26 +08:00
misc: delete ProgressButtonSize class
This commit is contained in:
@@ -7,16 +7,6 @@
|
||||
import SwiftUI
|
||||
import AppKit
|
||||
|
||||
//class ProgressButtonSize: NSObject {
|
||||
// static func width(_ titles: [String]) -> CGFloat {
|
||||
//
|
||||
// let str = titles.max() ?? ""
|
||||
// let w = str.size(withAttributes: [.font: Font.system(size: 13)]).width
|
||||
//
|
||||
// return w + 12 + 8*3
|
||||
// }
|
||||
//}
|
||||
|
||||
struct ProgressButton: View {
|
||||
|
||||
@State var title: String
|
||||
|
||||
Reference in New Issue
Block a user