Skip to content

GlazeWM is a tiling window manager for macOS and Windows inspired by i3wm.

feat(bar): stretch workspace buttons to height of bar

Lars Bergerec4df9d44973
diff --git a/LarsWM.Bar/MainWindow.xaml b/LarsWM.Bar/MainWindow.xaml
index 4c832b21..a07d5c6b 100644
--- a/LarsWM.Bar/MainWindow.xaml
+++ b/LarsWM.Bar/MainWindow.xaml
@@ -10,8 +10,6 @@
ResizeMode="NoResize"
Background="#101010"
Title="LarsWMBar"
- Height="auto"
- Width="1200"
ShowInTaskbar="False"
Topmost="True">
<Grid>
@@ -22,7 +20,7 @@
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="10" />
- <RowDefinition Height="auto" />
+ <RowDefinition Height="*" />
<RowDefinition Height="10" />
</Grid.RowDefinitions>
@@ -49,9 +47,8 @@
Foreground="White"
BorderBrush="Transparent"
BorderThickness="0"
- Width="35"
- Height="35"
- HorizontalAlignment="Left" />
+ MinWidth="{Binding ActualHeight, RelativeSource={RelativeSource Self}}"
+ MinHeight="{Binding ActualWidth, RelativeSource={RelativeSource Self}}" />
<DataTemplate.Triggers>
<DataTrigger