diff --git a/Limelight/Localization/Localizable.xcstrings b/Limelight/Localization/Localizable.xcstrings index d3c6850e..b9cdf0f9 100644 --- a/Limelight/Localization/Localizable.xcstrings +++ b/Limelight/Localization/Localizable.xcstrings @@ -565,6 +565,29 @@ } } }, + "Audio" : { + "extractionState" : "manual", + "localizations" : { + "zh-Hans" : { + "stringUnit" : { + "state" : "translated", + "value" : "音频" + } + }, + "zh-Hant" : { + "stringUnit" : { + "state" : "translated", + "value" : "音频" + } + }, + "zh-HK" : { + "stringUnit" : { + "state" : "translated", + "value" : "音频" + } + } + } + }, "Back" : { "extractionState" : "manual", "localizations" : { diff --git a/Limelight/MenuSectionView.m b/Limelight/MenuSectionView.m index 6f3b0ce7..c5ceb039 100644 --- a/Limelight/MenuSectionView.m +++ b/Limelight/MenuSectionView.m @@ -49,7 +49,7 @@ _sectionTitle = @"Section"; _expanded = YES; _backgroundColor = [UIColor clearColor]; - _rootStackViewSpacing = [self isIPhone] ? 10 : 16; + _rootStackViewSpacing = [self isIPhone] ? 10 : 18; _subStackViews = [NSMutableArray array]; _headerViewHeight = 37; _headerViewVerticalSpacing = 25; diff --git a/Limelight/ViewControllers/SettingsViewController.m b/Limelight/ViewControllers/SettingsViewController.m index ec97a6db..b9e0abcc 100644 --- a/Limelight/ViewControllers/SettingsViewController.m +++ b/Limelight/ViewControllers/SettingsViewController.m @@ -527,10 +527,6 @@ BOOL isCustomResolution(CGSize res) { [touchControlSection setExpanded:YES]; - - - - MenuSectionView *gesturesSection = [[MenuSectionView alloc] init]; gesturesSection.delegate = self; gesturesSection.sectionTitle = [LocalizationHelper localizedStringForKey:@"Gestures"]; @@ -559,6 +555,19 @@ BOOL isCustomResolution(CGSize res) { [peripheralSection setExpanded:YES]; + + MenuSectionView *audioSection = [[MenuSectionView alloc] init]; + audioSection.delegate = self; + audioSection.sectionTitle = [LocalizationHelper localizedStringForKey:@"Audio"]; + if (@available(iOS 13.0, *)) { + [audioSection setSectionWithIcon:[UIImage systemImageNamed:@"speaker.wave.2"] andSize:23]; + } + + [self addSetting:self.audioOnPcStack ofId:@"audioOnPcStack" withInfoTag:NO withDynamicLabel:NO to:audioSection]; + [audioSection addToParentStack:_parentStack]; + [audioSection setExpanded:YES]; + + MenuSectionView *otherSection = [[MenuSectionView alloc] init]; otherSection.delegate = self; otherSection.sectionTitle = [LocalizationHelper localizedStringForKey:@"Others"]; @@ -568,7 +577,6 @@ BOOL isCustomResolution(CGSize res) { [self addSetting:self.statsOverlayStack ofId:@"statsOverlayStack" withInfoTag:NO withDynamicLabel:NO to:otherSection]; [self addSetting:self.unlockDisplayOrientationStack ofId:@"unlockDisplayOrientationStack" withInfoTag:YES withDynamicLabel:NO to:otherSection]; [self addSetting:self.optimizeGamesStack ofId:@"optimizeGamesStack" withInfoTag:YES withDynamicLabel:NO to:otherSection]; - [self addSetting:self.audioOnPcStack ofId:@"audioOnPcStack" withInfoTag:NO withDynamicLabel:NO to:otherSection]; [self addSetting:self.multiControllerStack ofId:@"multiControllerStack" withInfoTag:YES withDynamicLabel:NO to:otherSection]; [self addSetting:self.softKeyboardToolbarStack ofId:@"softKeyboardToolbarStack" withInfoTag:YES withDynamicLabel:NO to:otherSection]; [otherSection addToParentStack:_parentStack];