sindresorhus/Settings

SF Symbols look stretched on external displays

Closed this issue · 1 comments

image

struct PreferencesPanes {
    
    static let GeneralPreferenceViewController: (_ cacheModal: CacheModal) -> SettingsPane = { cacheModal in
        let paneView = Settings.Pane(
            identifier: .general,
            title: "General",
            toolbarIcon: NSImage(systemSymbol: .gearshape, accessibilityDescription: "General Preferences")
        ) {
            GeneralPreferencesPane()
                .environmentObject(cacheModal)
        }
        
        return Settings.PaneHostingController(pane: paneView)
    }
    
    static let AccountPreferencesViewController: (_ connectModal: ConnectModal) -> SettingsPane = { connectModal in
        let paneView = Settings.Pane(
            identifier: .account,
            title: "Connect",
            toolbarIcon: NSImage(systemSymbol: .personCircle, accessibilityDescription: "Cider Connect Preferences")
        ) {
            AccountPreferencesPane()
                .environmentObject(connectModal)
        }
        
        return Settings.PaneHostingController(pane: paneView)
    }
    
    static let DeveloperPreferencesViewController: (_ mkModal: MKModal, _ ciderPlayback: CiderPlayback) -> SettingsPane = { mkModal, ciderPlayback in
        let paneView = Settings.Pane(
            identifier: .developer,
            title: "Developer",
            toolbarIcon: NSImage(systemSymbol: .wrenchAndScrewdriverFill, accessibilityDescription: "Developer Preferences")
        ) {
            DeveloperPreferencesPane()
                .environmentObject(mkModal)
                .environmentObject(ciderPlayback)
        }
        
        return Settings.PaneHostingController(pane: paneView)
    }
    
    static let AudioPreferencesViewController: (_ ciderPlayback: CiderPlayback) -> SettingsPane = { ciderPlayback in
        let paneView = Settings.Pane(
            identifier: .audio,
            title: "Audio",
            toolbarIcon: NSImage(systemSymbol: .waveform, accessibilityDescription: "Audio Preferences")
        ) {
            AudioPreferencesPane()
                .environmentObject(ciderPlayback)
        }
        
        return Settings.PaneHostingController(pane: paneView)
    }
    
}