Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Swiftgram/SGSettingsUI/Sources/SGSettingsController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ private enum SGBoolSetting: String {
case nyStyleSnow
case nyStyleLightning
case tabBarSearchEnabled
case videoControlsInFooter
}

private enum SGOneFromManySetting: String {
Expand Down Expand Up @@ -305,6 +306,7 @@ private func SGControllerEntries(presentationData: PresentationData, callListSet

id.increment(10000)
entries.append(.header(id: id.count, section: .other, text: strings.Appearance_Other.uppercased(), badge: nil))
entries.append(.toggle(id: id.count, section: .other, settingName: .videoControlsInFooter, value: SGSimpleSettings.shared.videoControlsInFooter, text: i18n("Settings.videoControlsInFooter", lang), enabled: true))
entries.append(.toggle(id: id.count, section: .other, settingName: .swipeForVideoPIP, value: SGSimpleSettings.shared.videoPIPSwipeDirection == SGSimpleSettings.VideoPIPSwipeDirection.up.rawValue, text: i18n("Settings.swipeForVideoPIP", lang), enabled: true))
entries.append(.notice(id: id.count, section: .other, text: i18n("Settings.swipeForVideoPIP.Notice", lang)))
entries.append(.toggle(id: id.count, section: .other, settingName: .hideChannelBottomButton, value: !SGSimpleSettings.shared.hideChannelBottomButton, text: i18n("Settings.showChannelBottomButton", lang), enabled: true))
Expand Down Expand Up @@ -521,6 +523,8 @@ public func sgSettingsController(context: AccountContext/*, focusOnItemTag: Int?
case .nyStyleLightning:
SGSimpleSettings.shared.nyStyle = value ? SGSimpleSettings.NYStyle.lightning.rawValue : SGSimpleSettings.NYStyle.default.rawValue
simplePromise.set(true) // Trigger update for 'enabled' field of other toggles
case .videoControlsInFooter:
SGSimpleSettings.shared.videoControlsInFooter = value
}
}, updateSliderValue: { setting, value in
switch (setting) {
Expand Down
7 changes: 6 additions & 1 deletion Swiftgram/SGSimpleSettings/Sources/SimpleSettings.swift
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ public class SGSimpleSettings {
case warnOnStoriesOpen
case showProfileId
case sendWithReturnKey
case videoControlsInFooter
}

public enum DownloadSpeedBoostValues: String, CaseIterable {
Expand Down Expand Up @@ -328,7 +329,8 @@ public class SGSimpleSettings {
Keys.hideStories.rawValue: false,
Keys.warnOnStoriesOpen.rawValue: false,
Keys.showProfileId.rawValue: true,
Keys.sendWithReturnKey.rawValue: false
Keys.sendWithReturnKey.rawValue: false,
Keys.videoControlsInFooter.rawValue: false,
]

public static let groupDefaultValues: [String: Any] = [
Expand Down Expand Up @@ -592,6 +594,9 @@ public class SGSimpleSettings {

@UserDefault(key: Keys.tabBarSearchEnabled.rawValue)
public var tabBarSearchEnabled: Bool

@UserDefault(key: Keys.videoControlsInFooter.rawValue)
public var videoControlsInFooter: Bool
}

extension SGSimpleSettings {
Expand Down
1 change: 1 addition & 0 deletions Swiftgram/SGStrings/Strings/af.lproj/SGLocalizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -150,3 +150,4 @@

"Settings.swipeForVideoPIP" = "Video PIP met Veeg";
"Settings.swipeForVideoPIP.Notice" = "As geaktiveer, sal die veeg van die video dit in Prent-in-Prent modus oopmaak.";
"Settings.videoControlsInFooter" = "Videokontroles in voetskrif";
1 change: 1 addition & 0 deletions Swiftgram/SGStrings/Strings/ar.lproj/SGLocalizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -150,3 +150,4 @@

"Settings.swipeForVideoPIP" = "فيديو PIP مع السحب";
"Settings.swipeForVideoPIP.Notice" = "إذا تم تمكينه، سيفتح سحب الفيديو في وضع الصورة في الصورة.";
"Settings.videoControlsInFooter" = "عناصر تحكم الفيديو في التذييل";
1 change: 1 addition & 0 deletions Swiftgram/SGStrings/Strings/ca.lproj/SGLocalizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -150,3 +150,4 @@

"Settings.swipeForVideoPIP" = "Vídeo PIP amb desplaçament";
"Settings.swipeForVideoPIP.Notice" = "Si està habilitat, desplaçar el vídeo l'obrirà en mode Imatge en Imatge.";
"Settings.videoControlsInFooter" = "Controls de vídeo al peu de pàgina";
1 change: 1 addition & 0 deletions Swiftgram/SGStrings/Strings/cs.lproj/SGLocalizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -150,3 +150,4 @@

"Settings.swipeForVideoPIP" = "Video PIP s přetahováním";
"Settings.swipeForVideoPIP.Notice" = "Pokud je povoleno, poslání videa jej otevře v režimu Obraz v obraze.";
"Settings.videoControlsInFooter" = "Ovládání videa v zápatí";
1 change: 1 addition & 0 deletions Swiftgram/SGStrings/Strings/da.lproj/SGLocalizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -150,3 +150,4 @@

"Settings.swipeForVideoPIP" = "Video PIP med Swipe";
"Settings.swipeForVideoPIP.Notice" = "Hvis aktiveret, vil sletning af video åbne den i billede-i-billede-tilstand.";
"Settings.videoControlsInFooter" = "Videokontroller i sidefoden";
1 change: 1 addition & 0 deletions Swiftgram/SGStrings/Strings/de.lproj/SGLocalizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -150,3 +150,4 @@

"Settings.swipeForVideoPIP" = "Video PIP mit Wischen";
"Settings.swipeForVideoPIP.Notice" = "Wenn aktiviert, öffnet das Wischen des Videos es im Bild-in-Bild-Modus.";
"Settings.videoControlsInFooter" = "Videosteuerung in der Fußzeile";
1 change: 1 addition & 0 deletions Swiftgram/SGStrings/Strings/el.lproj/SGLocalizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -150,3 +150,4 @@

"Settings.swipeForVideoPIP" = "Βίντεο PIP με Swipe";
"Settings.swipeForVideoPIP.Notice" = "Αν είναι ενεργοποιημένο, το σ swipe video θα το ανοίξει σε λειτουργία Εικόνα μέσα στην Εικόνα.";
"Settings.videoControlsInFooter" = "Στοιχεία ελέγχου βίντεο στο υποσέλιδο";
1 change: 1 addition & 0 deletions Swiftgram/SGStrings/Strings/en.lproj/SGLocalizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@

"Settings.swipeForVideoPIP" = "Video PIP with Swipe";
"Settings.swipeForVideoPIP.Notice" = "If enabled, swiping video will open it in Picture-in-Picture mode.";
"Settings.videoControlsInFooter" = "Video controls in footer";

"SessionBackup.Title" = "Accounts Backup";
"SessionBackup.Sessions.Title" = "Sessions";
Expand Down
1 change: 1 addition & 0 deletions Swiftgram/SGStrings/Strings/es.lproj/SGLocalizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -150,3 +150,4 @@

"Settings.swipeForVideoPIP" = "Video PIP con deslizamiento";
"Settings.swipeForVideoPIP.Notice" = "Si está habilitado, deslizar el video lo abrirá en modo imagen en imagen.";
"Settings.videoControlsInFooter" = "Controles de video en el pie de página";
1 change: 1 addition & 0 deletions Swiftgram/SGStrings/Strings/fa.lproj/SGLocalizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@
"Settings.ShowProfileID" = "نمایش ایدی پروفایل";
"Settings.Translation.QuickTranslateButton" = "دکمه ترجمه سریع";
"ContextMenu.SaveToCloud" = "ذخیره در فضای ابری";
"Settings.videoControlsInFooter" = "کنترل‌های ویدیو در پایین صفحه";
1 change: 1 addition & 0 deletions Swiftgram/SGStrings/Strings/fi.lproj/SGLocalizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -228,3 +228,4 @@
"Paywall.Error.Title" = "Virhe";
"PayWall.ValidationError" = "Vahvistusvirhe";
"PayWall.ValidationError.TryAgain" = "Ostovahvistuksessa tapahtui jokin virhe. Ei hätää! Yritä palauttaa ostot hieman myöhemmin.";
"Settings.videoControlsInFooter" = "Videon säätimet alatunnisteessa";
1 change: 1 addition & 0 deletions Swiftgram/SGStrings/Strings/fr.lproj/SGLocalizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -135,3 +135,4 @@
"Settings.forceBuiltInMic.Notice" = "Si activé, l'application utilisera uniquement le microphone de l'appareil même si des écouteurs sont connectés.";

"Settings.hideChannelBottomButton" = "Masquer le panneau inférieur du canal";
"Settings.videoControlsInFooter" = "Contrôles vidéo dans le pied de page";
1 change: 1 addition & 0 deletions Swiftgram/SGStrings/Strings/he.lproj/SGLocalizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -150,3 +150,4 @@

"Settings.swipeForVideoPIP" = "וידאו PIP עם החלקה";
"Settings.swipeForVideoPIP.Notice" = "אם מופעל, החלקת הווידאו תפתח אותו במצב תמונה בתוך תמונה.";
"Settings.videoControlsInFooter" = "פקדי וידאו בכותרת התחתונה";
1 change: 1 addition & 0 deletions Swiftgram/SGStrings/Strings/hi.lproj/SGLocalizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -150,3 +150,4 @@

"Settings.swipeForVideoPIP" = "वीडियो PIP स्वाइप के साथ";
"Settings.swipeForVideoPIP.Notice" = "यदि सक्षम है, तो वीडियो को स्वाइप करने से यह चित्र-इन-चित्र मोड में खोला जाएगा।";
"Settings.videoControlsInFooter" = "फ़ुटर में वीडियो नियंत्रण";
1 change: 1 addition & 0 deletions Swiftgram/SGStrings/Strings/hu.lproj/SGLocalizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -150,3 +150,4 @@

"Settings.swipeForVideoPIP" = "Videó PIP a húzással";
"Settings.swipeForVideoPIP.Notice" = "Ha engedélyezve van, a videó húzása képet-képben üzemmódban nyitja meg.";
"Settings.videoControlsInFooter" = "Videóvezérlők a láblécben";
1 change: 1 addition & 0 deletions Swiftgram/SGStrings/Strings/id.lproj/SGLocalizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -150,3 +150,4 @@

"Settings.swipeForVideoPIP" = "Video PIP dengan Geser";
"Settings.swipeForVideoPIP.Notice" = "Jika diaktifkan, menggeser video akan membukanya dalam mode Gambar-dalam-Gambar.";
"Settings.videoControlsInFooter" = "Kontrol video di footer";
1 change: 1 addition & 0 deletions Swiftgram/SGStrings/Strings/it.lproj/SGLocalizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -150,3 +150,4 @@

"Settings.swipeForVideoPIP" = "Video PIP con scorrimento";
"Settings.swipeForVideoPIP.Notice" = "Se abilitato, scorrendo il video si aprirà in modalità Picture-in-Picture.";
"Settings.videoControlsInFooter" = "Controlli video nel piè di pagina";
1 change: 1 addition & 0 deletions Swiftgram/SGStrings/Strings/ja.lproj/SGLocalizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -244,3 +244,4 @@
"PayWall.ValidationError" = "検証エラー";
"PayWall.ValidationError.TryAgain" = "購入の検証中に問題が発生しました。心配しないでください!後で購入を復元してみてください。";
"PayWall.ValidationError.Expired" = "サブスクリプションの有効期限が切れました。Pro機能へのアクセスを取り戻すには、再度サブスクリプションを登録してください。";
"Settings.videoControlsInFooter" = "フッター内の動画コントロール";
1 change: 1 addition & 0 deletions Swiftgram/SGStrings/Strings/km.lproj/SGLocalizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@
"Settings.HidePhoneInSettingsUI" = "លាក់លេខទូរសព្ទក្នុងការកំណត់";
"Settings.Folders.BottomTab" = "ថតឯបាត";
"ContextMenu.SaveToCloud" = "រក្សាទុកទៅពពក";
"Settings.videoControlsInFooter" = "ការគ្រប់គ្រងវីដេអូនៅផ្នែកខាងក្រោម";
1 change: 1 addition & 0 deletions Swiftgram/SGStrings/Strings/ko.lproj/SGLocalizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -150,3 +150,4 @@

"Settings.swipeForVideoPIP" = "비디오 PIP 스와이프";
"Settings.swipeForVideoPIP.Notice" = "설정이 활성화되면 비디오를 스와이프하면 화면 속 화면 모드로 열립니다.";
"Settings.videoControlsInFooter" = "바닥글의 비디오 컨트롤";
1 change: 1 addition & 0 deletions Swiftgram/SGStrings/Strings/ku.lproj/SGLocalizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@
"Settings.Translation.QuickTranslateButton" = "دوگمەی وەرگێڕانی خێرا";
"Settings.Folders.BottomTab" = "بوخچەکان لە خوارەوە";
"ContextMenu.SaveToCloud" = "هەڵگرتن لە کڵاود";
"Settings.videoControlsInFooter" = "کۆنترۆڵی ڤیدیۆ لە بەشی خوارەوە";
1 change: 1 addition & 0 deletions Swiftgram/SGStrings/Strings/nl.lproj/SGLocalizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -150,3 +150,4 @@

"Settings.swipeForVideoPIP" = "Video PIP met veeg";
"Settings.swipeForVideoPIP.Notice" = "Als ingeschakeld, opent het swipen van video het in de modus Beeld-in-Beeld.";
"Settings.videoControlsInFooter" = "Videobediening in de voettekst";
1 change: 1 addition & 0 deletions Swiftgram/SGStrings/Strings/no.lproj/SGLocalizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -150,3 +150,4 @@

"Settings.swipeForVideoPIP" = "Video PIP med sveip";
"Settings.swipeForVideoPIP.Notice" = "Hvis aktivert, vil sveipingen av video åpne den i bilde-i-bilde-modus.";
"Settings.videoControlsInFooter" = "Videokontroller i bunnteksten";
1 change: 1 addition & 0 deletions Swiftgram/SGStrings/Strings/pl.lproj/SGLocalizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -243,3 +243,4 @@
"PayWall.ValidationError" = "Błąd weryfikacji";
"PayWall.ValidationError.TryAgain" = "Coś poszło nie tak podczas weryfikacji zakupu. Nie martw się! Spróbuj przywrócić zakupy trochę później.";
"PayWall.ValidationError.Expired" = "Twoja subskrypcja wygasła. Subskrybuj ponownie, aby odzyskać dostęp do funkcji Pro.";
"Settings.videoControlsInFooter" = "Elementy sterujące wideo w stopce";
1 change: 1 addition & 0 deletions Swiftgram/SGStrings/Strings/pt.lproj/SGLocalizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -261,3 +261,4 @@

"AppBadge.Title" = "Emblema do Aplicativo";
"AppBadge.Notice" = "Personalizar Emblema do Aplicativo Exibido nas capturas de tela";
"Settings.videoControlsInFooter" = "Controles de vídeo no rodapé";
1 change: 1 addition & 0 deletions Swiftgram/SGStrings/Strings/ro.lproj/SGLocalizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -150,3 +150,4 @@

"Settings.swipeForVideoPIP" = "Video PIP cu gestul de glisare";
"Settings.swipeForVideoPIP.Notice" = "Dacă este activat, glisarea video va deschide în modul imagine în imagine.";
"Settings.videoControlsInFooter" = "Controale video în subsol";
1 change: 1 addition & 0 deletions Swiftgram/SGStrings/Strings/ru.lproj/SGLocalizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -272,3 +272,4 @@
"Settings.NY.Style.snow" = "Снег";
"Settings.NY.Style.lightning" = "Молнии";
"Settings.NY.Notice" = "Доступны только на ограниченное время!";
"Settings.videoControlsInFooter" = "Элементы управления видео в футере";
1 change: 1 addition & 0 deletions Swiftgram/SGStrings/Strings/si.lproj/SGLocalizable.strings
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
"Settings.Tabs.Header" = "පටිති";
"ContextMenu.SaveToCloud" = "මේඝයට සුරකින්න";
"Settings.videoControlsInFooter" = "පාදකයේ වීඩියෝ පාලක";
1 change: 1 addition & 0 deletions Swiftgram/SGStrings/Strings/sk.lproj/SGLocalizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
"Settings.Tabs.ShowContacts" = "Zobraziť kontakty";
"Settings.Tabs.ShowNames" = "Zobraziť názvy záložiek";
"ContextMenu.SaveToCloud" = "Uložiť na Cloud";
"Settings.videoControlsInFooter" = "Ovládanie videa v pätičke";
1 change: 1 addition & 0 deletions Swiftgram/SGStrings/Strings/sr.lproj/SGLocalizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -150,3 +150,4 @@

"Settings.swipeForVideoPIP" = "Видео PIP са свлачење";
"Settings.swipeForVideoPIP.Notice" = "Ако је омогућено, померање видеа ће га отворити у режиму слике у слици.";
"Settings.videoControlsInFooter" = "Контроле видеа у подножју";
1 change: 1 addition & 0 deletions Swiftgram/SGStrings/Strings/sv.lproj/SGLocalizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -150,3 +150,4 @@

"Settings.swipeForVideoPIP" = "Video PIP med svep";
"Settings.swipeForVideoPIP.Notice" = "Om aktiverat, kommer svepning av video att öppna det i bild-i-bild-läge.";
"Settings.videoControlsInFooter" = "Videokontroller i sidfoten";
1 change: 1 addition & 0 deletions Swiftgram/SGStrings/Strings/tr.lproj/SGLocalizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -150,3 +150,4 @@

"Settings.swipeForVideoPIP" = "Videoyu kaydırarak PIP";
"Settings.swipeForVideoPIP.Notice" = "Eğer etkinleştirildi ise videoyu kaydırmak, Piksel içinde Piksel modunda açılacaktır.";
"Settings.videoControlsInFooter" = "Alt bilgide video kontrolleri";
1 change: 1 addition & 0 deletions Swiftgram/SGStrings/Strings/uk.lproj/SGLocalizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -243,3 +243,4 @@
"PayWall.ValidationError" = "Помилка валідації";
"PayWall.ValidationError.TryAgain" = "Щось пішло не так під час перевірки покупки. Не хвилюйтеся! Спробуйте відновити покупки трохи пізніше.";
"PayWall.ValidationError.Expired" = "Ваша підписка застаріла. Підпишіться, щоб відновити доступ до Pro-можливостей.";
"Settings.videoControlsInFooter" = "Елементи керування відео у футері";
1 change: 1 addition & 0 deletions Swiftgram/SGStrings/Strings/uz.lproj/SGLocalizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -150,3 +150,4 @@

"Settings.swipeForVideoPIP" = "Video PIP bilan Surish";
"Settings.swipeForVideoPIP.Notice" = "Agar yoqilgan bo'lsa, videoni surish uni Tasvir ichida Tasvir rejimida ochadi.";
"Settings.videoControlsInFooter" = "Futerda video boshqaruvlari";
1 change: 1 addition & 0 deletions Swiftgram/SGStrings/Strings/vi.lproj/SGLocalizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -150,3 +150,4 @@

"Settings.swipeForVideoPIP" = "Video PIP với Vuốt";
"Settings.swipeForVideoPIP.Notice" = "Nếu được kích hoạt, việc vuốt video sẽ mở nó ở chế độ Hình trong hình.";
"Settings.videoControlsInFooter" = "Điều khiển video ở chân trang";
Original file line number Diff line number Diff line change
Expand Up @@ -247,3 +247,4 @@
"PayWall.ValidationError" = "验证错误";
"PayWall.ValidationError.TryAgain" = "购买验证过程中出现问题。不用担心!稍后再试恢复购买。";
"PayWall.ValidationError.Expired" = "您的订阅已过期。再次订阅以重新获得专业版功能。";
"Settings.videoControlsInFooter" = "页脚中的视频控件";
Original file line number Diff line number Diff line change
Expand Up @@ -247,3 +247,4 @@
"PayWall.ValidationError" = "驗證錯誤";
"PayWall.ValidationError.TryAgain" = "在購買驗證過程中出錯。別擔心!稍後再試恢復購買。";
"PayWall.ValidationError.Expired" = "您的訂閱已過期。請重新訂閱以恢復訪問 Pro 功能。";
"Settings.videoControlsInFooter" = "頁腳中的影片控制項";
Loading