mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-23 14:43:43 +00:00
[ios] Use same icon for track recording in menu and custom main button
Signed-off-by: Yannik Bloscheck <git@yannikbloscheck.com>
This commit is contained in:
@@ -116,13 +116,7 @@ extension BottomMenuPresenter {
|
||||
title: L("placepage_add_place_button"),
|
||||
enabled: enabled)
|
||||
case .recordTrack:
|
||||
switch trackRecorder.recordingState {
|
||||
case .inactive:
|
||||
cell.configure(imageName: "track_recorder_inactive", title: L("start_track_recording"))
|
||||
case .active:
|
||||
cell.configure(imageName: "track_recorder_active", title: L("stop_track_recording"))
|
||||
}
|
||||
return cell
|
||||
cell.configure(imageName: "track", title: L("start_track_recording"))
|
||||
case .downloadMaps:
|
||||
cell.configure(imageName: "ic_menu_download",
|
||||
title: L("download_maps"),
|
||||
|
||||
@@ -21,7 +21,9 @@ class BottomMenuItemCell: UITableViewCell {
|
||||
icon.image = Settings.LeftButtonType.help.image
|
||||
} else if imageName == "plus" {
|
||||
icon.image = Settings.LeftButtonType.addPlace.image
|
||||
} else if imageName == "track_recorder_inactive" || imageName == "track_recorder_active" || imageName == "ic_menu_download" || imageName == "ic_menu_donate" {
|
||||
} else if imageName == "track" {
|
||||
icon.image = Settings.LeftButtonType.recordTrack.image
|
||||
} else if imageName == "ic_menu_download" || imageName == "ic_menu_donate" {
|
||||
icon.image = UIImage(named: imageName)
|
||||
} else {
|
||||
let configuration = UIImage.SymbolConfiguration(pointSize: 22, weight: .semibold)
|
||||
|
||||
Reference in New Issue
Block a user