浏览代码

Fixed window not being draggable on linux

Krzysztof Krysiński 4 月之前
父节点
当前提交
75e779e4c7
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      src/PixiEditor/Views/Main/MainTitleBar.axaml

+ 4 - 1
src/PixiEditor/Views/Main/MainTitleBar.axaml

@@ -20,8 +20,11 @@
         <menu:MenuBarViewModel />
     </Design.DataContext>
     <Panel>
-        <Panel Background="{DynamicResource ThemeBackgroundBrush1}" IsHitTestVisible="False"/>
+        <Panel Background="{DynamicResource ThemeBackgroundBrush1}" IsHitTestVisible="False" />
         <DockPanel>
+            <DockPanel.Background>
+                <OnPlatform Default="{x:Null}" Linux="Transparent"/>
+            </DockPanel.Background>
             <dialogs:DialogTitleBar
                 DockPanel.Dock="Right">
                 <dialogs:DialogTitleBar.AdditionalElement>