Override tint color in document browser
Buttons were invisible in light mode. Fixes #145
This commit is contained in:
parent
030385a8f4
commit
34bcd22893
|
@ -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/),
|
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).
|
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
|
### Added
|
||||||
|
|
||||||
- Customize host endpoint.
|
- Customize host endpoint.
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- Invisible buttons in document browser. [#145](https://github.com/passepartoutvpn/passepartout-ios/issues/145)
|
||||||
|
|
||||||
## 1.11.3 (2020-05-21)
|
## 1.11.3 (2020-05-21)
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|
|
@ -93,6 +93,9 @@ extension Theme {
|
||||||
bar.tintColor = palette.primaryLightText
|
bar.tintColor = palette.primaryLightText
|
||||||
bar.titleTextAttributes = [NSAttributedString.Key.foregroundColor: palette.primaryLightText]
|
bar.titleTextAttributes = [NSAttributedString.Key.foregroundColor: palette.primaryLightText]
|
||||||
bar.largeTitleTextAttributes = bar.titleTextAttributes
|
bar.largeTitleTextAttributes = bar.titleTextAttributes
|
||||||
|
|
||||||
|
let pickerBar = UINavigationBar.appearance(whenContainedInInstancesOf: [UIDocumentBrowserViewController.self])
|
||||||
|
pickerBar.tintColor = nil
|
||||||
|
|
||||||
let toolbar = UIToolbar.appearance()
|
let toolbar = UIToolbar.appearance()
|
||||||
toolbar.barTintColor = palette.primaryBackground
|
toolbar.barTintColor = palette.primaryBackground
|
||||||
|
|
Loading…
Reference in New Issue