@@ -47,7 +47,6 @@ final class ReactorListView: UIView {
4747
4848 @IBOutlet weak var reactorTableView : UITableView ! {
4949 didSet {
50- reactorTableView. bounces = false
5150 reactorTableView. tableFooterView = UIView ( )
5251
5352 reactorTableView. dataSource = self
@@ -82,6 +81,11 @@ final class ReactorListView: UIView {
8281 super. init ( coder: aDecoder)
8382 commonInit ( )
8483 }
84+
85+ override func layoutSubviews( ) {
86+ super. layoutSubviews ( )
87+ applyTheme ( )
88+ }
8589}
8690
8791// MARK: Initialization
@@ -140,8 +144,8 @@ extension ReactorListView: UITableViewDelegate {
140144
141145 view. addSubview ( stackView)
142146
147+ view. setThemeColor ( " backgroundColor: bannerBackground " )
143148 view. applyTheme ( )
144- view. backgroundColor = view. theme? . auxiliaryBackground
145149
146150 return view
147151 }
@@ -156,27 +160,3 @@ extension ReactorListView: UITableViewDelegate {
156160 selectedReactor ( model. reactionViewModels [ indexPath. section] . reactors [ indexPath. row] , rect)
157161 }
158162}
159-
160- extension ReactorListView {
161- override var theme : Theme ? {
162- guard let theme = super. theme else { return nil }
163- guard isPopover else { return theme }
164- let popoverTheme = Theme (
165- backgroundColor: theme. focusedBackground,
166- focusedBackground: theme. focusedBackground,
167- auxiliaryBackground: theme. auxiliaryBackground,
168- bannerBackground: theme. backgroundColor,
169- titleText: theme. titleText,
170- bodyText: theme. bodyText,
171- controlText: theme. controlText,
172- auxiliaryText: theme. auxiliaryText,
173- tintColor: theme. tintColor,
174- auxiliaryTintColor: theme. auxiliaryTintColor,
175- hyperlink: theme. hyperlink,
176- mutedAccent: theme. mutedAccent,
177- strongAccent: theme. strongAccent,
178- appearence: theme. appearence
179- )
180- return popoverTheme
181- }
182- }
0 commit comments