-
Notifications
You must be signed in to change notification settings - Fork 132
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[fix/branding refinement] Branding: Color and UI Improvements (#1057)
* Fixed branding issues * - fixed default searchBar background and placeholder text color for branded builds - show single account server list, if only one account is configured for branded and unbranded builds * - fixed default (unselected) tab bar color - added table view section border to branded account table view * - fixed rounded border for text fields in branded login UI - removed table row separator in branding login view - fixed colors in contrast mode, if tint color is white - fixed UIAlertView tint color * fixed tint color in UIAlertController in dark mode for branding colors * fixed color value again * fixed tint color in single account server list cell view * fixed missing profile UI * removed optional branding values (only two color values are now needed for a complete branding, all other values are optional) * fixed border color in single account server view, if navigationbar background color is white * added gomplate template for Branding.plist creation to the iOS repo adopted template for new Parameter and removed default values i template * fixed some color issues, if tint color is white * fixed setting custom UISearchBar backgroundColor on iOS 12 * set profile url as prefilled default value into setup url field * added a new color style loginStatusBarStyle to set a custom status bar style for the login view * if the key app.version-number exists, fastlane will use this value as app and extension short version number, which gives the possibility to set custom version numbers * Fixed CR findings: - added a protocol for setting the custom status bar style, instead of using static class names - using the correct SDK method for round rect * fixed merge error
- Loading branch information
Showing
22 changed files
with
540 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0">{{- $config := .config }} | ||
{{- $hasThemeDefinitionsStyles := false }} | ||
{{- $hasThemeNavigationColors := false }} | ||
{{- $hasThemeSearchColors := false }} | ||
{{- $hasDarkColor := false }} | ||
{{- $hasLightColor := false }} | ||
{{- $darkColor := "" }} | ||
{{- $lightColor := "" }} | ||
{{- $brandingStyle := "" }} | ||
{{- $brandingNavigationStyle := "" }} | ||
<dict> | ||
{{- range $key, $value := $config }} | ||
{{- if eq (printf "%T" $value) "<nil>"}} | ||
{{- if strings.HasSuffix "_check" $key }} | ||
{{$value = false }} | ||
{{- else if strings.HasSuffix "_text" $key }} | ||
{{$value = "" }} | ||
{{- end }}{{- end }} | ||
{{- if hasPrefix $key "ios_branding" }} | ||
{{- if $key | strings.Contains "ios_branding.theme-definitions$[0].darkBrandColor_color" }} | ||
{{ $darkColor = $value }} | ||
{{- else if $key | strings.Contains "ios_branding.theme-definitions$[0].lightBrandColor_color" }} | ||
{{ $lightColor = $value }} | ||
{{- else if $key | strings.Contains "ios_branding.style_select" }} | ||
{{ $brandingStyle = $value }} | ||
{{- else if $key | strings.Contains "ios_branding.navigation.style_select" }} | ||
{{ $brandingNavigationStyle = $value }} | ||
{{- else }} | ||
<key>{{ $key | strings.TrimPrefix "ios_" | strings.TrimSuffix "_check" | strings.TrimSuffix "_text" | strings.TrimSuffix "_color" }}</key> | ||
{{- if eq (printf "%T" $value) "string"}} | ||
<string>{{$value}}</string> | ||
{{- else if eq $value true}} | ||
<true/> | ||
{{- else if eq $value false}} | ||
<false/>{{end}}{{end}}{{end}} | ||
{{- if hasPrefix $key "ios_json_override_longtext"}} | ||
{{- if $value | strings.Contains "branding.theme-definitions" }} | ||
{{- if $value | strings.Contains ".Styles." }} | ||
{{ $hasThemeDefinitionsStyles = true}} | ||
{{end}} | ||
{{- if $value | strings.Contains ".Colors.NavigationBar." }} | ||
{{ $hasThemeNavigationColors = true}} | ||
{{end}} | ||
{{- if $value | strings.Contains ".Colors.Searchbar." }} | ||
{{ $hasThemeSearchColors = true}} | ||
{{end}} | ||
{{end}} | ||
{{- if $value | strings.Contains "branding.theme-definitions$[0].darkBrandColor" }} | ||
{{ $hasDarkColor = true }}{{end}} | ||
{{- if $value | strings.Contains "branding.theme-definitions$[0].lightBrandColor" }} | ||
{{ $hasLightColor = true }}{{end}} | ||
{{$value}}{{end}}{{end}} | ||
{{- if $brandingNavigationStyle | strings.Contains "bright" }} | ||
{{- if eq $hasThemeSearchColors false }} | ||
<key>branding.theme-definitions$[0].Colors.Searchbar.tintColor</key> | ||
<string>#666666</string> | ||
<key>branding.theme-definitions$[0].Colors.Searchbar.secondaryLabelColor</key> | ||
<string>#666666</string> | ||
<key>branding.theme-definitions$[0].Colors.Searchbar.backgroundColor</key> | ||
<string>#F2F2F3</string> | ||
<key>branding.theme-definitions$[0].Colors.Searchbar.labelColor</key> | ||
<string>#000000</string> | ||
{{end}} | ||
{{- if eq $hasThemeNavigationColors false }} | ||
<key>branding.theme-definitions$[0].Colors.NavigationBar.tintColor</key> | ||
<string>{{$darkColor}}</string> | ||
<key>branding.theme-definitions$[0].Colors.NavigationBar.backgroundColor</key> | ||
<string>#FFFFFF</string> | ||
<key>branding.theme-definitions$[0].Colors.NavigationBar.labelColor</key> | ||
<string>#000000</string> | ||
{{end}}{{- end }} | ||
{{- if eq $hasThemeDefinitionsStyles false }} | ||
{{- if $brandingStyle | strings.Contains "dark" }} | ||
<key>branding.theme-definitions$[0].Styles.searchBarActivityIndicatorViewStyle</key> | ||
<string>gray</string> | ||
<key>branding.theme-definitions$[0].Styles.statusBarStyle</key> | ||
<string>lightContent</string> | ||
<key>branding.theme-definitions$[0].Styles.backgroundBlurEffectStyle</key> | ||
<string>dark</string> | ||
<key>branding.theme-definitions$[0].Styles.interfaceStyle</key> | ||
<string>dark</string> | ||
<key>branding.theme-definitions$[0].Styles.keyboardAppearance</key> | ||
<string>dark</string> | ||
<key>branding.theme-definitions$[0].Styles.activityIndicatorViewStyle</key> | ||
<string>white</string> | ||
<key>branding.theme-definitions$[0].Styles.barStyle</key> | ||
<string>default</string> | ||
{{- end }}{{end}} | ||
{{- if eq $hasDarkColor false }} | ||
<key>branding.theme-definitions$[0].darkBrandColor</key> | ||
<string>{{$darkColor}}</string>{{end}} | ||
{{- if eq $hasLightColor false }} | ||
<key>branding.theme-definitions$[0].lightBrandColor</key> | ||
<string>{{$lightColor}}</string>{{end}} | ||
</dict> | ||
</plist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.