From 34bcd22893f1d29c7917083641d0b9b6b38842fa Mon Sep 17 00:00:00 2001 From: Davide De Rosa Date: Tue, 26 May 2020 23:59:40 +0200 Subject: [PATCH] Override tint color in document browser Buttons were invisible in light mode. Fixes #145 --- CHANGELOG.md | 6 +++++- Passepartout-iOS/Global/Theme.swift | 3 +++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c72246dc..4ac92adb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,12 +5,16 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -## 1.11.4 Beta 2355 (2020-05-23) +## Unreleased ### Added - Customize host endpoint. +### Fixed + +- Invisible buttons in document browser. [#145](https://github.com/passepartoutvpn/passepartout-ios/issues/145) + ## 1.11.3 (2020-05-21) ### Added diff --git a/Passepartout-iOS/Global/Theme.swift b/Passepartout-iOS/Global/Theme.swift index 6f76bfb5..eeb1131f 100644 --- a/Passepartout-iOS/Global/Theme.swift +++ b/Passepartout-iOS/Global/Theme.swift @@ -93,6 +93,9 @@ extension Theme { bar.tintColor = palette.primaryLightText bar.titleTextAttributes = [NSAttributedString.Key.foregroundColor: palette.primaryLightText] bar.largeTitleTextAttributes = bar.titleTextAttributes + + let pickerBar = UINavigationBar.appearance(whenContainedInInstancesOf: [UIDocumentBrowserViewController.self]) + pickerBar.tintColor = nil let toolbar = UIToolbar.appearance() toolbar.barTintColor = palette.primaryBackground