diff --git a/CHANGES.rst b/CHANGES.rst index 1e8306636..cc1d8d505 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -4,6 +4,7 @@ Changes in 0.8.1 (2019-02-) Bug fix: * Fix text color in room preview (PR #2261) * Fix navigation bar background after accepting an invite (PR #2261) + * Tabs at the top of Room Details are hard to see in dark theme (#2260). Changes in 0.8.0 (2019-02-15) =============================================== diff --git a/Riot/Modules/Common/SegmentedViewController/SegmentedViewController.m b/Riot/Modules/Common/SegmentedViewController/SegmentedViewController.m index 7823d8c67..b49384752 100644 --- a/Riot/Modules/Common/SegmentedViewController/SegmentedViewController.m +++ b/Riot/Modules/Common/SegmentedViewController/SegmentedViewController.m @@ -127,6 +127,24 @@ return viewControllers; } +- (void)setSectionHeaderTintColor:(UIColor *)sectionHeaderTintColor +{ + if (_sectionHeaderTintColor != sectionHeaderTintColor) + { + _sectionHeaderTintColor = sectionHeaderTintColor; + + if (selectedMarkerView) + { + selectedMarkerView.backgroundColor = sectionHeaderTintColor; + } + + for (UILabel *label in sectionLabels) + { + label.textColor = sectionHeaderTintColor; + } + } +} + #pragma mark - - (void)finalizeInit