refactor Cancel button in osc layout tool to Exit button

This commit is contained in:
True Zhuanjia committed 2024-07-25 21:57:31 +08:00
1 parent 46e3f85903
commit ea9e335a36
5 files changed
+44 -14

No files matched your search

+3 -3
View File
@@ -798,9 +798,9 @@ ICAgICAgICAgICAgICA
</constraints> </constraints>
<items> <items>
<navigationItem title="OSC Layout Profiles" id="Q2V-XF-4jq"> <navigationItem title="OSC Layout Profiles" id="Q2V-XF-4jq">
<barButtonItem key="leftBarButtonItem" title="Cancel" width="90" style="plain" id="Bhn-IO-Wlt" userLabel="Delete"> <barButtonItem key="leftBarButtonItem" title="Exit" width="90" style="plain" id="Bhn-IO-Wlt" userLabel="Delete">
<connections> <connections>
<action selector="cancelTapped:" destination="Atv-Nj-0qv" id="pwG-sO-9he"/> <action selector="exitTapped:" destination="Atv-Nj-0qv" id="pwG-sO-9he"/>
</connections> </connections>
</barButtonItem> </barButtonItem>
<rightBarButtonItems> <rightBarButtonItems>
@@ -852,7 +852,7 @@ ICAgICAgICAgICAgICA
<color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/> <color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</systemColor> </systemColor>
<systemColor name="tintColor"> <systemColor name="tintColor">
<color red="0.0" green="0.47843137254901963" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> <color red="0.0" green="0.47843137250000001" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</systemColor> </systemColor>
<systemColor name="viewFlipsideBackgroundColor"> <systemColor name="viewFlipsideBackgroundColor">
<color red="0.12156862745098039" green="0.12941176470588237" blue="0.14117647058823529" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> <color red="0.12156862745098039" green="0.12941176470588237" blue="0.14117647058823529" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
+2 -2
View File
@@ -796,9 +796,9 @@ ICAgICAgICAgICAgIA
</constraints> </constraints>
<items> <items>
<navigationItem title="OSC Layout Profiles" id="5pN-Sn-SCN"> <navigationItem title="OSC Layout Profiles" id="5pN-Sn-SCN">
<barButtonItem key="leftBarButtonItem" systemItem="cancel" id="D9X-7p-9oc"> <barButtonItem key="leftBarButtonItem" title="Exit" id="D9X-7p-9oc">
<connections> <connections>
<action selector="cancelTapped:" destination="0K8-kQ-xlN" id="Sam-Ct-kqC"/> <action selector="exitTapped:" destination="0K8-kQ-xlN" id="Sam-Ct-kqC"/>
</connections> </connections>
</barButtonItem> </barButtonItem>
<rightBarButtonItems> <rightBarButtonItems>
@@ -151,7 +151,7 @@ const double NAV_BAR_HEIGHT = 50;
} }
- (IBAction) cancelTapped:(id)sender { - (IBAction) exitTapped:(id)sender {
[self dismissViewControllerAnimated:YES completion:nil]; [self dismissViewControllerAnimated:YES completion:nil];
} }
+8 -8
View File
@@ -326,31 +326,31 @@
} }
}, },
"Bhn-IO-Wlt.title" : { "Bhn-IO-Wlt.title" : {
"comment" : "Class = \"UIBarButtonItem\"; title = \"Cancel\"; ObjectID = \"Bhn-IO-Wlt\";", "comment" : "Class = \"UIBarButtonItem\"; title = \"Exit\"; ObjectID = \"Bhn-IO-Wlt\";",
"extractionState" : "extracted_with_value", "extractionState" : "extracted_with_value",
"localizations" : { "localizations" : {
"en" : { "en" : {
"stringUnit" : { "stringUnit" : {
"state" : "new", "state" : "new",
"value" : "Cancel" "value" : "Exit"
} }
}, },
"zh-Hans" : { "zh-Hans" : {
"stringUnit" : { "stringUnit" : {
"state" : "translated", "state" : "needs_review",
"value" : "取消" "value" : "退出"
} }
}, },
"zh-Hant" : { "zh-Hant" : {
"stringUnit" : { "stringUnit" : {
"state" : "translated", "state" : "needs_review",
"value" : "取消" "value" : "退出"
} }
}, },
"zh-HK" : { "zh-HK" : {
"stringUnit" : { "stringUnit" : {
"state" : "translated", "state" : "needs_review",
"value" : "取消" "value" : "退出"
} }
} }
} }
+30
View File
@@ -799,6 +799,36 @@
} }
} }
}, },
"D9X-7p-9oc.title" : {
"comment" : "Class = \"UIBarButtonItem\"; title = \"Exit\"; ObjectID = \"D9X-7p-9oc\";",
"extractionState" : "extracted_with_value",
"localizations" : {
"en" : {
"stringUnit" : {
"state" : "new",
"value" : "Exit"
}
},
"zh-Hans" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "退出"
}
},
"zh-Hant" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "退出"
}
},
"zh-HK" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "退出"
}
}
}
},
"dLF-qJ-2nY.segmentTitles[0]" : { "dLF-qJ-2nY.segmentTitles[0]" : {
"comment" : "Class = \"UISegmentedControl\"; dLF-qJ-2nY.segmentTitles[0] = \"30 FPS\"; ObjectID = \"dLF-qJ-2nY\";", "comment" : "Class = \"UISegmentedControl\"; dLF-qJ-2nY.segmentTitles[0] = \"30 FPS\"; ObjectID = \"dLF-qJ-2nY\";",
"extractionState" : "extracted_with_value", "extractionState" : "extracted_with_value",