Skip to content

Commit

Permalink
ios, watch の微調整
Browse files Browse the repository at this point in the history
  • Loading branch information
aaaaa committed May 11, 2023
1 parent 0fcf5b1 commit 706e55f
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 7 deletions.
4 changes: 2 additions & 2 deletions PS Complication/PS Complication.swift
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ struct 🄿SComplication: Widget {
StaticConfiguration(kind: "PSComplication", provider: 🄿rovider()) { _ in
🄴ntryView()
}
.configurationDisplayName("Plain将棋盤")
.description("ショートカット")
.configurationDisplayName("ショートカット")
.description("アプリを立ち上げるためのショートカット")
.supportedFamilies([.accessoryCircular, .accessoryCorner, .accessoryInline])
}
}
6 changes: 3 additions & 3 deletions PS Watch App/☖ShogiView_watchOSApp.swift
Original file line number Diff line number Diff line change
Expand Up @@ -99,15 +99,15 @@ private struct 盤外: View {
Color.clear
HStack(spacing: 1) {
if self.立場 == .対面 { 手駒増減シート表示ボタン(self.陣営) }
if self.立場 == .手前 { 🛠ツールボタン(); Spacer() }
ForEach(self.各駒) { 盤外のコマ(self.陣営, $0) }
if self.立場 == .手前 { 手駒増減シート表示ボタン(self.陣営) }
}
}
.frame(width: self.マスの大きさ * 9,
height: self.マスの大きさ)
.frame(width: self.マスの大きさ * 7, height: self.マスの大きさ)
.contentShape(Rectangle())
.onTapGesture { 📱.こちらの手駒エリアを選択する(self.陣営) }
.padding(self.立場 == .手前 ? .leading : .trailing, self.マスの大きさ * 2)
.overlay(alignment: .leading) { if self.立場 == .手前 { 🛠ツールボタン() } }
}
init(_ タチバ: 手前か対面か) { self.立場 = タチバ }
}
Expand Down
3 changes: 2 additions & 1 deletion PS Watch App/🛠Menu_watchOSApp.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ struct 🛠ツールボタン: View {
.resizable()
.scaledToFit()
.padding(9)
.frame(width: self.マスの大きさ + 12, height: self.マスの大きさ + 12)
.frame(width: self.マスの大きさ * 2, height: self.マスの大きさ + 12)
.contentShape(Rectangle())
}
.buttonStyle(.plain)
.sheet(item: $📱.シートを表示) {
Expand Down
2 changes: 2 additions & 0 deletions PlainShogi/🌏Localization/en.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@
"ガイド" = "Guide";
"アプリについて" = "About";
"AppStoreリンク" = "AppStore link";
"ショートカット" = "Shortcut";
"アプリを立ち上げるためのショートカット" = "Shortcut to launch the app";

// ==== SharePlay ====
"概要" = "Description";
Expand Down
2 changes: 1 addition & 1 deletion PlainShogi/🧩Sub/🛠Menu.swift
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ private struct メニューボタン: View { // ⚙️
self.駒の選択解除ボタン()
} label: {
Image(systemName: self.セリフ体 ? "gear" : "gearshape")
.font(.title2)
.font(.title2.weight(.light))
.dynamicTypeSize(...DynamicTypeSize.accessibility1)
.padding()
.padding(.trailing, 8)
Expand Down

0 comments on commit 706e55f

Please sign in to comment.