IFT-556 Edit the position of debug GotIt tooltips in onboarding lessons

Since the debug toolbar is showing on the left, edit the GotIt tooltips positions to not intersect with tool window stripes.

GitOrigin-RevId: a801c231e87728ae7bf16edfb8135660ef574266
This commit is contained in:
Konstantin Hudyakov
2024-02-23 14:55:03 +02:00
committed by intellij-monorepo-bot
parent 5f269284fd
commit 8d397b5b30
3 changed files with 11 additions and 9 deletions

View File

@@ -253,8 +253,8 @@ class PythonOnboardingTourLesson :
task {
rehighlightPreviousUi = true
gotItStep(Balloon.Position.above, width = 0,
PythonLessonsBundle.message("python.onboarding.balloon.about.debug.panel",
gotItStep(Balloon.Position.above, width = 0, cornerToPointerDistance = 140,
text = PythonLessonsBundle.message("python.onboarding.balloon.about.debug.panel",
strong(UIBundle.message("tool.window.name.debug")),
strong(LessonsBundle.message("debug.workflow.lesson.name"))))
restoreByUi(debuggerGotItTaskId)
@@ -264,7 +264,7 @@ class PythonOnboardingTourLesson :
task {
val position = if (UIExperiment.isNewDebuggerUIEnabled()) Balloon.Position.above else Balloon.Position.atRight
showBalloonOnHighlightingComponent(PythonLessonsBundle.message("python.onboarding.balloon.stop.debugging"),
position) { list -> list.maxByOrNull { it.locationOnScreen.y } }
position, cornerToPointerDistance = 35) { list -> list.maxByOrNull { it.locationOnScreen.y } }
text(PythonLessonsBundle.message("python.onboarding.stop.debugging",
icon(AllIcons.Actions.Suspend)))
restoreIfModified(sample)