feat: improve support for color-slurp windows
This commit is contained in:
1 parent
7d823dd61d
commit
8605b23135
1 file changed
+7
-1
@@ -99,7 +99,8 @@ extension AXUIElement {
|
||||
sanGuoShaAirWD(runningApp) ||
|
||||
dvdFab(runningApp) ||
|
||||
drBetotte(runningApp) ||
|
||||
androidEmulator(runningApp, title)
|
||||
androidEmulator(runningApp, title) ||
|
||||
colorSlurp(runningApp)
|
||||
) &&
|
||||
mustHaveIfJetbrainApp(runningApp, title, subrole, size!) &&
|
||||
mustHaveIfSteam(runningApp, title, role)
|
||||
@@ -200,6 +201,11 @@ extension AXUIElement {
|
||||
return title != "" && Applications.isAndroidEmulator(runningApp)
|
||||
}
|
||||
|
||||
private static func colorSlurp(_ runningApp: NSRunningApplication) -> Bool {
|
||||
// ColorSlurp presents its dialog as a kAXSystemDialogSubrole, so we need a special check
|
||||
return runningApp.bundleIdentifier == "com.IdeaPunch.ColorSlurp"
|
||||
}
|
||||
|
||||
func position() throws -> CGPoint? {
|
||||
return try value(kAXPositionAttribute, CGPoint.zero, .cgPoint)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user