Skip to content

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

feat(bar): add padding to buttons in workspaces component

Lars Berger04a38ef796be
diff --git a/GlazeWM.Bar/Components/WorkspacesComponent.xaml b/GlazeWM.Bar/Components/WorkspacesComponent.xaml
index 595aac80..54a3c19f 100644
--- a/GlazeWM.Bar/Components/WorkspacesComponent.xaml
+++ b/GlazeWM.Bar/Components/WorkspacesComponent.xaml
@@ -19,7 +19,7 @@
<Button
x:Name="WorkspaceButton"
Content="{Binding DisplayName}"
- VerticalAlignment="Center"
+ Padding="8,0"
Command="{Binding DataContext.FocusWorkspaceCommand, ElementName=_workspacesComponent}"
CommandParameter="{Binding Name}"
Background="{Binding DataContext.DefaultWorkspaceBackground, ElementName=_workspacesComponent}"
@@ -29,8 +29,6 @@
FontWeight="{Binding DataContext.FontWeight, ElementName=_workspacesComponent}"
FontSize="{Binding DataContext.FontSize, ElementName=_workspacesComponent}"
BorderThickness="{Binding DataContext.DefaultWorkspaceBorderWidth, ElementName=_workspacesComponent}"
- MinWidth="{Binding ActualWidth, RelativeSource={RelativeSource Self}}"
- MinHeight="{Binding ActualHeight, RelativeSource={RelativeSource Self}}"
Cursor="Hand" />
<DataTemplate.Triggers>