iOS13 compatibility: audio menu section icon

This commit is contained in:
TrueZhuanjia committed 2025-07-21 00:41:59 +08:00
1 parent b118f80b52
commit 0728959ebe
3 files changed
+35 -1

No files matched your search

@@ -0,0 +1,21 @@
{
"images" : [
{
"filename" : "speaker.wave.2.svg",
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--Generator: Apple Native CoreSVG 341-->
<!DOCTYPE svg
PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 26.8179 19.7012">
<g>
<rect height="19.7012" opacity="0" width="26.8179" x="0" y="0"/>
<path d="M22.3921 17.9395C23.0259 18.3154 23.7993 18.1597 24.2129 17.5312C25.6523 15.4043 26.4741 12.6812 26.4741 9.84521C26.4741 7.00928 25.6577 4.27539 24.2129 2.15381C23.7993 1.53076 23.0259 1.375 22.3921 1.75098C21.6938 2.15918 21.6079 3.00781 22.0859 3.77051C23.1816 5.4624 23.8101 7.61084 23.8101 9.84521C23.8101 12.0796 23.1709 14.2119 22.0859 15.9146C21.6133 16.6772 21.6938 17.5312 22.3921 17.9395Z" fill="white" fill-opacity="0.85"/>
<path d="M17.5581 14.9478C18.1597 15.3237 18.9224 15.1841 19.3198 14.6201C20.2544 13.3472 20.8022 11.6392 20.8022 9.84521C20.8022 8.05127 20.2544 6.34863 19.3198 5.05957C18.9224 4.50635 18.1597 4.35596 17.5581 4.74268C16.8867 5.16162 16.7417 5.96191 17.2896 6.84814C17.832 7.66455 18.1328 8.7334 18.1328 9.84521C18.1328 10.957 17.8213 12.0151 17.2896 12.8423C16.7471 13.7285 16.8867 14.5234 17.5581 14.9478Z" fill="white" fill-opacity="0.85"/>
<path d="M2.7124 14.7759L5.70947 14.7759C5.7793 14.7759 5.84375 14.792 5.9082 14.8564L10.4038 18.874C11.0376 19.438 11.5264 19.7012 12.1763 19.7012C13.1323 19.7012 13.8682 18.9814 13.8682 18.02L13.8682 1.72949C13.8682 0.768066 13.1323 0.0107422 12.1655 0.0107422C11.5371 0.0107422 11.0752 0.273926 10.4038 0.875488L5.9082 4.86621C5.83838 4.92529 5.7793 4.94678 5.70947 4.94678L2.7124 4.94678C0.93457 4.94678 0 5.92432 0 7.78809L0 11.9453C0 13.8037 0.939941 14.7759 2.7124 14.7759ZM3.07764 12.3105C2.79834 12.3105 2.64795 12.1548 2.64795 11.8755L2.64795 7.85254C2.64795 7.57324 2.79834 7.41748 3.07764 7.41748L6.30029 7.41748C6.61182 7.41748 6.84277 7.34766 7.08984 7.12207L10.9033 3.63623C10.9463 3.58789 11 3.56641 11.0698 3.56641C11.1504 3.56641 11.2202 3.62549 11.2202 3.72754L11.2202 15.9844C11.2202 16.0864 11.1504 16.1616 11.0698 16.1616C11.0107 16.1616 10.9517 16.1294 10.9033 16.0811L7.08984 12.606C6.84277 12.3804 6.61182 12.3105 6.30029 12.3105Z" fill="white" fill-opacity="0.85"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.2 KiB

@@ -576,7 +576,7 @@ BOOL isCustomResolution(CGSize res) {
audioSection.delegate = self;
audioSection.sectionTitle = [LocalizationHelper localizedStringForKey:@"Audio"];
if (@available(iOS 13.0, *)) {
[audioSection setSectionWithIcon:[UIImage systemImageNamed:@"speaker.wave.2"] andSize:23];
[audioSection setSectionWithIcon:[UIImage imageNamed:@"speaker.wave.2"] andSize:20];
}
[self addSetting:self.audioOnPcStack ofId:@"audioOnPcStack" withInfoTag:NO withDynamicLabel:NO to:audioSection];