Skip to content

Commit

Permalink
Fix MacOS gap
Browse files Browse the repository at this point in the history
  • Loading branch information
sotasan committed Jun 25, 2022
1 parent 3e68a40 commit 8bec475
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ plugins {
}

group = "dev.shota"
version = "0.6.3"
version = "0.6.4"

repositories {
mavenCentral()
Expand Down
2 changes: 1 addition & 1 deletion src/main/kotlin/dev/shota/decompiler/window/Window.kt
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ object Window : JFrame() {
iconImage = icon
jMenuBar = MenuBar()

if (SystemInfo.isMacFullWindowContentSupported) {
if (SystemInfo.isMacOS && SystemInfo.isMacFullWindowContentSupported) {
getRootPane().putClientProperty("apple.awt.fullWindowContent", true)
getRootPane().putClientProperty("apple.awt.transparentTitleBar", true)
getRootPane().putClientProperty("apple.awt.windowTitleVisible", false)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ object Container : TabPane() {
init {
minWidth = 300.0
tabClosingPolicy = TabClosingPolicy.ALL_TABS
tabDragPolicy = if (SystemInfo.isMacFullWindowContentSupported) TabDragPolicy.FIXED else TabDragPolicy.REORDER
tabDragPolicy = if (SystemInfo.isMacOS && SystemInfo.isMacFullWindowContentSupported) TabDragPolicy.FIXED else TabDragPolicy.REORDER
}

fun open(entry: Entry) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ object Sidebar : BorderPane() {
init {
minWidth = 100.0

if (SystemInfo.isMacFullWindowContentSupported) {
if (SystemInfo.isMacOS && SystemInfo.isMacFullWindowContentSupported) {
val space = Pane()
space.prefHeight = 25.0
top = space
Expand Down

0 comments on commit 8bec475

Please sign in to comment.