refactor: Align menu to Android app
- Use pdf images for menu items - Add new items - Cleanup strings inside translation files Resolves: http://gitlab.steamware.net/eqn/eqn.ios/-/issues/4
This commit is contained in:
@@ -17,8 +17,10 @@ class MenuViewController: UITableViewController {
|
||||
case settings
|
||||
case informations
|
||||
case faq
|
||||
case disclaimer
|
||||
case help
|
||||
case author
|
||||
case sponsors
|
||||
case disclaimer
|
||||
case privacy
|
||||
|
||||
var title: String {
|
||||
@@ -27,8 +29,10 @@ class MenuViewController: UITableViewController {
|
||||
case .settings: return NSLocalizedString("Impostazioni", comment: "voce menu")
|
||||
case .informations: return NSLocalizedString("Informazioni", comment: "voce menu")
|
||||
case .faq: return NSLocalizedString("F.A.Q.", comment: "voce menu")
|
||||
case .disclaimer: return NSLocalizedString("Disclaimer", comment: "voce menu")
|
||||
case .help: return NSLocalizedString("Help", comment: "voce menu")
|
||||
case .author: return NSLocalizedString("Autore", comment: "voce menu")
|
||||
case .sponsors: return NSLocalizedString("Patrocinatori", comment: "voce menu")
|
||||
case .disclaimer: return NSLocalizedString("Disclaimer", comment: "voce menu")
|
||||
case .privacy: return NSLocalizedString("Privacy", comment: "voce menu")
|
||||
}
|
||||
}
|
||||
@@ -36,12 +40,14 @@ class MenuViewController: UITableViewController {
|
||||
var icon: String? {
|
||||
switch self {
|
||||
case .header: return nil
|
||||
case .settings: return "ic_settings_black_24dp"
|
||||
case .informations: return "ic_info_outline_black_24dp"
|
||||
case .faq: return "ic_help_outline_black_24dp"
|
||||
case .disclaimer: return "ic_star_border_black_24dp"
|
||||
case .author: return "ic_verified_user_black_24dp"
|
||||
case .privacy: return "ic_person_black_24dp"
|
||||
case .settings: return "menu-icon-settings"
|
||||
case .informations: return "menu-icon-info"
|
||||
case .faq: return "menu-icon-faq"
|
||||
case .help: return "menu-icon-help"
|
||||
case .author: return "menu-icon-author"
|
||||
case .sponsors: return "menu-icon-sponsors"
|
||||
case .disclaimer: return "menu-icon-terms"
|
||||
case .privacy: return "menu-icon-privacy"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -108,8 +114,10 @@ class MenuViewController: UITableViewController {
|
||||
switch item {
|
||||
case .informations: return URL(string: "\(baseUrl)")
|
||||
case .faq: return URL(string: "\(baseUrl)/f-a-q/")
|
||||
case .disclaimer: return URL(string: "\(baseUrl)/terms-conditions/")
|
||||
case .help: return URL(string: "\(baseUrl)/help/")
|
||||
case .author: return URL(string: "\(baseUrl)/contact/")
|
||||
case .sponsors: return URL(string: "\(baseUrl)/sponsors/")
|
||||
case .disclaimer: return URL(string: "\(baseUrl)/terms-conditions/")
|
||||
case .privacy: return URL(string: "\(baseUrl)/privacy/")
|
||||
default: return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user