Skip to content

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

fix(bar): correct alignment styling issues

Lars Berger08f52290c031
diff --git a/GlazeWM.Bar/Components/ClockComponent.xaml b/GlazeWM.Bar/Components/ClockComponent.xaml
index 474ac713..6cf802cb 100644
--- a/GlazeWM.Bar/Components/ClockComponent.xaml
+++ b/GlazeWM.Bar/Components/ClockComponent.xaml
@@ -9,5 +9,6 @@
<TextBlock
Name="StatusBarLabel"
Foreground="#FFE0E0E0"
+ VerticalAlignment="Center"
Text="{Binding FormattedTime}" />
</UserControl>
diff --git a/GlazeWM.Bar/MainWindow.xaml b/GlazeWM.Bar/MainWindow.xaml
index 7b8796ec..fc54328e 100644
--- a/GlazeWM.Bar/MainWindow.xaml
+++ b/GlazeWM.Bar/MainWindow.xaml
@@ -34,10 +34,7 @@
ItemsSource="{Binding ComponentsLeft}">
<ItemsControl.ItemsPanel>
<ItemsPanelTemplate>
- <UniformGrid
- Rows="1"
- HorizontalAlignment="Left"
- IsItemsHost="True" />
+ <StackPanel Orientation="Horizontal" />
</ItemsPanelTemplate>
</ItemsControl.ItemsPanel>
@@ -53,10 +50,7 @@
ItemsSource="{Binding ComponentsCenter}">
<ItemsControl.ItemsPanel>
<ItemsPanelTemplate>
- <UniformGrid
- Rows="1"
- HorizontalAlignment="Left"
- IsItemsHost="True" />
+ <StackPanel Orientation="Horizontal" />
</ItemsPanelTemplate>
</ItemsControl.ItemsPanel>
@@ -73,10 +67,7 @@
ItemsSource="{Binding ComponentsRight}">
<ItemsControl.ItemsPanel>
<ItemsPanelTemplate>
- <UniformGrid
- Rows="1"
- HorizontalAlignment="Left"
- IsItemsHost="True" />
+ <StackPanel Orientation="Horizontal" />
</ItemsPanelTemplate>
</ItemsControl.ItemsPanel>