IceCubesApp/IceCubesApp/App/Tabs/Settings/SwipeActionsSettingsView.swift

93 lines
3.3 KiB
Swift
Raw Normal View History

import DesignSystem
import Env
import SwiftUI
2023-09-19 07:18:20 +00:00
@MainActor
struct SwipeActionsSettingsView: View {
2023-09-18 19:03:52 +00:00
@Environment(Theme.self) private var theme
2023-09-19 07:18:20 +00:00
@Environment(UserPreferences.self) private var userPreferences
2023-02-12 15:29:41 +00:00
var body: some View {
2023-09-19 07:18:20 +00:00
@Bindable var userPreferences = userPreferences
Form {
Redesigned swipe actions settings (#937) * Redesigned Swipe Action Settings screen * Add TODO comments * Redesigned Swipe Action Settings screen * Redesigned Swipe Action Settings screen * Add EN localization strings for primary/secondary * Consolidate left/right swipe actions into one section * Switch to targeted Swift concurrency warnings + fix them * Polish localization update (#936) * Updates to Dutch localization: (#935) * de: translated the notes feature (#933) * Fix 1 line note in centre (#938) * Sort lists alphabetically in ListAddAccountView (#943) * Optimize viewId (#942) * Update Localizable.strings (#941) Co-authored-by: Yusuke Arakawa <nekolaboratory@users.noreply.github.com> * Update Nuke (#940) * Remove Sendable conformance on Client as it's not needed * Profile: Show about fields inline * Added a tip that it's a video, and not an image when autoplay is off (#939) * Added a tip that it's a video, and not an image when autoplay is off * Centered - bigger version of the video tip * Share post as image close #885 * Honour in app browser settings when opening profile about fields * Fix threading UI * More tweak to capture mode * Update Localizable.strings (#948) * Update Localizable.strings (#946) Translated.. * Updated EmojiText to 2.x (#944) Interface used by IceCubeApp has not changed from 1.x to 2.x Looking at the library diff shows new features like SFSymbol powered emojis. Not like we're going to make use of that https://github.com/divadretlaw/EmojiText/compare/v1.2.0...2.0.2 * Bump to 1.5.5 * Polish localization update (#949) * Optimize avatar view (#950) * Reduce AvatarPlaceholderView body calls * Resize avatars * Reworked post header view + add option to hide server name from username * Better header spacing * Further improvement to the post header * Polish localization update (#954) * Update Localizable.strings (#953) * Show post header thread icon more consistently * Fix post header * Fix threading UI * Fix trending refresh * de: 1 new string -> translated (#955) * Update Simplified Chinese Translation (#926) * Update Korean localization (#957) * Trim whitespace and newlines in instance rules list (#956) * Fix theme not being applied live on status row close #961 * Update some translations (#959) * Add indicator for bots accounts * Bump to 1.5.6 * Fix status actions on boosting posts (#974) * Fix context menus for boosts * Allow my boost of my followers-only post * Disable boost context menu on posts can't be boosted and show different string for boosting my own private post * Localizations * CR --------- Co-authored-by: Thomas Ricouard <ricouard77@gmail.com> * Fix crash when opening account details (#972) close #918 * Tweak the theme selector view (#975) Co-authored-by: Yusuke Arakawa <nekolaboratory@users.noreply.github.com> * Change the Content Settings icon to match the timeline icon again. (#969) * Fix display of multiple vote polls (#967) Closes #952 * Updates to Dutch localization (#966) * Font picker consistency (#960) * Put SF Rounded into the popup menu with Hyperlegible & Dislexia * Remove SF Rounded Toggle * Fix In-App Safari (#945) * Fix In-App Safari * Open SFSafariViewController in a separate window * Swiftformat * Optimize custom font * Fix a localization + make the ... menu zone bigger * Update Localizable.strings (#976) * Fix Equatable impl for Status and Account (thanks class) * Make secondary column available on any size + add a toggle + faster macOS window resize * Bigger secondary column width * Composer: Fix swipe to dismiss * Composer: Better ALT editing UI * updates for Basque (#983) added missing translations and small fixes * Updated spanish localization (#982) Co-authored-by: Roberto Pastor <roberto.pastor@cabify.com> * Polish localization update (#980) * Update Localizable.strings (#979) More strings * Singularize enum type names (#978) * Fixes for composer and DM * Remove padding * Rename settings.swipeactions.status.icon-style * Remove unused left/right localizable strings * Add settings.swipeactions.appearance * Add settings.swipeactions.status.explanation * Add settings.swipeactions.primary and settings.swipeactions.secondary * Add settings.swipeactions.use-theme-colors and settings.swipeactions.use-theme-colors-explanation * Dutch localization update --------- Co-authored-by: Thomas Ricouard <ricouard77@gmail.com> Co-authored-by: Andrzej Rózga <53080024+AndrzejRozga@users.noreply.github.com> Co-authored-by: Cthulhux <github@tuxproject.de> Co-authored-by: Sean Goldin <EvilOne@users.noreply.github.com> Co-authored-by: David Davies-Payne <d2p@me.com> Co-authored-by: Alex Grebenyuk <grebenyuk.alexander@gmail.com> Co-authored-by: Yusuke Arakawa <108506642+nekolaboratory@users.noreply.github.com> Co-authored-by: Yusuke Arakawa <nekolaboratory@users.noreply.github.com> Co-authored-by: Thomas Durand <Dean151@users.noreply.github.com> Co-authored-by: Dejavu Moe <jialong.vip@gmail.com> Co-authored-by: Chanhwi Joo <56245920+te6-in@users.noreply.github.com> Co-authored-by: Henrik Nyh <henrik@nyh.se> Co-authored-by: nixzhu <zhuhongxu@gmail.com> Co-authored-by: Gareth Simpson <g@xurble.org> Co-authored-by: Peter-Josef Meisch <pj.meisch@sothawo.com> Co-authored-by: David Walter <divadretlaw@users.noreply.github.com> Co-authored-by: Xabi <xabi.rn@gmail.com> Co-authored-by: Roberto Pastor <wedge.hero@gmail.com> Co-authored-by: Roberto Pastor <roberto.pastor@cabify.com> Co-authored-by: Louis Lac <lac.louis5@gmail.com>
2023-02-22 06:07:26 +00:00
Section {
Label("settings.swipeactions.status.leading", systemImage: "arrow.right")
.foregroundColor(.secondary)
2023-02-22 18:09:39 +00:00
Redesigned swipe actions settings (#937) * Redesigned Swipe Action Settings screen * Add TODO comments * Redesigned Swipe Action Settings screen * Redesigned Swipe Action Settings screen * Add EN localization strings for primary/secondary * Consolidate left/right swipe actions into one section * Switch to targeted Swift concurrency warnings + fix them * Polish localization update (#936) * Updates to Dutch localization: (#935) * de: translated the notes feature (#933) * Fix 1 line note in centre (#938) * Sort lists alphabetically in ListAddAccountView (#943) * Optimize viewId (#942) * Update Localizable.strings (#941) Co-authored-by: Yusuke Arakawa <nekolaboratory@users.noreply.github.com> * Update Nuke (#940) * Remove Sendable conformance on Client as it's not needed * Profile: Show about fields inline * Added a tip that it's a video, and not an image when autoplay is off (#939) * Added a tip that it's a video, and not an image when autoplay is off * Centered - bigger version of the video tip * Share post as image close #885 * Honour in app browser settings when opening profile about fields * Fix threading UI * More tweak to capture mode * Update Localizable.strings (#948) * Update Localizable.strings (#946) Translated.. * Updated EmojiText to 2.x (#944) Interface used by IceCubeApp has not changed from 1.x to 2.x Looking at the library diff shows new features like SFSymbol powered emojis. Not like we're going to make use of that https://github.com/divadretlaw/EmojiText/compare/v1.2.0...2.0.2 * Bump to 1.5.5 * Polish localization update (#949) * Optimize avatar view (#950) * Reduce AvatarPlaceholderView body calls * Resize avatars * Reworked post header view + add option to hide server name from username * Better header spacing * Further improvement to the post header * Polish localization update (#954) * Update Localizable.strings (#953) * Show post header thread icon more consistently * Fix post header * Fix threading UI * Fix trending refresh * de: 1 new string -> translated (#955) * Update Simplified Chinese Translation (#926) * Update Korean localization (#957) * Trim whitespace and newlines in instance rules list (#956) * Fix theme not being applied live on status row close #961 * Update some translations (#959) * Add indicator for bots accounts * Bump to 1.5.6 * Fix status actions on boosting posts (#974) * Fix context menus for boosts * Allow my boost of my followers-only post * Disable boost context menu on posts can't be boosted and show different string for boosting my own private post * Localizations * CR --------- Co-authored-by: Thomas Ricouard <ricouard77@gmail.com> * Fix crash when opening account details (#972) close #918 * Tweak the theme selector view (#975) Co-authored-by: Yusuke Arakawa <nekolaboratory@users.noreply.github.com> * Change the Content Settings icon to match the timeline icon again. (#969) * Fix display of multiple vote polls (#967) Closes #952 * Updates to Dutch localization (#966) * Font picker consistency (#960) * Put SF Rounded into the popup menu with Hyperlegible & Dislexia * Remove SF Rounded Toggle * Fix In-App Safari (#945) * Fix In-App Safari * Open SFSafariViewController in a separate window * Swiftformat * Optimize custom font * Fix a localization + make the ... menu zone bigger * Update Localizable.strings (#976) * Fix Equatable impl for Status and Account (thanks class) * Make secondary column available on any size + add a toggle + faster macOS window resize * Bigger secondary column width * Composer: Fix swipe to dismiss * Composer: Better ALT editing UI * updates for Basque (#983) added missing translations and small fixes * Updated spanish localization (#982) Co-authored-by: Roberto Pastor <roberto.pastor@cabify.com> * Polish localization update (#980) * Update Localizable.strings (#979) More strings * Singularize enum type names (#978) * Fixes for composer and DM * Remove padding * Rename settings.swipeactions.status.icon-style * Remove unused left/right localizable strings * Add settings.swipeactions.appearance * Add settings.swipeactions.status.explanation * Add settings.swipeactions.primary and settings.swipeactions.secondary * Add settings.swipeactions.use-theme-colors and settings.swipeactions.use-theme-colors-explanation * Dutch localization update --------- Co-authored-by: Thomas Ricouard <ricouard77@gmail.com> Co-authored-by: Andrzej Rózga <53080024+AndrzejRozga@users.noreply.github.com> Co-authored-by: Cthulhux <github@tuxproject.de> Co-authored-by: Sean Goldin <EvilOne@users.noreply.github.com> Co-authored-by: David Davies-Payne <d2p@me.com> Co-authored-by: Alex Grebenyuk <grebenyuk.alexander@gmail.com> Co-authored-by: Yusuke Arakawa <108506642+nekolaboratory@users.noreply.github.com> Co-authored-by: Yusuke Arakawa <nekolaboratory@users.noreply.github.com> Co-authored-by: Thomas Durand <Dean151@users.noreply.github.com> Co-authored-by: Dejavu Moe <jialong.vip@gmail.com> Co-authored-by: Chanhwi Joo <56245920+te6-in@users.noreply.github.com> Co-authored-by: Henrik Nyh <henrik@nyh.se> Co-authored-by: nixzhu <zhuhongxu@gmail.com> Co-authored-by: Gareth Simpson <g@xurble.org> Co-authored-by: Peter-Josef Meisch <pj.meisch@sothawo.com> Co-authored-by: David Walter <divadretlaw@users.noreply.github.com> Co-authored-by: Xabi <xabi.rn@gmail.com> Co-authored-by: Roberto Pastor <wedge.hero@gmail.com> Co-authored-by: Roberto Pastor <roberto.pastor@cabify.com> Co-authored-by: Louis Lac <lac.louis5@gmail.com>
2023-02-22 06:07:26 +00:00
createStatusActionPicker(selection: $userPreferences.swipeActionsStatusLeadingLeft,
2023-02-22 18:09:39 +00:00
label: "settings.swipeactions.primary")
.onChange(of: userPreferences.swipeActionsStatusLeadingLeft) { _, action in
Redesigned swipe actions settings (#937) * Redesigned Swipe Action Settings screen * Add TODO comments * Redesigned Swipe Action Settings screen * Redesigned Swipe Action Settings screen * Add EN localization strings for primary/secondary * Consolidate left/right swipe actions into one section * Switch to targeted Swift concurrency warnings + fix them * Polish localization update (#936) * Updates to Dutch localization: (#935) * de: translated the notes feature (#933) * Fix 1 line note in centre (#938) * Sort lists alphabetically in ListAddAccountView (#943) * Optimize viewId (#942) * Update Localizable.strings (#941) Co-authored-by: Yusuke Arakawa <nekolaboratory@users.noreply.github.com> * Update Nuke (#940) * Remove Sendable conformance on Client as it's not needed * Profile: Show about fields inline * Added a tip that it's a video, and not an image when autoplay is off (#939) * Added a tip that it's a video, and not an image when autoplay is off * Centered - bigger version of the video tip * Share post as image close #885 * Honour in app browser settings when opening profile about fields * Fix threading UI * More tweak to capture mode * Update Localizable.strings (#948) * Update Localizable.strings (#946) Translated.. * Updated EmojiText to 2.x (#944) Interface used by IceCubeApp has not changed from 1.x to 2.x Looking at the library diff shows new features like SFSymbol powered emojis. Not like we're going to make use of that https://github.com/divadretlaw/EmojiText/compare/v1.2.0...2.0.2 * Bump to 1.5.5 * Polish localization update (#949) * Optimize avatar view (#950) * Reduce AvatarPlaceholderView body calls * Resize avatars * Reworked post header view + add option to hide server name from username * Better header spacing * Further improvement to the post header * Polish localization update (#954) * Update Localizable.strings (#953) * Show post header thread icon more consistently * Fix post header * Fix threading UI * Fix trending refresh * de: 1 new string -> translated (#955) * Update Simplified Chinese Translation (#926) * Update Korean localization (#957) * Trim whitespace and newlines in instance rules list (#956) * Fix theme not being applied live on status row close #961 * Update some translations (#959) * Add indicator for bots accounts * Bump to 1.5.6 * Fix status actions on boosting posts (#974) * Fix context menus for boosts * Allow my boost of my followers-only post * Disable boost context menu on posts can't be boosted and show different string for boosting my own private post * Localizations * CR --------- Co-authored-by: Thomas Ricouard <ricouard77@gmail.com> * Fix crash when opening account details (#972) close #918 * Tweak the theme selector view (#975) Co-authored-by: Yusuke Arakawa <nekolaboratory@users.noreply.github.com> * Change the Content Settings icon to match the timeline icon again. (#969) * Fix display of multiple vote polls (#967) Closes #952 * Updates to Dutch localization (#966) * Font picker consistency (#960) * Put SF Rounded into the popup menu with Hyperlegible & Dislexia * Remove SF Rounded Toggle * Fix In-App Safari (#945) * Fix In-App Safari * Open SFSafariViewController in a separate window * Swiftformat * Optimize custom font * Fix a localization + make the ... menu zone bigger * Update Localizable.strings (#976) * Fix Equatable impl for Status and Account (thanks class) * Make secondary column available on any size + add a toggle + faster macOS window resize * Bigger secondary column width * Composer: Fix swipe to dismiss * Composer: Better ALT editing UI * updates for Basque (#983) added missing translations and small fixes * Updated spanish localization (#982) Co-authored-by: Roberto Pastor <roberto.pastor@cabify.com> * Polish localization update (#980) * Update Localizable.strings (#979) More strings * Singularize enum type names (#978) * Fixes for composer and DM * Remove padding * Rename settings.swipeactions.status.icon-style * Remove unused left/right localizable strings * Add settings.swipeactions.appearance * Add settings.swipeactions.status.explanation * Add settings.swipeactions.primary and settings.swipeactions.secondary * Add settings.swipeactions.use-theme-colors and settings.swipeactions.use-theme-colors-explanation * Dutch localization update --------- Co-authored-by: Thomas Ricouard <ricouard77@gmail.com> Co-authored-by: Andrzej Rózga <53080024+AndrzejRozga@users.noreply.github.com> Co-authored-by: Cthulhux <github@tuxproject.de> Co-authored-by: Sean Goldin <EvilOne@users.noreply.github.com> Co-authored-by: David Davies-Payne <d2p@me.com> Co-authored-by: Alex Grebenyuk <grebenyuk.alexander@gmail.com> Co-authored-by: Yusuke Arakawa <108506642+nekolaboratory@users.noreply.github.com> Co-authored-by: Yusuke Arakawa <nekolaboratory@users.noreply.github.com> Co-authored-by: Thomas Durand <Dean151@users.noreply.github.com> Co-authored-by: Dejavu Moe <jialong.vip@gmail.com> Co-authored-by: Chanhwi Joo <56245920+te6-in@users.noreply.github.com> Co-authored-by: Henrik Nyh <henrik@nyh.se> Co-authored-by: nixzhu <zhuhongxu@gmail.com> Co-authored-by: Gareth Simpson <g@xurble.org> Co-authored-by: Peter-Josef Meisch <pj.meisch@sothawo.com> Co-authored-by: David Walter <divadretlaw@users.noreply.github.com> Co-authored-by: Xabi <xabi.rn@gmail.com> Co-authored-by: Roberto Pastor <wedge.hero@gmail.com> Co-authored-by: Roberto Pastor <roberto.pastor@cabify.com> Co-authored-by: Louis Lac <lac.louis5@gmail.com>
2023-02-22 06:07:26 +00:00
if action == .none {
2023-02-22 18:09:39 +00:00
userPreferences.swipeActionsStatusLeadingRight = .none
}
}
2023-02-22 18:09:39 +00:00
Redesigned swipe actions settings (#937) * Redesigned Swipe Action Settings screen * Add TODO comments * Redesigned Swipe Action Settings screen * Redesigned Swipe Action Settings screen * Add EN localization strings for primary/secondary * Consolidate left/right swipe actions into one section * Switch to targeted Swift concurrency warnings + fix them * Polish localization update (#936) * Updates to Dutch localization: (#935) * de: translated the notes feature (#933) * Fix 1 line note in centre (#938) * Sort lists alphabetically in ListAddAccountView (#943) * Optimize viewId (#942) * Update Localizable.strings (#941) Co-authored-by: Yusuke Arakawa <nekolaboratory@users.noreply.github.com> * Update Nuke (#940) * Remove Sendable conformance on Client as it's not needed * Profile: Show about fields inline * Added a tip that it's a video, and not an image when autoplay is off (#939) * Added a tip that it's a video, and not an image when autoplay is off * Centered - bigger version of the video tip * Share post as image close #885 * Honour in app browser settings when opening profile about fields * Fix threading UI * More tweak to capture mode * Update Localizable.strings (#948) * Update Localizable.strings (#946) Translated.. * Updated EmojiText to 2.x (#944) Interface used by IceCubeApp has not changed from 1.x to 2.x Looking at the library diff shows new features like SFSymbol powered emojis. Not like we're going to make use of that https://github.com/divadretlaw/EmojiText/compare/v1.2.0...2.0.2 * Bump to 1.5.5 * Polish localization update (#949) * Optimize avatar view (#950) * Reduce AvatarPlaceholderView body calls * Resize avatars * Reworked post header view + add option to hide server name from username * Better header spacing * Further improvement to the post header * Polish localization update (#954) * Update Localizable.strings (#953) * Show post header thread icon more consistently * Fix post header * Fix threading UI * Fix trending refresh * de: 1 new string -> translated (#955) * Update Simplified Chinese Translation (#926) * Update Korean localization (#957) * Trim whitespace and newlines in instance rules list (#956) * Fix theme not being applied live on status row close #961 * Update some translations (#959) * Add indicator for bots accounts * Bump to 1.5.6 * Fix status actions on boosting posts (#974) * Fix context menus for boosts * Allow my boost of my followers-only post * Disable boost context menu on posts can't be boosted and show different string for boosting my own private post * Localizations * CR --------- Co-authored-by: Thomas Ricouard <ricouard77@gmail.com> * Fix crash when opening account details (#972) close #918 * Tweak the theme selector view (#975) Co-authored-by: Yusuke Arakawa <nekolaboratory@users.noreply.github.com> * Change the Content Settings icon to match the timeline icon again. (#969) * Fix display of multiple vote polls (#967) Closes #952 * Updates to Dutch localization (#966) * Font picker consistency (#960) * Put SF Rounded into the popup menu with Hyperlegible & Dislexia * Remove SF Rounded Toggle * Fix In-App Safari (#945) * Fix In-App Safari * Open SFSafariViewController in a separate window * Swiftformat * Optimize custom font * Fix a localization + make the ... menu zone bigger * Update Localizable.strings (#976) * Fix Equatable impl for Status and Account (thanks class) * Make secondary column available on any size + add a toggle + faster macOS window resize * Bigger secondary column width * Composer: Fix swipe to dismiss * Composer: Better ALT editing UI * updates for Basque (#983) added missing translations and small fixes * Updated spanish localization (#982) Co-authored-by: Roberto Pastor <roberto.pastor@cabify.com> * Polish localization update (#980) * Update Localizable.strings (#979) More strings * Singularize enum type names (#978) * Fixes for composer and DM * Remove padding * Rename settings.swipeactions.status.icon-style * Remove unused left/right localizable strings * Add settings.swipeactions.appearance * Add settings.swipeactions.status.explanation * Add settings.swipeactions.primary and settings.swipeactions.secondary * Add settings.swipeactions.use-theme-colors and settings.swipeactions.use-theme-colors-explanation * Dutch localization update --------- Co-authored-by: Thomas Ricouard <ricouard77@gmail.com> Co-authored-by: Andrzej Rózga <53080024+AndrzejRozga@users.noreply.github.com> Co-authored-by: Cthulhux <github@tuxproject.de> Co-authored-by: Sean Goldin <EvilOne@users.noreply.github.com> Co-authored-by: David Davies-Payne <d2p@me.com> Co-authored-by: Alex Grebenyuk <grebenyuk.alexander@gmail.com> Co-authored-by: Yusuke Arakawa <108506642+nekolaboratory@users.noreply.github.com> Co-authored-by: Yusuke Arakawa <nekolaboratory@users.noreply.github.com> Co-authored-by: Thomas Durand <Dean151@users.noreply.github.com> Co-authored-by: Dejavu Moe <jialong.vip@gmail.com> Co-authored-by: Chanhwi Joo <56245920+te6-in@users.noreply.github.com> Co-authored-by: Henrik Nyh <henrik@nyh.se> Co-authored-by: nixzhu <zhuhongxu@gmail.com> Co-authored-by: Gareth Simpson <g@xurble.org> Co-authored-by: Peter-Josef Meisch <pj.meisch@sothawo.com> Co-authored-by: David Walter <divadretlaw@users.noreply.github.com> Co-authored-by: Xabi <xabi.rn@gmail.com> Co-authored-by: Roberto Pastor <wedge.hero@gmail.com> Co-authored-by: Roberto Pastor <roberto.pastor@cabify.com> Co-authored-by: Louis Lac <lac.louis5@gmail.com>
2023-02-22 06:07:26 +00:00
createStatusActionPicker(selection: $userPreferences.swipeActionsStatusLeadingRight,
2023-02-22 18:09:39 +00:00
label: "settings.swipeactions.secondary")
.disabled(userPreferences.swipeActionsStatusLeadingLeft == .none)
Redesigned swipe actions settings (#937) * Redesigned Swipe Action Settings screen * Add TODO comments * Redesigned Swipe Action Settings screen * Redesigned Swipe Action Settings screen * Add EN localization strings for primary/secondary * Consolidate left/right swipe actions into one section * Switch to targeted Swift concurrency warnings + fix them * Polish localization update (#936) * Updates to Dutch localization: (#935) * de: translated the notes feature (#933) * Fix 1 line note in centre (#938) * Sort lists alphabetically in ListAddAccountView (#943) * Optimize viewId (#942) * Update Localizable.strings (#941) Co-authored-by: Yusuke Arakawa <nekolaboratory@users.noreply.github.com> * Update Nuke (#940) * Remove Sendable conformance on Client as it's not needed * Profile: Show about fields inline * Added a tip that it's a video, and not an image when autoplay is off (#939) * Added a tip that it's a video, and not an image when autoplay is off * Centered - bigger version of the video tip * Share post as image close #885 * Honour in app browser settings when opening profile about fields * Fix threading UI * More tweak to capture mode * Update Localizable.strings (#948) * Update Localizable.strings (#946) Translated.. * Updated EmojiText to 2.x (#944) Interface used by IceCubeApp has not changed from 1.x to 2.x Looking at the library diff shows new features like SFSymbol powered emojis. Not like we're going to make use of that https://github.com/divadretlaw/EmojiText/compare/v1.2.0...2.0.2 * Bump to 1.5.5 * Polish localization update (#949) * Optimize avatar view (#950) * Reduce AvatarPlaceholderView body calls * Resize avatars * Reworked post header view + add option to hide server name from username * Better header spacing * Further improvement to the post header * Polish localization update (#954) * Update Localizable.strings (#953) * Show post header thread icon more consistently * Fix post header * Fix threading UI * Fix trending refresh * de: 1 new string -> translated (#955) * Update Simplified Chinese Translation (#926) * Update Korean localization (#957) * Trim whitespace and newlines in instance rules list (#956) * Fix theme not being applied live on status row close #961 * Update some translations (#959) * Add indicator for bots accounts * Bump to 1.5.6 * Fix status actions on boosting posts (#974) * Fix context menus for boosts * Allow my boost of my followers-only post * Disable boost context menu on posts can't be boosted and show different string for boosting my own private post * Localizations * CR --------- Co-authored-by: Thomas Ricouard <ricouard77@gmail.com> * Fix crash when opening account details (#972) close #918 * Tweak the theme selector view (#975) Co-authored-by: Yusuke Arakawa <nekolaboratory@users.noreply.github.com> * Change the Content Settings icon to match the timeline icon again. (#969) * Fix display of multiple vote polls (#967) Closes #952 * Updates to Dutch localization (#966) * Font picker consistency (#960) * Put SF Rounded into the popup menu with Hyperlegible & Dislexia * Remove SF Rounded Toggle * Fix In-App Safari (#945) * Fix In-App Safari * Open SFSafariViewController in a separate window * Swiftformat * Optimize custom font * Fix a localization + make the ... menu zone bigger * Update Localizable.strings (#976) * Fix Equatable impl for Status and Account (thanks class) * Make secondary column available on any size + add a toggle + faster macOS window resize * Bigger secondary column width * Composer: Fix swipe to dismiss * Composer: Better ALT editing UI * updates for Basque (#983) added missing translations and small fixes * Updated spanish localization (#982) Co-authored-by: Roberto Pastor <roberto.pastor@cabify.com> * Polish localization update (#980) * Update Localizable.strings (#979) More strings * Singularize enum type names (#978) * Fixes for composer and DM * Remove padding * Rename settings.swipeactions.status.icon-style * Remove unused left/right localizable strings * Add settings.swipeactions.appearance * Add settings.swipeactions.status.explanation * Add settings.swipeactions.primary and settings.swipeactions.secondary * Add settings.swipeactions.use-theme-colors and settings.swipeactions.use-theme-colors-explanation * Dutch localization update --------- Co-authored-by: Thomas Ricouard <ricouard77@gmail.com> Co-authored-by: Andrzej Rózga <53080024+AndrzejRozga@users.noreply.github.com> Co-authored-by: Cthulhux <github@tuxproject.de> Co-authored-by: Sean Goldin <EvilOne@users.noreply.github.com> Co-authored-by: David Davies-Payne <d2p@me.com> Co-authored-by: Alex Grebenyuk <grebenyuk.alexander@gmail.com> Co-authored-by: Yusuke Arakawa <108506642+nekolaboratory@users.noreply.github.com> Co-authored-by: Yusuke Arakawa <nekolaboratory@users.noreply.github.com> Co-authored-by: Thomas Durand <Dean151@users.noreply.github.com> Co-authored-by: Dejavu Moe <jialong.vip@gmail.com> Co-authored-by: Chanhwi Joo <56245920+te6-in@users.noreply.github.com> Co-authored-by: Henrik Nyh <henrik@nyh.se> Co-authored-by: nixzhu <zhuhongxu@gmail.com> Co-authored-by: Gareth Simpson <g@xurble.org> Co-authored-by: Peter-Josef Meisch <pj.meisch@sothawo.com> Co-authored-by: David Walter <divadretlaw@users.noreply.github.com> Co-authored-by: Xabi <xabi.rn@gmail.com> Co-authored-by: Roberto Pastor <wedge.hero@gmail.com> Co-authored-by: Roberto Pastor <roberto.pastor@cabify.com> Co-authored-by: Louis Lac <lac.louis5@gmail.com>
2023-02-22 06:07:26 +00:00
Label("settings.swipeactions.status.trailing", systemImage: "arrow.left")
.foregroundColor(.secondary)
2023-02-22 18:09:39 +00:00
Redesigned swipe actions settings (#937) * Redesigned Swipe Action Settings screen * Add TODO comments * Redesigned Swipe Action Settings screen * Redesigned Swipe Action Settings screen * Add EN localization strings for primary/secondary * Consolidate left/right swipe actions into one section * Switch to targeted Swift concurrency warnings + fix them * Polish localization update (#936) * Updates to Dutch localization: (#935) * de: translated the notes feature (#933) * Fix 1 line note in centre (#938) * Sort lists alphabetically in ListAddAccountView (#943) * Optimize viewId (#942) * Update Localizable.strings (#941) Co-authored-by: Yusuke Arakawa <nekolaboratory@users.noreply.github.com> * Update Nuke (#940) * Remove Sendable conformance on Client as it's not needed * Profile: Show about fields inline * Added a tip that it's a video, and not an image when autoplay is off (#939) * Added a tip that it's a video, and not an image when autoplay is off * Centered - bigger version of the video tip * Share post as image close #885 * Honour in app browser settings when opening profile about fields * Fix threading UI * More tweak to capture mode * Update Localizable.strings (#948) * Update Localizable.strings (#946) Translated.. * Updated EmojiText to 2.x (#944) Interface used by IceCubeApp has not changed from 1.x to 2.x Looking at the library diff shows new features like SFSymbol powered emojis. Not like we're going to make use of that https://github.com/divadretlaw/EmojiText/compare/v1.2.0...2.0.2 * Bump to 1.5.5 * Polish localization update (#949) * Optimize avatar view (#950) * Reduce AvatarPlaceholderView body calls * Resize avatars * Reworked post header view + add option to hide server name from username * Better header spacing * Further improvement to the post header * Polish localization update (#954) * Update Localizable.strings (#953) * Show post header thread icon more consistently * Fix post header * Fix threading UI * Fix trending refresh * de: 1 new string -> translated (#955) * Update Simplified Chinese Translation (#926) * Update Korean localization (#957) * Trim whitespace and newlines in instance rules list (#956) * Fix theme not being applied live on status row close #961 * Update some translations (#959) * Add indicator for bots accounts * Bump to 1.5.6 * Fix status actions on boosting posts (#974) * Fix context menus for boosts * Allow my boost of my followers-only post * Disable boost context menu on posts can't be boosted and show different string for boosting my own private post * Localizations * CR --------- Co-authored-by: Thomas Ricouard <ricouard77@gmail.com> * Fix crash when opening account details (#972) close #918 * Tweak the theme selector view (#975) Co-authored-by: Yusuke Arakawa <nekolaboratory@users.noreply.github.com> * Change the Content Settings icon to match the timeline icon again. (#969) * Fix display of multiple vote polls (#967) Closes #952 * Updates to Dutch localization (#966) * Font picker consistency (#960) * Put SF Rounded into the popup menu with Hyperlegible & Dislexia * Remove SF Rounded Toggle * Fix In-App Safari (#945) * Fix In-App Safari * Open SFSafariViewController in a separate window * Swiftformat * Optimize custom font * Fix a localization + make the ... menu zone bigger * Update Localizable.strings (#976) * Fix Equatable impl for Status and Account (thanks class) * Make secondary column available on any size + add a toggle + faster macOS window resize * Bigger secondary column width * Composer: Fix swipe to dismiss * Composer: Better ALT editing UI * updates for Basque (#983) added missing translations and small fixes * Updated spanish localization (#982) Co-authored-by: Roberto Pastor <roberto.pastor@cabify.com> * Polish localization update (#980) * Update Localizable.strings (#979) More strings * Singularize enum type names (#978) * Fixes for composer and DM * Remove padding * Rename settings.swipeactions.status.icon-style * Remove unused left/right localizable strings * Add settings.swipeactions.appearance * Add settings.swipeactions.status.explanation * Add settings.swipeactions.primary and settings.swipeactions.secondary * Add settings.swipeactions.use-theme-colors and settings.swipeactions.use-theme-colors-explanation * Dutch localization update --------- Co-authored-by: Thomas Ricouard <ricouard77@gmail.com> Co-authored-by: Andrzej Rózga <53080024+AndrzejRozga@users.noreply.github.com> Co-authored-by: Cthulhux <github@tuxproject.de> Co-authored-by: Sean Goldin <EvilOne@users.noreply.github.com> Co-authored-by: David Davies-Payne <d2p@me.com> Co-authored-by: Alex Grebenyuk <grebenyuk.alexander@gmail.com> Co-authored-by: Yusuke Arakawa <108506642+nekolaboratory@users.noreply.github.com> Co-authored-by: Yusuke Arakawa <nekolaboratory@users.noreply.github.com> Co-authored-by: Thomas Durand <Dean151@users.noreply.github.com> Co-authored-by: Dejavu Moe <jialong.vip@gmail.com> Co-authored-by: Chanhwi Joo <56245920+te6-in@users.noreply.github.com> Co-authored-by: Henrik Nyh <henrik@nyh.se> Co-authored-by: nixzhu <zhuhongxu@gmail.com> Co-authored-by: Gareth Simpson <g@xurble.org> Co-authored-by: Peter-Josef Meisch <pj.meisch@sothawo.com> Co-authored-by: David Walter <divadretlaw@users.noreply.github.com> Co-authored-by: Xabi <xabi.rn@gmail.com> Co-authored-by: Roberto Pastor <wedge.hero@gmail.com> Co-authored-by: Roberto Pastor <roberto.pastor@cabify.com> Co-authored-by: Louis Lac <lac.louis5@gmail.com>
2023-02-22 06:07:26 +00:00
createStatusActionPicker(selection: $userPreferences.swipeActionsStatusTrailingRight,
2023-02-22 18:09:39 +00:00
label: "settings.swipeactions.primary")
.onChange(of: userPreferences.swipeActionsStatusTrailingRight) { _, action in
Redesigned swipe actions settings (#937) * Redesigned Swipe Action Settings screen * Add TODO comments * Redesigned Swipe Action Settings screen * Redesigned Swipe Action Settings screen * Add EN localization strings for primary/secondary * Consolidate left/right swipe actions into one section * Switch to targeted Swift concurrency warnings + fix them * Polish localization update (#936) * Updates to Dutch localization: (#935) * de: translated the notes feature (#933) * Fix 1 line note in centre (#938) * Sort lists alphabetically in ListAddAccountView (#943) * Optimize viewId (#942) * Update Localizable.strings (#941) Co-authored-by: Yusuke Arakawa <nekolaboratory@users.noreply.github.com> * Update Nuke (#940) * Remove Sendable conformance on Client as it's not needed * Profile: Show about fields inline * Added a tip that it's a video, and not an image when autoplay is off (#939) * Added a tip that it's a video, and not an image when autoplay is off * Centered - bigger version of the video tip * Share post as image close #885 * Honour in app browser settings when opening profile about fields * Fix threading UI * More tweak to capture mode * Update Localizable.strings (#948) * Update Localizable.strings (#946) Translated.. * Updated EmojiText to 2.x (#944) Interface used by IceCubeApp has not changed from 1.x to 2.x Looking at the library diff shows new features like SFSymbol powered emojis. Not like we're going to make use of that https://github.com/divadretlaw/EmojiText/compare/v1.2.0...2.0.2 * Bump to 1.5.5 * Polish localization update (#949) * Optimize avatar view (#950) * Reduce AvatarPlaceholderView body calls * Resize avatars * Reworked post header view + add option to hide server name from username * Better header spacing * Further improvement to the post header * Polish localization update (#954) * Update Localizable.strings (#953) * Show post header thread icon more consistently * Fix post header * Fix threading UI * Fix trending refresh * de: 1 new string -> translated (#955) * Update Simplified Chinese Translation (#926) * Update Korean localization (#957) * Trim whitespace and newlines in instance rules list (#956) * Fix theme not being applied live on status row close #961 * Update some translations (#959) * Add indicator for bots accounts * Bump to 1.5.6 * Fix status actions on boosting posts (#974) * Fix context menus for boosts * Allow my boost of my followers-only post * Disable boost context menu on posts can't be boosted and show different string for boosting my own private post * Localizations * CR --------- Co-authored-by: Thomas Ricouard <ricouard77@gmail.com> * Fix crash when opening account details (#972) close #918 * Tweak the theme selector view (#975) Co-authored-by: Yusuke Arakawa <nekolaboratory@users.noreply.github.com> * Change the Content Settings icon to match the timeline icon again. (#969) * Fix display of multiple vote polls (#967) Closes #952 * Updates to Dutch localization (#966) * Font picker consistency (#960) * Put SF Rounded into the popup menu with Hyperlegible & Dislexia * Remove SF Rounded Toggle * Fix In-App Safari (#945) * Fix In-App Safari * Open SFSafariViewController in a separate window * Swiftformat * Optimize custom font * Fix a localization + make the ... menu zone bigger * Update Localizable.strings (#976) * Fix Equatable impl for Status and Account (thanks class) * Make secondary column available on any size + add a toggle + faster macOS window resize * Bigger secondary column width * Composer: Fix swipe to dismiss * Composer: Better ALT editing UI * updates for Basque (#983) added missing translations and small fixes * Updated spanish localization (#982) Co-authored-by: Roberto Pastor <roberto.pastor@cabify.com> * Polish localization update (#980) * Update Localizable.strings (#979) More strings * Singularize enum type names (#978) * Fixes for composer and DM * Remove padding * Rename settings.swipeactions.status.icon-style * Remove unused left/right localizable strings * Add settings.swipeactions.appearance * Add settings.swipeactions.status.explanation * Add settings.swipeactions.primary and settings.swipeactions.secondary * Add settings.swipeactions.use-theme-colors and settings.swipeactions.use-theme-colors-explanation * Dutch localization update --------- Co-authored-by: Thomas Ricouard <ricouard77@gmail.com> Co-authored-by: Andrzej Rózga <53080024+AndrzejRozga@users.noreply.github.com> Co-authored-by: Cthulhux <github@tuxproject.de> Co-authored-by: Sean Goldin <EvilOne@users.noreply.github.com> Co-authored-by: David Davies-Payne <d2p@me.com> Co-authored-by: Alex Grebenyuk <grebenyuk.alexander@gmail.com> Co-authored-by: Yusuke Arakawa <108506642+nekolaboratory@users.noreply.github.com> Co-authored-by: Yusuke Arakawa <nekolaboratory@users.noreply.github.com> Co-authored-by: Thomas Durand <Dean151@users.noreply.github.com> Co-authored-by: Dejavu Moe <jialong.vip@gmail.com> Co-authored-by: Chanhwi Joo <56245920+te6-in@users.noreply.github.com> Co-authored-by: Henrik Nyh <henrik@nyh.se> Co-authored-by: nixzhu <zhuhongxu@gmail.com> Co-authored-by: Gareth Simpson <g@xurble.org> Co-authored-by: Peter-Josef Meisch <pj.meisch@sothawo.com> Co-authored-by: David Walter <divadretlaw@users.noreply.github.com> Co-authored-by: Xabi <xabi.rn@gmail.com> Co-authored-by: Roberto Pastor <wedge.hero@gmail.com> Co-authored-by: Roberto Pastor <roberto.pastor@cabify.com> Co-authored-by: Louis Lac <lac.louis5@gmail.com>
2023-02-22 06:07:26 +00:00
if action == .none {
2023-02-22 18:09:39 +00:00
userPreferences.swipeActionsStatusTrailingLeft = .none
}
}
Redesigned swipe actions settings (#937) * Redesigned Swipe Action Settings screen * Add TODO comments * Redesigned Swipe Action Settings screen * Redesigned Swipe Action Settings screen * Add EN localization strings for primary/secondary * Consolidate left/right swipe actions into one section * Switch to targeted Swift concurrency warnings + fix them * Polish localization update (#936) * Updates to Dutch localization: (#935) * de: translated the notes feature (#933) * Fix 1 line note in centre (#938) * Sort lists alphabetically in ListAddAccountView (#943) * Optimize viewId (#942) * Update Localizable.strings (#941) Co-authored-by: Yusuke Arakawa <nekolaboratory@users.noreply.github.com> * Update Nuke (#940) * Remove Sendable conformance on Client as it's not needed * Profile: Show about fields inline * Added a tip that it's a video, and not an image when autoplay is off (#939) * Added a tip that it's a video, and not an image when autoplay is off * Centered - bigger version of the video tip * Share post as image close #885 * Honour in app browser settings when opening profile about fields * Fix threading UI * More tweak to capture mode * Update Localizable.strings (#948) * Update Localizable.strings (#946) Translated.. * Updated EmojiText to 2.x (#944) Interface used by IceCubeApp has not changed from 1.x to 2.x Looking at the library diff shows new features like SFSymbol powered emojis. Not like we're going to make use of that https://github.com/divadretlaw/EmojiText/compare/v1.2.0...2.0.2 * Bump to 1.5.5 * Polish localization update (#949) * Optimize avatar view (#950) * Reduce AvatarPlaceholderView body calls * Resize avatars * Reworked post header view + add option to hide server name from username * Better header spacing * Further improvement to the post header * Polish localization update (#954) * Update Localizable.strings (#953) * Show post header thread icon more consistently * Fix post header * Fix threading UI * Fix trending refresh * de: 1 new string -> translated (#955) * Update Simplified Chinese Translation (#926) * Update Korean localization (#957) * Trim whitespace and newlines in instance rules list (#956) * Fix theme not being applied live on status row close #961 * Update some translations (#959) * Add indicator for bots accounts * Bump to 1.5.6 * Fix status actions on boosting posts (#974) * Fix context menus for boosts * Allow my boost of my followers-only post * Disable boost context menu on posts can't be boosted and show different string for boosting my own private post * Localizations * CR --------- Co-authored-by: Thomas Ricouard <ricouard77@gmail.com> * Fix crash when opening account details (#972) close #918 * Tweak the theme selector view (#975) Co-authored-by: Yusuke Arakawa <nekolaboratory@users.noreply.github.com> * Change the Content Settings icon to match the timeline icon again. (#969) * Fix display of multiple vote polls (#967) Closes #952 * Updates to Dutch localization (#966) * Font picker consistency (#960) * Put SF Rounded into the popup menu with Hyperlegible & Dislexia * Remove SF Rounded Toggle * Fix In-App Safari (#945) * Fix In-App Safari * Open SFSafariViewController in a separate window * Swiftformat * Optimize custom font * Fix a localization + make the ... menu zone bigger * Update Localizable.strings (#976) * Fix Equatable impl for Status and Account (thanks class) * Make secondary column available on any size + add a toggle + faster macOS window resize * Bigger secondary column width * Composer: Fix swipe to dismiss * Composer: Better ALT editing UI * updates for Basque (#983) added missing translations and small fixes * Updated spanish localization (#982) Co-authored-by: Roberto Pastor <roberto.pastor@cabify.com> * Polish localization update (#980) * Update Localizable.strings (#979) More strings * Singularize enum type names (#978) * Fixes for composer and DM * Remove padding * Rename settings.swipeactions.status.icon-style * Remove unused left/right localizable strings * Add settings.swipeactions.appearance * Add settings.swipeactions.status.explanation * Add settings.swipeactions.primary and settings.swipeactions.secondary * Add settings.swipeactions.use-theme-colors and settings.swipeactions.use-theme-colors-explanation * Dutch localization update --------- Co-authored-by: Thomas Ricouard <ricouard77@gmail.com> Co-authored-by: Andrzej Rózga <53080024+AndrzejRozga@users.noreply.github.com> Co-authored-by: Cthulhux <github@tuxproject.de> Co-authored-by: Sean Goldin <EvilOne@users.noreply.github.com> Co-authored-by: David Davies-Payne <d2p@me.com> Co-authored-by: Alex Grebenyuk <grebenyuk.alexander@gmail.com> Co-authored-by: Yusuke Arakawa <108506642+nekolaboratory@users.noreply.github.com> Co-authored-by: Yusuke Arakawa <nekolaboratory@users.noreply.github.com> Co-authored-by: Thomas Durand <Dean151@users.noreply.github.com> Co-authored-by: Dejavu Moe <jialong.vip@gmail.com> Co-authored-by: Chanhwi Joo <56245920+te6-in@users.noreply.github.com> Co-authored-by: Henrik Nyh <henrik@nyh.se> Co-authored-by: nixzhu <zhuhongxu@gmail.com> Co-authored-by: Gareth Simpson <g@xurble.org> Co-authored-by: Peter-Josef Meisch <pj.meisch@sothawo.com> Co-authored-by: David Walter <divadretlaw@users.noreply.github.com> Co-authored-by: Xabi <xabi.rn@gmail.com> Co-authored-by: Roberto Pastor <wedge.hero@gmail.com> Co-authored-by: Roberto Pastor <roberto.pastor@cabify.com> Co-authored-by: Louis Lac <lac.louis5@gmail.com>
2023-02-22 06:07:26 +00:00
createStatusActionPicker(selection: $userPreferences.swipeActionsStatusTrailingLeft,
2023-02-22 18:09:39 +00:00
label: "settings.swipeactions.secondary")
Redesigned swipe actions settings (#937) * Redesigned Swipe Action Settings screen * Add TODO comments * Redesigned Swipe Action Settings screen * Redesigned Swipe Action Settings screen * Add EN localization strings for primary/secondary * Consolidate left/right swipe actions into one section * Switch to targeted Swift concurrency warnings + fix them * Polish localization update (#936) * Updates to Dutch localization: (#935) * de: translated the notes feature (#933) * Fix 1 line note in centre (#938) * Sort lists alphabetically in ListAddAccountView (#943) * Optimize viewId (#942) * Update Localizable.strings (#941) Co-authored-by: Yusuke Arakawa <nekolaboratory@users.noreply.github.com> * Update Nuke (#940) * Remove Sendable conformance on Client as it's not needed * Profile: Show about fields inline * Added a tip that it's a video, and not an image when autoplay is off (#939) * Added a tip that it's a video, and not an image when autoplay is off * Centered - bigger version of the video tip * Share post as image close #885 * Honour in app browser settings when opening profile about fields * Fix threading UI * More tweak to capture mode * Update Localizable.strings (#948) * Update Localizable.strings (#946) Translated.. * Updated EmojiText to 2.x (#944) Interface used by IceCubeApp has not changed from 1.x to 2.x Looking at the library diff shows new features like SFSymbol powered emojis. Not like we're going to make use of that https://github.com/divadretlaw/EmojiText/compare/v1.2.0...2.0.2 * Bump to 1.5.5 * Polish localization update (#949) * Optimize avatar view (#950) * Reduce AvatarPlaceholderView body calls * Resize avatars * Reworked post header view + add option to hide server name from username * Better header spacing * Further improvement to the post header * Polish localization update (#954) * Update Localizable.strings (#953) * Show post header thread icon more consistently * Fix post header * Fix threading UI * Fix trending refresh * de: 1 new string -> translated (#955) * Update Simplified Chinese Translation (#926) * Update Korean localization (#957) * Trim whitespace and newlines in instance rules list (#956) * Fix theme not being applied live on status row close #961 * Update some translations (#959) * Add indicator for bots accounts * Bump to 1.5.6 * Fix status actions on boosting posts (#974) * Fix context menus for boosts * Allow my boost of my followers-only post * Disable boost context menu on posts can't be boosted and show different string for boosting my own private post * Localizations * CR --------- Co-authored-by: Thomas Ricouard <ricouard77@gmail.com> * Fix crash when opening account details (#972) close #918 * Tweak the theme selector view (#975) Co-authored-by: Yusuke Arakawa <nekolaboratory@users.noreply.github.com> * Change the Content Settings icon to match the timeline icon again. (#969) * Fix display of multiple vote polls (#967) Closes #952 * Updates to Dutch localization (#966) * Font picker consistency (#960) * Put SF Rounded into the popup menu with Hyperlegible & Dislexia * Remove SF Rounded Toggle * Fix In-App Safari (#945) * Fix In-App Safari * Open SFSafariViewController in a separate window * Swiftformat * Optimize custom font * Fix a localization + make the ... menu zone bigger * Update Localizable.strings (#976) * Fix Equatable impl for Status and Account (thanks class) * Make secondary column available on any size + add a toggle + faster macOS window resize * Bigger secondary column width * Composer: Fix swipe to dismiss * Composer: Better ALT editing UI * updates for Basque (#983) added missing translations and small fixes * Updated spanish localization (#982) Co-authored-by: Roberto Pastor <roberto.pastor@cabify.com> * Polish localization update (#980) * Update Localizable.strings (#979) More strings * Singularize enum type names (#978) * Fixes for composer and DM * Remove padding * Rename settings.swipeactions.status.icon-style * Remove unused left/right localizable strings * Add settings.swipeactions.appearance * Add settings.swipeactions.status.explanation * Add settings.swipeactions.primary and settings.swipeactions.secondary * Add settings.swipeactions.use-theme-colors and settings.swipeactions.use-theme-colors-explanation * Dutch localization update --------- Co-authored-by: Thomas Ricouard <ricouard77@gmail.com> Co-authored-by: Andrzej Rózga <53080024+AndrzejRozga@users.noreply.github.com> Co-authored-by: Cthulhux <github@tuxproject.de> Co-authored-by: Sean Goldin <EvilOne@users.noreply.github.com> Co-authored-by: David Davies-Payne <d2p@me.com> Co-authored-by: Alex Grebenyuk <grebenyuk.alexander@gmail.com> Co-authored-by: Yusuke Arakawa <108506642+nekolaboratory@users.noreply.github.com> Co-authored-by: Yusuke Arakawa <nekolaboratory@users.noreply.github.com> Co-authored-by: Thomas Durand <Dean151@users.noreply.github.com> Co-authored-by: Dejavu Moe <jialong.vip@gmail.com> Co-authored-by: Chanhwi Joo <56245920+te6-in@users.noreply.github.com> Co-authored-by: Henrik Nyh <henrik@nyh.se> Co-authored-by: nixzhu <zhuhongxu@gmail.com> Co-authored-by: Gareth Simpson <g@xurble.org> Co-authored-by: Peter-Josef Meisch <pj.meisch@sothawo.com> Co-authored-by: David Walter <divadretlaw@users.noreply.github.com> Co-authored-by: Xabi <xabi.rn@gmail.com> Co-authored-by: Roberto Pastor <wedge.hero@gmail.com> Co-authored-by: Roberto Pastor <roberto.pastor@cabify.com> Co-authored-by: Louis Lac <lac.louis5@gmail.com>
2023-02-22 06:07:26 +00:00
.disabled(userPreferences.swipeActionsStatusTrailingRight == .none)
2023-02-22 18:09:39 +00:00
Redesigned swipe actions settings (#937) * Redesigned Swipe Action Settings screen * Add TODO comments * Redesigned Swipe Action Settings screen * Redesigned Swipe Action Settings screen * Add EN localization strings for primary/secondary * Consolidate left/right swipe actions into one section * Switch to targeted Swift concurrency warnings + fix them * Polish localization update (#936) * Updates to Dutch localization: (#935) * de: translated the notes feature (#933) * Fix 1 line note in centre (#938) * Sort lists alphabetically in ListAddAccountView (#943) * Optimize viewId (#942) * Update Localizable.strings (#941) Co-authored-by: Yusuke Arakawa <nekolaboratory@users.noreply.github.com> * Update Nuke (#940) * Remove Sendable conformance on Client as it's not needed * Profile: Show about fields inline * Added a tip that it's a video, and not an image when autoplay is off (#939) * Added a tip that it's a video, and not an image when autoplay is off * Centered - bigger version of the video tip * Share post as image close #885 * Honour in app browser settings when opening profile about fields * Fix threading UI * More tweak to capture mode * Update Localizable.strings (#948) * Update Localizable.strings (#946) Translated.. * Updated EmojiText to 2.x (#944) Interface used by IceCubeApp has not changed from 1.x to 2.x Looking at the library diff shows new features like SFSymbol powered emojis. Not like we're going to make use of that https://github.com/divadretlaw/EmojiText/compare/v1.2.0...2.0.2 * Bump to 1.5.5 * Polish localization update (#949) * Optimize avatar view (#950) * Reduce AvatarPlaceholderView body calls * Resize avatars * Reworked post header view + add option to hide server name from username * Better header spacing * Further improvement to the post header * Polish localization update (#954) * Update Localizable.strings (#953) * Show post header thread icon more consistently * Fix post header * Fix threading UI * Fix trending refresh * de: 1 new string -> translated (#955) * Update Simplified Chinese Translation (#926) * Update Korean localization (#957) * Trim whitespace and newlines in instance rules list (#956) * Fix theme not being applied live on status row close #961 * Update some translations (#959) * Add indicator for bots accounts * Bump to 1.5.6 * Fix status actions on boosting posts (#974) * Fix context menus for boosts * Allow my boost of my followers-only post * Disable boost context menu on posts can't be boosted and show different string for boosting my own private post * Localizations * CR --------- Co-authored-by: Thomas Ricouard <ricouard77@gmail.com> * Fix crash when opening account details (#972) close #918 * Tweak the theme selector view (#975) Co-authored-by: Yusuke Arakawa <nekolaboratory@users.noreply.github.com> * Change the Content Settings icon to match the timeline icon again. (#969) * Fix display of multiple vote polls (#967) Closes #952 * Updates to Dutch localization (#966) * Font picker consistency (#960) * Put SF Rounded into the popup menu with Hyperlegible & Dislexia * Remove SF Rounded Toggle * Fix In-App Safari (#945) * Fix In-App Safari * Open SFSafariViewController in a separate window * Swiftformat * Optimize custom font * Fix a localization + make the ... menu zone bigger * Update Localizable.strings (#976) * Fix Equatable impl for Status and Account (thanks class) * Make secondary column available on any size + add a toggle + faster macOS window resize * Bigger secondary column width * Composer: Fix swipe to dismiss * Composer: Better ALT editing UI * updates for Basque (#983) added missing translations and small fixes * Updated spanish localization (#982) Co-authored-by: Roberto Pastor <roberto.pastor@cabify.com> * Polish localization update (#980) * Update Localizable.strings (#979) More strings * Singularize enum type names (#978) * Fixes for composer and DM * Remove padding * Rename settings.swipeactions.status.icon-style * Remove unused left/right localizable strings * Add settings.swipeactions.appearance * Add settings.swipeactions.status.explanation * Add settings.swipeactions.primary and settings.swipeactions.secondary * Add settings.swipeactions.use-theme-colors and settings.swipeactions.use-theme-colors-explanation * Dutch localization update --------- Co-authored-by: Thomas Ricouard <ricouard77@gmail.com> Co-authored-by: Andrzej Rózga <53080024+AndrzejRozga@users.noreply.github.com> Co-authored-by: Cthulhux <github@tuxproject.de> Co-authored-by: Sean Goldin <EvilOne@users.noreply.github.com> Co-authored-by: David Davies-Payne <d2p@me.com> Co-authored-by: Alex Grebenyuk <grebenyuk.alexander@gmail.com> Co-authored-by: Yusuke Arakawa <108506642+nekolaboratory@users.noreply.github.com> Co-authored-by: Yusuke Arakawa <nekolaboratory@users.noreply.github.com> Co-authored-by: Thomas Durand <Dean151@users.noreply.github.com> Co-authored-by: Dejavu Moe <jialong.vip@gmail.com> Co-authored-by: Chanhwi Joo <56245920+te6-in@users.noreply.github.com> Co-authored-by: Henrik Nyh <henrik@nyh.se> Co-authored-by: nixzhu <zhuhongxu@gmail.com> Co-authored-by: Gareth Simpson <g@xurble.org> Co-authored-by: Peter-Josef Meisch <pj.meisch@sothawo.com> Co-authored-by: David Walter <divadretlaw@users.noreply.github.com> Co-authored-by: Xabi <xabi.rn@gmail.com> Co-authored-by: Roberto Pastor <wedge.hero@gmail.com> Co-authored-by: Roberto Pastor <roberto.pastor@cabify.com> Co-authored-by: Louis Lac <lac.louis5@gmail.com>
2023-02-22 06:07:26 +00:00
} header: {
Text("settings.swipeactions.status")
} footer: {
Text("settings.swipeactions.status.explanation")
}
2023-12-19 08:48:12 +00:00
#if !os(visionOS)
Redesigned swipe actions settings (#937) * Redesigned Swipe Action Settings screen * Add TODO comments * Redesigned Swipe Action Settings screen * Redesigned Swipe Action Settings screen * Add EN localization strings for primary/secondary * Consolidate left/right swipe actions into one section * Switch to targeted Swift concurrency warnings + fix them * Polish localization update (#936) * Updates to Dutch localization: (#935) * de: translated the notes feature (#933) * Fix 1 line note in centre (#938) * Sort lists alphabetically in ListAddAccountView (#943) * Optimize viewId (#942) * Update Localizable.strings (#941) Co-authored-by: Yusuke Arakawa <nekolaboratory@users.noreply.github.com> * Update Nuke (#940) * Remove Sendable conformance on Client as it's not needed * Profile: Show about fields inline * Added a tip that it's a video, and not an image when autoplay is off (#939) * Added a tip that it's a video, and not an image when autoplay is off * Centered - bigger version of the video tip * Share post as image close #885 * Honour in app browser settings when opening profile about fields * Fix threading UI * More tweak to capture mode * Update Localizable.strings (#948) * Update Localizable.strings (#946) Translated.. * Updated EmojiText to 2.x (#944) Interface used by IceCubeApp has not changed from 1.x to 2.x Looking at the library diff shows new features like SFSymbol powered emojis. Not like we're going to make use of that https://github.com/divadretlaw/EmojiText/compare/v1.2.0...2.0.2 * Bump to 1.5.5 * Polish localization update (#949) * Optimize avatar view (#950) * Reduce AvatarPlaceholderView body calls * Resize avatars * Reworked post header view + add option to hide server name from username * Better header spacing * Further improvement to the post header * Polish localization update (#954) * Update Localizable.strings (#953) * Show post header thread icon more consistently * Fix post header * Fix threading UI * Fix trending refresh * de: 1 new string -> translated (#955) * Update Simplified Chinese Translation (#926) * Update Korean localization (#957) * Trim whitespace and newlines in instance rules list (#956) * Fix theme not being applied live on status row close #961 * Update some translations (#959) * Add indicator for bots accounts * Bump to 1.5.6 * Fix status actions on boosting posts (#974) * Fix context menus for boosts * Allow my boost of my followers-only post * Disable boost context menu on posts can't be boosted and show different string for boosting my own private post * Localizations * CR --------- Co-authored-by: Thomas Ricouard <ricouard77@gmail.com> * Fix crash when opening account details (#972) close #918 * Tweak the theme selector view (#975) Co-authored-by: Yusuke Arakawa <nekolaboratory@users.noreply.github.com> * Change the Content Settings icon to match the timeline icon again. (#969) * Fix display of multiple vote polls (#967) Closes #952 * Updates to Dutch localization (#966) * Font picker consistency (#960) * Put SF Rounded into the popup menu with Hyperlegible & Dislexia * Remove SF Rounded Toggle * Fix In-App Safari (#945) * Fix In-App Safari * Open SFSafariViewController in a separate window * Swiftformat * Optimize custom font * Fix a localization + make the ... menu zone bigger * Update Localizable.strings (#976) * Fix Equatable impl for Status and Account (thanks class) * Make secondary column available on any size + add a toggle + faster macOS window resize * Bigger secondary column width * Composer: Fix swipe to dismiss * Composer: Better ALT editing UI * updates for Basque (#983) added missing translations and small fixes * Updated spanish localization (#982) Co-authored-by: Roberto Pastor <roberto.pastor@cabify.com> * Polish localization update (#980) * Update Localizable.strings (#979) More strings * Singularize enum type names (#978) * Fixes for composer and DM * Remove padding * Rename settings.swipeactions.status.icon-style * Remove unused left/right localizable strings * Add settings.swipeactions.appearance * Add settings.swipeactions.status.explanation * Add settings.swipeactions.primary and settings.swipeactions.secondary * Add settings.swipeactions.use-theme-colors and settings.swipeactions.use-theme-colors-explanation * Dutch localization update --------- Co-authored-by: Thomas Ricouard <ricouard77@gmail.com> Co-authored-by: Andrzej Rózga <53080024+AndrzejRozga@users.noreply.github.com> Co-authored-by: Cthulhux <github@tuxproject.de> Co-authored-by: Sean Goldin <EvilOne@users.noreply.github.com> Co-authored-by: David Davies-Payne <d2p@me.com> Co-authored-by: Alex Grebenyuk <grebenyuk.alexander@gmail.com> Co-authored-by: Yusuke Arakawa <108506642+nekolaboratory@users.noreply.github.com> Co-authored-by: Yusuke Arakawa <nekolaboratory@users.noreply.github.com> Co-authored-by: Thomas Durand <Dean151@users.noreply.github.com> Co-authored-by: Dejavu Moe <jialong.vip@gmail.com> Co-authored-by: Chanhwi Joo <56245920+te6-in@users.noreply.github.com> Co-authored-by: Henrik Nyh <henrik@nyh.se> Co-authored-by: nixzhu <zhuhongxu@gmail.com> Co-authored-by: Gareth Simpson <g@xurble.org> Co-authored-by: Peter-Josef Meisch <pj.meisch@sothawo.com> Co-authored-by: David Walter <divadretlaw@users.noreply.github.com> Co-authored-by: Xabi <xabi.rn@gmail.com> Co-authored-by: Roberto Pastor <wedge.hero@gmail.com> Co-authored-by: Roberto Pastor <roberto.pastor@cabify.com> Co-authored-by: Louis Lac <lac.louis5@gmail.com>
2023-02-22 06:07:26 +00:00
.listRowBackground(theme.primaryBackgroundColor)
2023-12-19 08:48:12 +00:00
#endif
Redesigned swipe actions settings (#937) * Redesigned Swipe Action Settings screen * Add TODO comments * Redesigned Swipe Action Settings screen * Redesigned Swipe Action Settings screen * Add EN localization strings for primary/secondary * Consolidate left/right swipe actions into one section * Switch to targeted Swift concurrency warnings + fix them * Polish localization update (#936) * Updates to Dutch localization: (#935) * de: translated the notes feature (#933) * Fix 1 line note in centre (#938) * Sort lists alphabetically in ListAddAccountView (#943) * Optimize viewId (#942) * Update Localizable.strings (#941) Co-authored-by: Yusuke Arakawa <nekolaboratory@users.noreply.github.com> * Update Nuke (#940) * Remove Sendable conformance on Client as it's not needed * Profile: Show about fields inline * Added a tip that it's a video, and not an image when autoplay is off (#939) * Added a tip that it's a video, and not an image when autoplay is off * Centered - bigger version of the video tip * Share post as image close #885 * Honour in app browser settings when opening profile about fields * Fix threading UI * More tweak to capture mode * Update Localizable.strings (#948) * Update Localizable.strings (#946) Translated.. * Updated EmojiText to 2.x (#944) Interface used by IceCubeApp has not changed from 1.x to 2.x Looking at the library diff shows new features like SFSymbol powered emojis. Not like we're going to make use of that https://github.com/divadretlaw/EmojiText/compare/v1.2.0...2.0.2 * Bump to 1.5.5 * Polish localization update (#949) * Optimize avatar view (#950) * Reduce AvatarPlaceholderView body calls * Resize avatars * Reworked post header view + add option to hide server name from username * Better header spacing * Further improvement to the post header * Polish localization update (#954) * Update Localizable.strings (#953) * Show post header thread icon more consistently * Fix post header * Fix threading UI * Fix trending refresh * de: 1 new string -> translated (#955) * Update Simplified Chinese Translation (#926) * Update Korean localization (#957) * Trim whitespace and newlines in instance rules list (#956) * Fix theme not being applied live on status row close #961 * Update some translations (#959) * Add indicator for bots accounts * Bump to 1.5.6 * Fix status actions on boosting posts (#974) * Fix context menus for boosts * Allow my boost of my followers-only post * Disable boost context menu on posts can't be boosted and show different string for boosting my own private post * Localizations * CR --------- Co-authored-by: Thomas Ricouard <ricouard77@gmail.com> * Fix crash when opening account details (#972) close #918 * Tweak the theme selector view (#975) Co-authored-by: Yusuke Arakawa <nekolaboratory@users.noreply.github.com> * Change the Content Settings icon to match the timeline icon again. (#969) * Fix display of multiple vote polls (#967) Closes #952 * Updates to Dutch localization (#966) * Font picker consistency (#960) * Put SF Rounded into the popup menu with Hyperlegible & Dislexia * Remove SF Rounded Toggle * Fix In-App Safari (#945) * Fix In-App Safari * Open SFSafariViewController in a separate window * Swiftformat * Optimize custom font * Fix a localization + make the ... menu zone bigger * Update Localizable.strings (#976) * Fix Equatable impl for Status and Account (thanks class) * Make secondary column available on any size + add a toggle + faster macOS window resize * Bigger secondary column width * Composer: Fix swipe to dismiss * Composer: Better ALT editing UI * updates for Basque (#983) added missing translations and small fixes * Updated spanish localization (#982) Co-authored-by: Roberto Pastor <roberto.pastor@cabify.com> * Polish localization update (#980) * Update Localizable.strings (#979) More strings * Singularize enum type names (#978) * Fixes for composer and DM * Remove padding * Rename settings.swipeactions.status.icon-style * Remove unused left/right localizable strings * Add settings.swipeactions.appearance * Add settings.swipeactions.status.explanation * Add settings.swipeactions.primary and settings.swipeactions.secondary * Add settings.swipeactions.use-theme-colors and settings.swipeactions.use-theme-colors-explanation * Dutch localization update --------- Co-authored-by: Thomas Ricouard <ricouard77@gmail.com> Co-authored-by: Andrzej Rózga <53080024+AndrzejRozga@users.noreply.github.com> Co-authored-by: Cthulhux <github@tuxproject.de> Co-authored-by: Sean Goldin <EvilOne@users.noreply.github.com> Co-authored-by: David Davies-Payne <d2p@me.com> Co-authored-by: Alex Grebenyuk <grebenyuk.alexander@gmail.com> Co-authored-by: Yusuke Arakawa <108506642+nekolaboratory@users.noreply.github.com> Co-authored-by: Yusuke Arakawa <nekolaboratory@users.noreply.github.com> Co-authored-by: Thomas Durand <Dean151@users.noreply.github.com> Co-authored-by: Dejavu Moe <jialong.vip@gmail.com> Co-authored-by: Chanhwi Joo <56245920+te6-in@users.noreply.github.com> Co-authored-by: Henrik Nyh <henrik@nyh.se> Co-authored-by: nixzhu <zhuhongxu@gmail.com> Co-authored-by: Gareth Simpson <g@xurble.org> Co-authored-by: Peter-Josef Meisch <pj.meisch@sothawo.com> Co-authored-by: David Walter <divadretlaw@users.noreply.github.com> Co-authored-by: Xabi <xabi.rn@gmail.com> Co-authored-by: Roberto Pastor <wedge.hero@gmail.com> Co-authored-by: Roberto Pastor <roberto.pastor@cabify.com> Co-authored-by: Louis Lac <lac.louis5@gmail.com>
2023-02-22 06:07:26 +00:00
Section {
Picker(selection: $userPreferences.swipeActionsIconStyle, label: Text("settings.swipeactions.icon-style")) {
ForEach(UserPreferences.SwipeActionsIconStyle.allCases, id: \.rawValue) { style in
Text(style.description).tag(style)
}
}
Redesigned swipe actions settings (#937) * Redesigned Swipe Action Settings screen * Add TODO comments * Redesigned Swipe Action Settings screen * Redesigned Swipe Action Settings screen * Add EN localization strings for primary/secondary * Consolidate left/right swipe actions into one section * Switch to targeted Swift concurrency warnings + fix them * Polish localization update (#936) * Updates to Dutch localization: (#935) * de: translated the notes feature (#933) * Fix 1 line note in centre (#938) * Sort lists alphabetically in ListAddAccountView (#943) * Optimize viewId (#942) * Update Localizable.strings (#941) Co-authored-by: Yusuke Arakawa <nekolaboratory@users.noreply.github.com> * Update Nuke (#940) * Remove Sendable conformance on Client as it's not needed * Profile: Show about fields inline * Added a tip that it's a video, and not an image when autoplay is off (#939) * Added a tip that it's a video, and not an image when autoplay is off * Centered - bigger version of the video tip * Share post as image close #885 * Honour in app browser settings when opening profile about fields * Fix threading UI * More tweak to capture mode * Update Localizable.strings (#948) * Update Localizable.strings (#946) Translated.. * Updated EmojiText to 2.x (#944) Interface used by IceCubeApp has not changed from 1.x to 2.x Looking at the library diff shows new features like SFSymbol powered emojis. Not like we're going to make use of that https://github.com/divadretlaw/EmojiText/compare/v1.2.0...2.0.2 * Bump to 1.5.5 * Polish localization update (#949) * Optimize avatar view (#950) * Reduce AvatarPlaceholderView body calls * Resize avatars * Reworked post header view + add option to hide server name from username * Better header spacing * Further improvement to the post header * Polish localization update (#954) * Update Localizable.strings (#953) * Show post header thread icon more consistently * Fix post header * Fix threading UI * Fix trending refresh * de: 1 new string -> translated (#955) * Update Simplified Chinese Translation (#926) * Update Korean localization (#957) * Trim whitespace and newlines in instance rules list (#956) * Fix theme not being applied live on status row close #961 * Update some translations (#959) * Add indicator for bots accounts * Bump to 1.5.6 * Fix status actions on boosting posts (#974) * Fix context menus for boosts * Allow my boost of my followers-only post * Disable boost context menu on posts can't be boosted and show different string for boosting my own private post * Localizations * CR --------- Co-authored-by: Thomas Ricouard <ricouard77@gmail.com> * Fix crash when opening account details (#972) close #918 * Tweak the theme selector view (#975) Co-authored-by: Yusuke Arakawa <nekolaboratory@users.noreply.github.com> * Change the Content Settings icon to match the timeline icon again. (#969) * Fix display of multiple vote polls (#967) Closes #952 * Updates to Dutch localization (#966) * Font picker consistency (#960) * Put SF Rounded into the popup menu with Hyperlegible & Dislexia * Remove SF Rounded Toggle * Fix In-App Safari (#945) * Fix In-App Safari * Open SFSafariViewController in a separate window * Swiftformat * Optimize custom font * Fix a localization + make the ... menu zone bigger * Update Localizable.strings (#976) * Fix Equatable impl for Status and Account (thanks class) * Make secondary column available on any size + add a toggle + faster macOS window resize * Bigger secondary column width * Composer: Fix swipe to dismiss * Composer: Better ALT editing UI * updates for Basque (#983) added missing translations and small fixes * Updated spanish localization (#982) Co-authored-by: Roberto Pastor <roberto.pastor@cabify.com> * Polish localization update (#980) * Update Localizable.strings (#979) More strings * Singularize enum type names (#978) * Fixes for composer and DM * Remove padding * Rename settings.swipeactions.status.icon-style * Remove unused left/right localizable strings * Add settings.swipeactions.appearance * Add settings.swipeactions.status.explanation * Add settings.swipeactions.primary and settings.swipeactions.secondary * Add settings.swipeactions.use-theme-colors and settings.swipeactions.use-theme-colors-explanation * Dutch localization update --------- Co-authored-by: Thomas Ricouard <ricouard77@gmail.com> Co-authored-by: Andrzej Rózga <53080024+AndrzejRozga@users.noreply.github.com> Co-authored-by: Cthulhux <github@tuxproject.de> Co-authored-by: Sean Goldin <EvilOne@users.noreply.github.com> Co-authored-by: David Davies-Payne <d2p@me.com> Co-authored-by: Alex Grebenyuk <grebenyuk.alexander@gmail.com> Co-authored-by: Yusuke Arakawa <108506642+nekolaboratory@users.noreply.github.com> Co-authored-by: Yusuke Arakawa <nekolaboratory@users.noreply.github.com> Co-authored-by: Thomas Durand <Dean151@users.noreply.github.com> Co-authored-by: Dejavu Moe <jialong.vip@gmail.com> Co-authored-by: Chanhwi Joo <56245920+te6-in@users.noreply.github.com> Co-authored-by: Henrik Nyh <henrik@nyh.se> Co-authored-by: nixzhu <zhuhongxu@gmail.com> Co-authored-by: Gareth Simpson <g@xurble.org> Co-authored-by: Peter-Josef Meisch <pj.meisch@sothawo.com> Co-authored-by: David Walter <divadretlaw@users.noreply.github.com> Co-authored-by: Xabi <xabi.rn@gmail.com> Co-authored-by: Roberto Pastor <wedge.hero@gmail.com> Co-authored-by: Roberto Pastor <roberto.pastor@cabify.com> Co-authored-by: Louis Lac <lac.louis5@gmail.com>
2023-02-22 06:07:26 +00:00
Toggle(isOn: $userPreferences.swipeActionsUseThemeColor) {
Text("settings.swipeactions.use-theme-colors")
}
} header: {
Text("settings.swipeactions.appearance")
} footer: {
Text("settings.swipeactions.use-theme-colors-explanation")
}
2023-12-19 08:48:12 +00:00
#if !os(visionOS)
.listRowBackground(theme.primaryBackgroundColor)
2023-12-19 08:48:12 +00:00
#endif
}
.navigationTitle("settings.swipeactions.navigation-title")
2023-12-19 08:48:12 +00:00
#if !os(visionOS)
.scrollContentBackground(.hidden)
.background(theme.secondaryBackgroundColor)
2023-12-19 08:48:12 +00:00
#endif
}
2023-02-12 15:29:41 +00:00
Redesigned swipe actions settings (#937) * Redesigned Swipe Action Settings screen * Add TODO comments * Redesigned Swipe Action Settings screen * Redesigned Swipe Action Settings screen * Add EN localization strings for primary/secondary * Consolidate left/right swipe actions into one section * Switch to targeted Swift concurrency warnings + fix them * Polish localization update (#936) * Updates to Dutch localization: (#935) * de: translated the notes feature (#933) * Fix 1 line note in centre (#938) * Sort lists alphabetically in ListAddAccountView (#943) * Optimize viewId (#942) * Update Localizable.strings (#941) Co-authored-by: Yusuke Arakawa <nekolaboratory@users.noreply.github.com> * Update Nuke (#940) * Remove Sendable conformance on Client as it's not needed * Profile: Show about fields inline * Added a tip that it's a video, and not an image when autoplay is off (#939) * Added a tip that it's a video, and not an image when autoplay is off * Centered - bigger version of the video tip * Share post as image close #885 * Honour in app browser settings when opening profile about fields * Fix threading UI * More tweak to capture mode * Update Localizable.strings (#948) * Update Localizable.strings (#946) Translated.. * Updated EmojiText to 2.x (#944) Interface used by IceCubeApp has not changed from 1.x to 2.x Looking at the library diff shows new features like SFSymbol powered emojis. Not like we're going to make use of that https://github.com/divadretlaw/EmojiText/compare/v1.2.0...2.0.2 * Bump to 1.5.5 * Polish localization update (#949) * Optimize avatar view (#950) * Reduce AvatarPlaceholderView body calls * Resize avatars * Reworked post header view + add option to hide server name from username * Better header spacing * Further improvement to the post header * Polish localization update (#954) * Update Localizable.strings (#953) * Show post header thread icon more consistently * Fix post header * Fix threading UI * Fix trending refresh * de: 1 new string -> translated (#955) * Update Simplified Chinese Translation (#926) * Update Korean localization (#957) * Trim whitespace and newlines in instance rules list (#956) * Fix theme not being applied live on status row close #961 * Update some translations (#959) * Add indicator for bots accounts * Bump to 1.5.6 * Fix status actions on boosting posts (#974) * Fix context menus for boosts * Allow my boost of my followers-only post * Disable boost context menu on posts can't be boosted and show different string for boosting my own private post * Localizations * CR --------- Co-authored-by: Thomas Ricouard <ricouard77@gmail.com> * Fix crash when opening account details (#972) close #918 * Tweak the theme selector view (#975) Co-authored-by: Yusuke Arakawa <nekolaboratory@users.noreply.github.com> * Change the Content Settings icon to match the timeline icon again. (#969) * Fix display of multiple vote polls (#967) Closes #952 * Updates to Dutch localization (#966) * Font picker consistency (#960) * Put SF Rounded into the popup menu with Hyperlegible & Dislexia * Remove SF Rounded Toggle * Fix In-App Safari (#945) * Fix In-App Safari * Open SFSafariViewController in a separate window * Swiftformat * Optimize custom font * Fix a localization + make the ... menu zone bigger * Update Localizable.strings (#976) * Fix Equatable impl for Status and Account (thanks class) * Make secondary column available on any size + add a toggle + faster macOS window resize * Bigger secondary column width * Composer: Fix swipe to dismiss * Composer: Better ALT editing UI * updates for Basque (#983) added missing translations and small fixes * Updated spanish localization (#982) Co-authored-by: Roberto Pastor <roberto.pastor@cabify.com> * Polish localization update (#980) * Update Localizable.strings (#979) More strings * Singularize enum type names (#978) * Fixes for composer and DM * Remove padding * Rename settings.swipeactions.status.icon-style * Remove unused left/right localizable strings * Add settings.swipeactions.appearance * Add settings.swipeactions.status.explanation * Add settings.swipeactions.primary and settings.swipeactions.secondary * Add settings.swipeactions.use-theme-colors and settings.swipeactions.use-theme-colors-explanation * Dutch localization update --------- Co-authored-by: Thomas Ricouard <ricouard77@gmail.com> Co-authored-by: Andrzej Rózga <53080024+AndrzejRozga@users.noreply.github.com> Co-authored-by: Cthulhux <github@tuxproject.de> Co-authored-by: Sean Goldin <EvilOne@users.noreply.github.com> Co-authored-by: David Davies-Payne <d2p@me.com> Co-authored-by: Alex Grebenyuk <grebenyuk.alexander@gmail.com> Co-authored-by: Yusuke Arakawa <108506642+nekolaboratory@users.noreply.github.com> Co-authored-by: Yusuke Arakawa <nekolaboratory@users.noreply.github.com> Co-authored-by: Thomas Durand <Dean151@users.noreply.github.com> Co-authored-by: Dejavu Moe <jialong.vip@gmail.com> Co-authored-by: Chanhwi Joo <56245920+te6-in@users.noreply.github.com> Co-authored-by: Henrik Nyh <henrik@nyh.se> Co-authored-by: nixzhu <zhuhongxu@gmail.com> Co-authored-by: Gareth Simpson <g@xurble.org> Co-authored-by: Peter-Josef Meisch <pj.meisch@sothawo.com> Co-authored-by: David Walter <divadretlaw@users.noreply.github.com> Co-authored-by: Xabi <xabi.rn@gmail.com> Co-authored-by: Roberto Pastor <wedge.hero@gmail.com> Co-authored-by: Roberto Pastor <roberto.pastor@cabify.com> Co-authored-by: Louis Lac <lac.louis5@gmail.com>
2023-02-22 06:07:26 +00:00
private func createStatusActionPicker(selection: Binding<StatusAction>, label: LocalizedStringKey) -> some View {
2023-09-16 12:15:03 +00:00
Picker(selection: selection, label: Text(label)) {
Redesigned swipe actions settings (#937) * Redesigned Swipe Action Settings screen * Add TODO comments * Redesigned Swipe Action Settings screen * Redesigned Swipe Action Settings screen * Add EN localization strings for primary/secondary * Consolidate left/right swipe actions into one section * Switch to targeted Swift concurrency warnings + fix them * Polish localization update (#936) * Updates to Dutch localization: (#935) * de: translated the notes feature (#933) * Fix 1 line note in centre (#938) * Sort lists alphabetically in ListAddAccountView (#943) * Optimize viewId (#942) * Update Localizable.strings (#941) Co-authored-by: Yusuke Arakawa <nekolaboratory@users.noreply.github.com> * Update Nuke (#940) * Remove Sendable conformance on Client as it's not needed * Profile: Show about fields inline * Added a tip that it's a video, and not an image when autoplay is off (#939) * Added a tip that it's a video, and not an image when autoplay is off * Centered - bigger version of the video tip * Share post as image close #885 * Honour in app browser settings when opening profile about fields * Fix threading UI * More tweak to capture mode * Update Localizable.strings (#948) * Update Localizable.strings (#946) Translated.. * Updated EmojiText to 2.x (#944) Interface used by IceCubeApp has not changed from 1.x to 2.x Looking at the library diff shows new features like SFSymbol powered emojis. Not like we're going to make use of that https://github.com/divadretlaw/EmojiText/compare/v1.2.0...2.0.2 * Bump to 1.5.5 * Polish localization update (#949) * Optimize avatar view (#950) * Reduce AvatarPlaceholderView body calls * Resize avatars * Reworked post header view + add option to hide server name from username * Better header spacing * Further improvement to the post header * Polish localization update (#954) * Update Localizable.strings (#953) * Show post header thread icon more consistently * Fix post header * Fix threading UI * Fix trending refresh * de: 1 new string -> translated (#955) * Update Simplified Chinese Translation (#926) * Update Korean localization (#957) * Trim whitespace and newlines in instance rules list (#956) * Fix theme not being applied live on status row close #961 * Update some translations (#959) * Add indicator for bots accounts * Bump to 1.5.6 * Fix status actions on boosting posts (#974) * Fix context menus for boosts * Allow my boost of my followers-only post * Disable boost context menu on posts can't be boosted and show different string for boosting my own private post * Localizations * CR --------- Co-authored-by: Thomas Ricouard <ricouard77@gmail.com> * Fix crash when opening account details (#972) close #918 * Tweak the theme selector view (#975) Co-authored-by: Yusuke Arakawa <nekolaboratory@users.noreply.github.com> * Change the Content Settings icon to match the timeline icon again. (#969) * Fix display of multiple vote polls (#967) Closes #952 * Updates to Dutch localization (#966) * Font picker consistency (#960) * Put SF Rounded into the popup menu with Hyperlegible & Dislexia * Remove SF Rounded Toggle * Fix In-App Safari (#945) * Fix In-App Safari * Open SFSafariViewController in a separate window * Swiftformat * Optimize custom font * Fix a localization + make the ... menu zone bigger * Update Localizable.strings (#976) * Fix Equatable impl for Status and Account (thanks class) * Make secondary column available on any size + add a toggle + faster macOS window resize * Bigger secondary column width * Composer: Fix swipe to dismiss * Composer: Better ALT editing UI * updates for Basque (#983) added missing translations and small fixes * Updated spanish localization (#982) Co-authored-by: Roberto Pastor <roberto.pastor@cabify.com> * Polish localization update (#980) * Update Localizable.strings (#979) More strings * Singularize enum type names (#978) * Fixes for composer and DM * Remove padding * Rename settings.swipeactions.status.icon-style * Remove unused left/right localizable strings * Add settings.swipeactions.appearance * Add settings.swipeactions.status.explanation * Add settings.swipeactions.primary and settings.swipeactions.secondary * Add settings.swipeactions.use-theme-colors and settings.swipeactions.use-theme-colors-explanation * Dutch localization update --------- Co-authored-by: Thomas Ricouard <ricouard77@gmail.com> Co-authored-by: Andrzej Rózga <53080024+AndrzejRozga@users.noreply.github.com> Co-authored-by: Cthulhux <github@tuxproject.de> Co-authored-by: Sean Goldin <EvilOne@users.noreply.github.com> Co-authored-by: David Davies-Payne <d2p@me.com> Co-authored-by: Alex Grebenyuk <grebenyuk.alexander@gmail.com> Co-authored-by: Yusuke Arakawa <108506642+nekolaboratory@users.noreply.github.com> Co-authored-by: Yusuke Arakawa <nekolaboratory@users.noreply.github.com> Co-authored-by: Thomas Durand <Dean151@users.noreply.github.com> Co-authored-by: Dejavu Moe <jialong.vip@gmail.com> Co-authored-by: Chanhwi Joo <56245920+te6-in@users.noreply.github.com> Co-authored-by: Henrik Nyh <henrik@nyh.se> Co-authored-by: nixzhu <zhuhongxu@gmail.com> Co-authored-by: Gareth Simpson <g@xurble.org> Co-authored-by: Peter-Josef Meisch <pj.meisch@sothawo.com> Co-authored-by: David Walter <divadretlaw@users.noreply.github.com> Co-authored-by: Xabi <xabi.rn@gmail.com> Co-authored-by: Roberto Pastor <wedge.hero@gmail.com> Co-authored-by: Roberto Pastor <roberto.pastor@cabify.com> Co-authored-by: Louis Lac <lac.louis5@gmail.com>
2023-02-22 06:07:26 +00:00
Section {
Text(StatusAction.none.displayName()).tag(StatusAction.none)
}
Section {
ForEach(StatusAction.allCases) { action in
if action != .none {
Text(action.displayName()).tag(action)
}
}
}
}
}
}