Skip to content

Commit

Permalink
Fix newly-deprecated function use
Browse files Browse the repository at this point in the history
  • Loading branch information
RedNesto committed Oct 27, 2024
1 parent 175f97e commit 365b52d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ fuel = "2.3.1"
licenser = "0.6.1"
changelog = "2.2.0"
intellij-plugin = "2.1.0"
intellij-ide = "243.16718.32-EAP-SNAPSHOT"
intellij-ide = "243.21155.17-EAP-SNAPSHOT"
idea-ext = "1.1.8"
psiPlugin = "243.7768"

Expand Down
13 changes: 9 additions & 4 deletions src/main/kotlin/MinecraftConfigurable.kt
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,17 @@ import com.intellij.openapi.options.Configurable
import com.intellij.openapi.project.ProjectManager
import com.intellij.openapi.ui.DialogPanel
import com.intellij.ui.EnumComboBoxModel
import com.intellij.ui.components.Label
import com.intellij.ui.dsl.builder.AlignX
import com.intellij.ui.dsl.builder.BottomGap
import com.intellij.ui.dsl.builder.MutableProperty
import com.intellij.ui.dsl.builder.bindItem
import com.intellij.ui.dsl.builder.bindSelected
import com.intellij.ui.dsl.builder.panel
import com.intellij.util.IconUtil
import java.awt.Font
import javax.swing.JComponent
import javax.swing.JLabel
import javax.swing.SwingConstants
import org.jetbrains.annotations.Nls

class MinecraftConfigurable : Configurable {
Expand All @@ -49,9 +51,12 @@ class MinecraftConfigurable : Configurable {

override fun createComponent(): JComponent = panel {
row(
Label(MCDevBundle("minecraft.settings.title"), bold = true).apply {
font = font.deriveFont(font.size * 1.5f)
icon = IconUtil.scale(PlatformAssets.MINECRAFT_ICON_2X, null, 1.5f)
JLabel(
MCDevBundle("minecraft.settings.title"),
IconUtil.scale(PlatformAssets.MINECRAFT_ICON_2X, null, 1.5f),
SwingConstants.LEADING
).apply {
font = font.deriveFont(Font.BOLD, font.size * 1.5f)
}
) {
button(MCDevBundle("minecraft.settings.change_update_channel")) {
Expand Down

0 comments on commit 365b52d

Please sign in to comment.