[IFT] Make highlights in Java onboarding less aggressive

IJ-CR-26952

GitOrigin-RevId: 97924d50e7281b61af5729eb87ac7eeeb50cf232
This commit is contained in:
Konstantin Hudyakov
2022-07-08 10:48:35 +03:00
committed by intellij-monorepo-bot
parent 05cb9ee2d8
commit 0e59510a2d
3 changed files with 26 additions and 15 deletions

View File

@@ -41,7 +41,7 @@ internal class JavaLangSupport : JavaBasedLangSupport() {
task {
if (isSdkConfigured(project)) return@task
triggerAndFullHighlight { usePulsation = true }.component { ui: HyperlinkLabel ->
triggerAndBorderHighlight().component { ui: HyperlinkLabel ->
ui.text == setupSdkText
}
}

View File

@@ -325,7 +325,7 @@ class JavaOnboardingTourLesson : KLesson("java.onboarding", JavaLessonsBundle.me
text(JavaLessonsBundle.message("java.onboarding.toggle.breakpoint.2"))
}
highlightButtonById("Debug")
highlightButtonById("Debug", highlightInside = false, usePulsation = false)
actionTask("Debug") {
showBalloonOnHighlightingComponent(JavaLessonsBundle.message("java.onboarding.balloon.start.debugging"))
@@ -336,7 +336,7 @@ class JavaOnboardingTourLesson : KLesson("java.onboarding", JavaLessonsBundle.me
JavaLessonsBundle.message("java.onboarding.start.debugging", icon(AllIcons.Actions.StartDebugger))
}
highlightDebugActionsToolbar(usePulsation = false)
highlightDebugActionsToolbar(highlightInside = false, usePulsation = false)
task {
rehighlightPreviousUi = true
@@ -348,7 +348,7 @@ class JavaOnboardingTourLesson : KLesson("java.onboarding", JavaLessonsBundle.me
restoreIfModified(sample)
}
highlightButtonById("Stop")
highlightButtonById("Stop", highlightInside = false, usePulsation = false)
task {
showBalloonOnHighlightingComponent(JavaLessonsBundle.message("java.onboarding.balloon.stop.debugging"),
Balloon.Position.atRight) { list -> list.maxByOrNull { it.locationOnScreen.y } }
@@ -385,7 +385,7 @@ class JavaOnboardingTourLesson : KLesson("java.onboarding", JavaLessonsBundle.me
}
private fun LessonContext.runTasks() {
highlightRunToolbar(usePulsation = false)
highlightRunToolbar(highlightInside = false, usePulsation = false)
task {
triggerUI {
@@ -418,7 +418,7 @@ class JavaOnboardingTourLesson : KLesson("java.onboarding", JavaLessonsBundle.me
private fun LessonContext.openLearnToolwindow() {
task {
triggerAndFullHighlight { usePulsation = true }.component { stripe: StripeButton ->
triggerAndBorderHighlight().component { stripe: StripeButton ->
stripe.windowInfo.id == "Learn"
}
}
@@ -471,7 +471,7 @@ class JavaOnboardingTourLesson : KLesson("java.onboarding", JavaLessonsBundle.me
}
task {
triggerAndFullHighlight { usePulsation = true }.component { stripe: StripeButton ->
triggerAndBorderHighlight().component { stripe: StripeButton ->
stripe.windowInfo.id == "Project"
}
}