feat: custom ghost icon + move Ghostgram Settings under Кошелёк

- Generated ghost icon for Ghostgram Settings menu item
- Added GhostgramSettings.imageset (@1x/@2x/@3x PNG)
- Moved Ghostgram Settings from .advanced section (between Privacy &
  Chat Settings) into .myProfile section, placing it directly after
  'Мой профиль' (visually appears just below Кошелёк in the list)
- Replaced generic Appearance icon with new custom ghost icon
This commit is contained in:
ichmagmaus 812
2026-03-04 23:46:44 +01:00
parent 534dd03f41
commit 1a3303b059
5 changed files with 26 additions and 3 deletions
@@ -152,6 +152,9 @@ func settingsItems(data: PeerInfoScreenData?, context: AccountContext, presentat
items[.myProfile]!.append(PeerInfoScreenDisclosureItem(id: 0, text: presentationData.strings.Settings_MyProfile, icon: PresentationResourcesSettings.myProfile, action: {
interaction.openSettings(.profile)
}))
items[.myProfile]!.append(PeerInfoScreenDisclosureItem(id: 1001, text: "Ghostgram Settings", icon: UIImage(bundleImageName: "Settings/Menu/GhostgramSettings"), action: {
interaction.openSettings(.ghostgram)
}))
if !settings.proxySettings.servers.isEmpty {
let proxyType: String
@@ -232,9 +235,6 @@ func settingsItems(data: PeerInfoScreenData?, context: AccountContext, presentat
items[.advanced]!.append(PeerInfoScreenDisclosureItem(id: 1, text: presentationData.strings.Settings_PrivacySettings, icon: PresentationResourcesSettings.security, action: {
interaction.openSettings(.privacyAndSecurity)
}))
items[.advanced]!.append(PeerInfoScreenDisclosureItem(id: 1001, text: "Ghostgram Settings", icon: UIImage(bundleImageName: "Settings/Menu/Appearance"), action: {
interaction.openSettings(.ghostgram)
}))
items[.advanced]!.append(PeerInfoScreenDisclosureItem(id: 2, text: presentationData.strings.Settings_ChatSettings, icon: PresentationResourcesSettings.dataAndStorage, action: {
interaction.openSettings(.dataAndStorage)
}))
@@ -0,0 +1,23 @@
{
"images": [
{
"filename": "ghost_settings.png",
"idiom": "universal",
"scale": "1x"
},
{
"filename": "ghost_settings@2x.png",
"idiom": "universal",
"scale": "2x"
},
{
"filename": "ghost_settings@3x.png",
"idiom": "universal",
"scale": "3x"
}
],
"info": {
"author": "xcode",
"version": 1
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB