Просмотр исходного кода

Fix window decorations being too wide (#309)

Daniel Zauner 1 год назад
Родитель
Сommit
a81212bbf1
1 измененных файлов с 3 добавлено и 2 удалено
  1. 3 2
      src/Ryujinx/Assets/Styles/Styles.xaml

+ 3 - 2
src/Ryujinx/Assets/Styles/Styles.xaml

@@ -1,7 +1,8 @@
 <Styles
 <Styles
     xmlns="https://github.com/avaloniaui"
     xmlns="https://github.com/avaloniaui"
     xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
     xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
-    xmlns:ui="clr-namespace:FluentAvalonia.UI.Controls;assembly=FluentAvalonia">
+    xmlns:ui="clr-namespace:FluentAvalonia.UI.Controls;assembly=FluentAvalonia"
+    xmlns:windowing="clr-namespace:FluentAvalonia.UI.Windowing;assembly=FluentAvalonia">
     <Design.PreviewWith>
     <Design.PreviewWith>
         <Border Height="2000"
         <Border Height="2000"
                 Padding="20">
                 Padding="20">
@@ -231,7 +232,7 @@
         <Setter Property="BorderBrush"
         <Setter Property="BorderBrush"
                 Value="{DynamicResource HighlightBrush}" />
                 Value="{DynamicResource HighlightBrush}" />
     </Style>
     </Style>
-    <Style Selector="Button">
+    <Style Selector="Button:not(windowing|MinMaxCloseControl Button)">
         <Setter Property="MinWidth"
         <Setter Property="MinWidth"
                 Value="80" />
                 Value="80" />
     </Style>
     </Style>