iOS: add USB icon to toolbar

This commit is contained in:
osy
2021-03-11 12:41:51 -08:00
parent bd9e620c4a
commit a0278cdf01
8 changed files with 47 additions and 1 deletions
@@ -0,0 +1,26 @@
{
"images" : [
{
"filename" : "[email protected]",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "[email protected]",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "[email protected]",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
},
"properties" : {
"template-rendering-intent" : "template"
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 494 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 621 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 774 B

+14 -1
View File
@@ -21,6 +21,7 @@
<outlet property="restartButton" destination="xt5-Fw-Nb9" id="1o8-4n-lvl"/>
<outlet property="resumeBigButton" destination="q8Q-UP-yRo" id="XJg-Mq-IBz"/>
<outlet property="toolbarAccessoryView" destination="FjS-ZA-duw" id="D8Q-Zf-eVY"/>
<outlet property="usbButton" destination="lhn-j4-i51" id="Mdz-XK-Ikr"/>
<outlet property="zoomButton" destination="aZW-jv-ozW" id="q9y-bK-xbD"/>
<outletCollection property="customKeyModifierButtons" destination="jxu-AQ-u8c" id="4En-WD-DQc"/>
<outletCollection property="customKeyModifierButtons" destination="bCv-uH-SSy" id="iDi-by-YwA"/>
@@ -125,6 +126,18 @@
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" pointerInteraction="YES" translatesAutoresizingMaskIntoConstraints="NO" id="pvl-sJ-gEX">
<rect key="frame" x="76" y="0.0" width="30" height="30"/>
<accessibility key="accessibilityConfiguration" label="Settings"/>
<constraints>
<constraint firstAttribute="height" constant="30" id="a3z-pY-gWm"/>
<constraint firstAttribute="width" constant="30" id="pWn-tf-bcE"/>
</constraints>
<state key="normal" image="Toolbar USB"/>
<connections>
<action selector="usbPressed:" destination="-1" eventType="touchUpInside" id="ibi-6S-HUk"/>
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" pointerInteraction="YES" translatesAutoresizingMaskIntoConstraints="NO" id="pvl-sJ-gEX">
<rect key="frame" x="114" y="0.0" width="30" height="30"/>
<accessibility key="accessibilityConfiguration" label="Settings"/>
<constraints>
<constraint firstAttribute="height" constant="30" id="Sb4-jZ-q30"/>
<constraint firstAttribute="width" constant="30" id="d0B-1d-7nz"/>
@@ -907,6 +920,6 @@
<image name="Toolbar Pause" width="30" height="30"/>
<image name="Toolbar Power" width="30" height="30"/>
<image name="Toolbar Restart" width="30" height="30"/>
<image name="Toolbar Settings" width="30" height="30"/>
<image name="Toolbar USB" width="30" height="30"/>
</resources>
</document>
@@ -36,6 +36,7 @@ NS_ASSUME_NONNULL_BEGIN
@property (weak, nonatomic) IBOutlet UIButton *zoomButton;
@property (weak, nonatomic) IBOutlet UIButton *keyboardButton;
@property (weak, nonatomic) IBOutlet UIButton *drivesButton;
@property (weak, nonatomic) IBOutlet UIButton *usbButton;
@property (weak, nonatomic) IBOutlet UIVisualEffectView *placeholderView;
@property (weak, nonatomic) IBOutlet UIActivityIndicatorView *placeholderIndicator;
@property (weak, nonatomic) IBOutlet UIButton *resumeBigButton;
@@ -59,6 +60,7 @@ NS_ASSUME_NONNULL_BEGIN
- (IBAction)showKeyboardButton:(UIButton *)sender;
- (IBAction)hideToolbarButton:(UIButton *)sender;
- (IBAction)drivesPressed:(UIButton *)sender;
- (IBAction)usbPressed:(UIButton *)sender;
@end
@@ -326,6 +326,9 @@
self.keyboardVisible = !self.keyboardVisible;
}
- (IBAction)usbPressed:(UIButton *)sender {
}
- (IBAction)drivesPressed:(UIButton *)sender {
self.removableDrivesViewController.modalPresentationStyle = UIModalPresentationPageSheet;
self.removableDrivesViewController.vm = self.vm;
+2
View File
@@ -85,6 +85,8 @@ Apple does not permit any apps that have interpreted or generated code therefore
UTM is distributed under the permissive Apache 2.0 license. However, it uses several (L)GPL components. Most are dynamically linked but the gstreamer plugins are statically linked and parts of the code are taken from qemu. Please be aware of this if you intend on redistributing this application.
Some icons made by [Freepik](https://www.freepik.com) from [www.flaticon.com](https://www.flaticon.com/).
[1]: https://github.com/utmapp/UTM/actions?query=event%3Arelease+workflow%3ABuild
[2]: https://dantheman827.github.io/ios-app-signer/
[3]: https://github.com/utmapp/UTM/releases