mirror of
https://github.com/ichmagmaus111/ghostgram.git
synced 2026-04-29 19:27:49 +02:00
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:
+3
-3
@@ -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)
|
||||
}))
|
||||
|
||||
Vendored
+23
@@ -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
|
||||
}
|
||||
}
|
||||
Vendored
BIN
Binary file not shown.
|
After Width: | Height: | Size: 1.3 KiB |
submodules/TelegramUI/Images.xcassets/Settings/Menu/GhostgramSettings.imageset/ghost_settings@2x.png
Vendored
BIN
Binary file not shown.
|
After Width: | Height: | Size: 6.7 KiB |
submodules/TelegramUI/Images.xcassets/Settings/Menu/GhostgramSettings.imageset/ghost_settings@3x.png
Vendored
BIN
Binary file not shown.
|
After Width: | Height: | Size: 14 KiB |
Reference in New Issue
Block a user