Various Improvements

This commit is contained in:
Ilya Laktyushin
2021-01-26 13:59:23 +03:00
parent 9790e94e16
commit 6875655747
19 changed files with 4171 additions and 4091 deletions

View File

@@ -129,6 +129,8 @@ class BubbleSettingsRadiusItemNode: ListViewItemNode, ItemListItemNode {
override func didLoad() {
super.didLoad()
self.accessibilityTraits = [.adjustable]
let sliderView = TGPhotoEditorSliderView()
sliderView.enablePanHandling = true
sliderView.enablePanHandling = true
@@ -194,6 +196,12 @@ class BubbleSettingsRadiusItemNode: ListViewItemNode, ItemListItemNode {
strongSelf.item = item
strongSelf.layoutParams = params
if item.enabled {
strongSelf.accessibilityTraits.remove(.notEnabled)
} else {
strongSelf.accessibilityTraits.insert(.notEnabled)
}
strongSelf.backgroundNode.backgroundColor = item.theme.list.itemBlocksBackgroundColor
strongSelf.topStripeNode.backgroundColor = item.theme.list.itemBlocksSeparatorColor
strongSelf.bottomStripeNode.backgroundColor = item.theme.list.itemBlocksSeparatorColor