refactor Cancel button in osc layout tool to Exit button

This commit is contained in:
True Zhuanjia
2024-07-25 21:57:31 +08:00
parent 46e3f85903
commit ea9e335a36
5 changed files with 44 additions and 14 deletions
+3 -3
View File
@@ -798,9 +798,9 @@ ICAgICAgICAgICAgICA
</constraints>
<items>
<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>
<action selector="cancelTapped:" destination="Atv-Nj-0qv" id="pwG-sO-9he"/>
<action selector="exitTapped:" destination="Atv-Nj-0qv" id="pwG-sO-9he"/>
</connections>
</barButtonItem>
<rightBarButtonItems>
@@ -852,7 +852,7 @@ ICAgICAgICAgICAgICA
<color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</systemColor>
<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 name="viewFlipsideBackgroundColor">
<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>
<items>
<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>
<action selector="cancelTapped:" destination="0K8-kQ-xlN" id="Sam-Ct-kqC"/>
<action selector="exitTapped:" destination="0K8-kQ-xlN" id="Sam-Ct-kqC"/>
</connections>
</barButtonItem>
<rightBarButtonItems>
@@ -151,7 +151,7 @@ const double NAV_BAR_HEIGHT = 50;
}
- (IBAction) cancelTapped:(id)sender {
- (IBAction) exitTapped:(id)sender {
[self dismissViewControllerAnimated:YES completion:nil];
}
+8 -8
View File
@@ -326,31 +326,31 @@
}
},
"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",
"localizations" : {
"en" : {
"stringUnit" : {
"state" : "new",
"value" : "Cancel"
"value" : "Exit"
}
},
"zh-Hans" : {
"stringUnit" : {
"state" : "translated",
"value" : "取消"
"state" : "needs_review",
"value" : "退出"
}
},
"zh-Hant" : {
"stringUnit" : {
"state" : "translated",
"value" : "取消"
"state" : "needs_review",
"value" : "退出"
}
},
"zh-HK" : {
"stringUnit" : {
"state" : "translated",
"value" : "取消"
"state" : "needs_review",
"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]" : {
"comment" : "Class = \"UISegmentedControl\"; dLF-qJ-2nY.segmentTitles[0] = \"30 FPS\"; ObjectID = \"dLF-qJ-2nY\";",
"extractionState" : "extracted_with_value",