Explorar o código

build improvements

milan jurkulák %!s(int64=2) %!d(string=hai) anos
pai
achega
2e46b77d29

+ 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
     },