mirror of
https://github.com/yJason/ClashX-Dashboard.git
synced 2026-03-01 00:35:19 +08:00
refactor: List background color
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
//
|
||||
|
||||
import SwiftUI
|
||||
import Introspect
|
||||
|
||||
struct APISettingView: View {
|
||||
@State var baseURL: String = ""
|
||||
@@ -61,6 +62,10 @@ struct APISettingView: View {
|
||||
}
|
||||
}
|
||||
}
|
||||
.introspectTableView {
|
||||
$0.backgroundColor = NSColor.clear
|
||||
$0.enclosingScrollView?.drawsBackground = false
|
||||
}
|
||||
}
|
||||
.padding(.top)
|
||||
.fixedSize(horizontal: true, vertical: false)
|
||||
|
||||
@@ -1,16 +0,0 @@
|
||||
//
|
||||
// ClearBackgroundList.swift
|
||||
// ClashX Dashboard
|
||||
//
|
||||
//
|
||||
|
||||
import Foundation
|
||||
import SwiftUI
|
||||
|
||||
extension NSTableView {
|
||||
open override func viewWillMove(toWindow newWindow: NSWindow?) {
|
||||
super.viewDidMoveToWindow()
|
||||
backgroundColor = NSColor.clear
|
||||
enclosingScrollView!.drawsBackground = false
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user