소스 검색

build improvements

milan jurkulák 2 년 전
부모
커밋
2e46b77d29
2개의 변경된 파일과 9개의 추가작업 그리고 4개의 파일을 삭제
  1. 8 3
      src/main/kotlin/eu/mjdev/desktop/Main.kt
  2. 1 1
      src/main/kotlin/eu/mjdev/desktop/components/desktoppanel/DesktopPanel.kt

+ 8 - 3
src/main/kotlin/eu/mjdev/desktop/Main.kt

@@ -31,9 +31,14 @@ fun main() = application(
 
     }
 
-    val handleControlCenterFocus: (Boolean) -> Unit = {
-        if (!controlCenterState.isWindowFocus) {
-            controlCenterState.hide()
+    val handleControlCenterFocus: (Boolean) -> Unit = { focus ->
+        if (focus) {
+//            menuState.hide()
+//            panelState.hide()
+        } else {
+            if (!controlCenterState.isWindowFocus) {
+                controlCenterState.hide()
+            }
         }
     }
 

+ 1 - 1
src/main/kotlin/eu/mjdev/desktop/components/desktoppanel/DesktopPanel.kt

@@ -58,7 +58,7 @@ fun DesktopPanel(
     onTooltip: (item: Any?) -> Unit = { item -> tooltipData.value = item },
     panelHeight: (visible: Boolean) -> Dp = { visible ->
         if (visible)
-            iconSize.height + iconOuterPadding.height + tooltipHeight + panelContentPadding.height + 10.dp
+            iconSize.height + iconOuterPadding.height + tooltipHeight + panelContentPadding.height + 6.dp
         else
             dividerWidth
     },