Skip to content

Commit

Permalink
fix: Compilation issues after bumping min platform to 2024.2
Browse files Browse the repository at this point in the history
  • Loading branch information
bric3 committed Nov 11, 2024
1 parent be67c13 commit dfbd157
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class RectangleAction(private val rectangleWindowActionName: RectangleWindowActi
val angle = if(LastIdeFrameScreenOrientationDetection.isPortrait()) 90.0 else 0.0
e.presentation.icon = when (val icon = e.presentation.icon) {
is RotatedIcon -> icon.apply { degrees = angle }
else -> RotatedIcon(icon, angle)
else -> icon?.let { RotatedIcon(icon, angle) }
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

package io.github.bric3.rectangle.actions

import com.intellij.collaboration.ui.VerticalListPanel
import com.intellij.openapi.actionSystem.ActionUpdateThread.BGT
import com.intellij.openapi.actionSystem.AnActionEvent
import com.intellij.openapi.actionSystem.ex.ActionUtil
Expand All @@ -22,6 +21,8 @@ import com.intellij.openapi.wm.IdeFocusManager
import icons.RectangleActionsIcons
import io.github.bric3.rectangle.RectangleAppService
import io.github.bric3.rectangle.actions.RectangleActionUtil.patchActionText
import org.jdesktop.swingx.VerticalLayout
import javax.swing.JPanel

class ShowRectangleWindowActionsAction : DumbAwareAction() {
override fun getActionUpdateThread() = BGT
Expand Down Expand Up @@ -56,7 +57,7 @@ class ShowRectangleWindowActionsAction : DumbAwareAction() {
true
)

val content = VerticalListPanel(2).apply {
val content = JPanel(VerticalLayout(2)).apply {
add(halves)
add(corners)
}
Expand Down

0 comments on commit dfbd157

Please sign in to comment.