File tree Expand file tree Collapse file tree 4 files changed +28
-2
lines changed
HeadsetControl-MacOSTray.xcodeproj/project.xcworkspace/xcuserdata/christianlauinger.xcuserdatad Expand file tree Collapse file tree 4 files changed +28
-2
lines changed Original file line number Diff line number Diff line change 1- CURRENT_PROJECT_VERSION = 251003.0759
1+ CURRENT_PROJECT_VERSION = 260107.1748
Original file line number Diff line number Diff line change 11import SwiftUI
2+ import AppKit
3+
4+ // SwiftUI wrapper for NSImage
5+ struct AppIconImage : NSViewRepresentable {
6+ func makeNSView( context: Context ) -> NSImageView {
7+ let imageView = NSImageView ( )
8+ imageView. image = NSApplication . shared. applicationIconImage
9+ imageView. imageScaling = . scaleProportionallyUpOrDown
10+ imageView. wantsLayer = true
11+ imageView. layer? . cornerRadius = 12
12+ imageView. layer? . masksToBounds = true
13+ return imageView
14+ }
15+ func updateNSView( _ nsView: NSImageView , context: Context ) { }
16+ }
217
318struct SettingsView : View {
419 @AppStorage ( " sidetoneOff " ) var sidetoneOff : Int = 0
@@ -14,10 +29,20 @@ struct SettingsView: View {
1429
1530 var body : some View {
1631 VStack ( alignment: . leading, spacing: 24 ) {
32+ // App Icon at the top
33+ HStack {
34+ Spacer ( )
35+ AppIconImage ( )
36+ . frame ( width: 64 , height: 64 )
37+ . shadow ( radius: 4 )
38+ . padding ( . top, 16 )
39+ Spacer ( )
40+ }
41+
1742 Text ( NSLocalizedString ( " HeadsetControl-MacOSTray " , comment: " App title " ) )
1843 . font ( . largeTitle)
1944 . bold ( )
20- . padding ( . top, 16 )
45+ . padding ( . top, 8 )
2146 . padding ( . bottom, 8 )
2247
2348 // General Settings Section
Original file line number Diff line number Diff line change @@ -52,6 +52,7 @@ These menu items only appear if the headset reports the corresponding capability
5252 ```
53533 . Verify the headsetcontrol binary works in a terminal (headsetcontrol -o json)
54544 . Check/change settings of the app when the headsetcontrol binary is not found
55+ 5 . You need to allow the execution of the app in MacOS security settings.
5556
5657## Build with Xcode
5758
You can’t perform that action at this time.
0 commit comments