Fixes and improvements

This commit is contained in:
Lumaa 2024-08-15 04:36:40 +02:00
parent 94f48143ab
commit e05d84a931
3 changed files with 5 additions and 4 deletions

View File

@ -31,7 +31,7 @@ struct ThreadedApp: App {
.task { .task {
#if DEBUG #if DEBUG
Tips.showAllTipsForTesting() Tips.showAllTipsForTesting()
UserDefaults.standard.removeObject(forKey: "lastVersion") UserDefaults.standard.set("ABC", forKey: "lastVersion")
#endif #endif
try? Tips.configure([ try? Tips.configure([

View File

@ -8,7 +8,7 @@ struct IconView: View {
ForEach(AppIcons.allCases, id: \.self) { icon in ForEach(AppIcons.allCases, id: \.self) { icon in
Button { Button {
HapticManager.playHaptics(haptics: Haptic.tap) HapticManager.playHaptics(haptics: Haptic.tap)
#if NS_EXTENSION_UNAVAILABLE #if !WIDGET
changeAppIcon(to: icon.assetName) changeAppIcon(to: icon.assetName)
#endif #endif
} label: { } label: {

View File

@ -13,7 +13,8 @@ struct ThreadedShortcuts: AppShortcutsProvider {
intent: OpenComposerIntent(), intent: OpenComposerIntent(),
phrases: [ phrases: [
"Start a \(.applicationName) post", "Start a \(.applicationName) post",
"Post on \(.applicationName)" "Post on \(.applicationName)",
"Post on Mastodon"
], ],
shortTitle: "status.posting", shortTitle: "status.posting",
systemImageName: "square.and.pencil" systemImageName: "square.and.pencil"
@ -235,7 +236,7 @@ struct PublishTextIntent: AppIntent {
.padding(.vertical) .padding(.vertical)
.padding(.horizontal, 25) .padding(.horizontal, 25)
.background(Color.black) .background(Color.black)
.clipShape(Capsule()) .clipShape(RoundedRectangle(cornerRadius: 19.0))
.padding(.horizontal) .padding(.horizontal)
} }
} }