Skip to content

Commit

Permalink
UI Improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
objective-see committed Jan 2, 2025
1 parent 21e3178 commit 1d5771b
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 3 deletions.
15 changes: 12 additions & 3 deletions LuLu/App/AppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,17 @@ -(void)applicationDidFinishLaunching:(NSNotification *)aNotification
//alloc window controller
welcomeWindowController = [[WelcomeWindowController alloc] initWithWindowNibName:@"Welcome"];

//set activation policy
[self setActivationPolicy];

//show window
[self.welcomeWindowController showWindow:self];

//set activation policy
[self setActivationPolicy];
//make front
[[NSRunningApplication currentApplication] activateWithOptions:(NSApplicationActivateAllWindows | NSApplicationActivateIgnoringOtherApps)];

//make window front
[self.startupWindowController.window makeKeyAndOrderFront:nil];

//install (self as) login item
if(YES != toggleLoginItem(NSBundle.mainBundle.bundleURL, ACTION_INSTALL_FLAG))
Expand Down Expand Up @@ -143,7 +149,10 @@ -(void)applicationDidFinishLaunching:(NSNotification *)aNotification

//make window front
[self.startupWindowController.window makeKeyAndOrderFront:nil];


//make it modal(ish)
[self.startupWindowController.window setLevel:NSPopUpMenuWindowLevel];

//show window
[self.startupWindowController showWindow:nil];
}
Expand Down
Binary file modified LuLu/App/Assets.xcassets/InstallApprove.imageset/approve.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions LuLu/App/StartupWindowController.m
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ -(void)awakeFromNib
[NSApp activateIgnoringOtherApps:YES];
}

//(re)make front
[[NSRunningApplication currentApplication] activateWithOptions:(NSApplicationActivateAllWindows | NSApplicationActivateIgnoringOtherApps)];

return;
}

Expand Down
3 changes: 3 additions & 0 deletions LuLu/App/UpdateWindowController.m
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ -(void)windowDidLoad
[NSApp activateIgnoringOtherApps:YES];
}

//(re)make front
[[NSRunningApplication currentApplication] activateWithOptions:(NSApplicationActivateAllWindows | NSApplicationActivateIgnoringOtherApps)];

return;
}

Expand Down
9 changes: 9 additions & 0 deletions LuLu/App/WelcomeWindowController.m
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ -(void)windowDidLoad {
[NSApp activateIgnoringOtherApps:YES];
}

//(re)make front
[[NSRunningApplication currentApplication] activateWithOptions:(NSApplicationActivateAllWindows | NSApplicationActivateIgnoringOtherApps)];

return;
}

Expand Down Expand Up @@ -233,6 +236,9 @@ -(IBAction)buttonHandler:(id)sender {
[NSApp activateIgnoringOtherApps:YES];
}

//(re)make front
[[NSRunningApplication currentApplication] activateWithOptions:(NSApplicationActivateAllWindows | NSApplicationActivateIgnoringOtherApps)];

});

//signal semaphore
Expand All @@ -250,7 +256,10 @@ -(IBAction)buttonHandler:(id)sender {

//show configure view
case SHOW_CONFIGURE:

//show
[self showView:self.configureView firstResponder:SHOW_SUPPORT];

break;

//show "support us" view
Expand Down
3 changes: 3 additions & 0 deletions LuLu/Shared/utilities.m
Original file line number Diff line number Diff line change
Expand Up @@ -1265,6 +1265,9 @@ NSModalResponse showAlert(NSAlertStyle style, NSString* messageText, NSString* i
[NSApp activateIgnoringOtherApps:YES];
}

//(re)make front
[[NSRunningApplication currentApplication] activateWithOptions:(NSApplicationActivateAllWindows | NSApplicationActivateIgnoringOtherApps)];

//make alert window front
[alert.window makeKeyAndOrderFront:nil];

Expand Down

0 comments on commit 1d5771b

Please sign in to comment.