summaryrefslogtreecommitdiffstats
path: root/QuickActions
diff options
context:
space:
mode:
authorCameron Katri <me@cameronkatri.com>2021-12-24 14:15:12 -0500
committerCameron Katri <me@cameronkatri.com>2021-12-24 14:15:12 -0500
commit6c781fd0b08f0fe3ccd2d3e0d79c9739c2f288c8 (patch)
tree3aa5c2f7845496a15ba9d0e936485b4c1c22c787 /QuickActions
parenta2e2d87eb7352a9aaecea33da6aa27e55af4e38d (diff)
downloadtweaks-6c781fd0b08f0fe3ccd2d3e0d79c9739c2f288c8.tar.gz
tweaks-6c781fd0b08f0fe3ccd2d3e0d79c9739c2f288c8.tar.zst
tweaks-6c781fd0b08f0fe3ccd2d3e0d79c9739c2f288c8.zip
Set image on expanding things
Diffstat (limited to 'QuickActions')
-rw-r--r--QuickActions/Tweak.x13
1 files changed, 11 insertions, 2 deletions
diff --git a/QuickActions/Tweak.x b/QuickActions/Tweak.x
index d5c21f5..f5f4e39 100644
--- a/QuickActions/Tweak.x
+++ b/QuickActions/Tweak.x
@@ -56,7 +56,6 @@ void openApplication(NSString *bundleID)
NSArray *leftButtons = (NSArray*)[defaults objectForKey:@"leftButtons"];
NSArray *rightButtons = (NSArray*)[defaults objectForKey:@"rightButtons"];
-
self.leftButtons = [[NSMutableArray alloc] init];
self.rightButtons = [[NSMutableArray alloc] init];
@@ -162,7 +161,17 @@ void openApplication(NSString *bundleID)
self.cameraButton.frame = CGRectMake(bounds.size.width - insets.left - buttonWidth,
bounds.size.height - buttonHeight - insets.bottom,
buttonWidth, buttonHeight);
-
+ }
+
+ UIImageSymbolConfiguration *imageConfig = [UIImageSymbolConfiguration configurationWithTextStyle:UIFontTextStyleTitle1];
+ UIImage *image = [UIImage systemImageNamed:@"ellipsis" withConfiguration:imageConfig];
+ if ([self.leftButtons count] > 1) {
+ [self.flashlightButton setImage:image];
+ ((UIImageView*)[self.flashlightButton valueForKey:@"_contentView"]).contentMode = UIViewContentModeScaleAspectFit;
+ }
+ if ([self.rightButtons count] > 1) {
+ [self.cameraButton setImage:image];
+ ((UIImageView*)[self.cameraButton valueForKey:@"_contentView"]).contentMode = UIViewContentModeScaleAspectFit;
}
for (CSQuickActionsButton *button in [self leftButtons]) {