Skip to content

Commit e649ff4

Browse files
committed
fixed ui issues.
1 parent 7a3b5b0 commit e649ff4

2 files changed

Lines changed: 9 additions & 18 deletions

File tree

src/TidyWindow.App/ViewModels/MainViewModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public MainViewModel(NavigationService navigationService, ActivityLogService act
3131
new("Startup", "Control Run keys, startup folders, tasks, and services", "\uE7E7", typeof(StartupControllerPage)),
3232
new("Performance lab", "Lean 8-step stack: power, services, hardware, kernel, security, tracing, scheduler, auto-tune", "\uE945", typeof(PerformanceLabPage)),
3333
new("PathPilot", "Control runtime precedence and PATH backups", "\uE71B", typeof(PathPilotPage)),
34-
new("Registry optimizer", "Stage registry defaults safely", "\uE9C3", typeof(RegistryOptimizerPage)),
34+
new("Registry optimizer", "Stage registry defaults safely", "\uE9F5", typeof(RegistryOptimizerPage)),
3535
new("Maintenance", "Review installed packages, updates, and removals", "\uE90A", typeof(PackageMaintenancePage)),
3636
new("Deep scan", "Scan to surface files fast", "\uE721", typeof(DeepScanPage)),
3737
new("Cleanup", "Preview clutter before removing files", "\uE74D", typeof(CleanupPage)),

src/TidyWindow.App/Views/EssentialsPage.xaml

Lines changed: 8 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -217,8 +217,10 @@
217217
</Style>
218218

219219
<Style x:Key="EssentialsPivotToggleStyle" TargetType="ToggleButton">
220-
<Setter Property="Margin" Value="0,0,12,12"/>
220+
<Setter Property="Margin" Value="8,0,8,0"/>
221221
<Setter Property="Padding" Value="18,10"/>
222+
<Setter Property="HorizontalAlignment" Value="Stretch"/>
223+
<Setter Property="HorizontalContentAlignment" Value="Center"/>
222224
<Setter Property="Background" Value="#0F1A2F"/>
223225
<Setter Property="Foreground" Value="#E2E8F0"/>
224226
<Setter Property="BorderBrush" Value="#263654"/>
@@ -545,43 +547,32 @@
545547
FontSize="12"
546548
Foreground="#8CA0BF"
547549
Margin="0,0,0,10"/>
548-
<Grid>
549-
<Grid.ColumnDefinitions>
550-
<ColumnDefinition Width="*"/>
551-
<ColumnDefinition Width="*"/>
552-
<ColumnDefinition Width="*"/>
553-
</Grid.ColumnDefinitions>
554-
555-
<ToggleButton Grid.Column="0"
556-
Content="Task shelf"
550+
<UniformGrid Columns="3" HorizontalAlignment="Stretch">
551+
<ToggleButton Content="Task shelf"
557552
Padding="16,10"
558553
MinHeight="42"
559-
Margin="0,0,10,0"
560554
FontWeight="SemiBold"
561555
Style="{StaticResource EssentialsPivotToggleStyle}"
562556
Command="{Binding NavigatePivotCommand}"
563557
CommandParameter="{x:Static viewModels:EssentialsPivot.Tasks}"
564558
IsChecked="{Binding CurrentPivot, Converter={StaticResource EnumEqualsConverter}, ConverterParameter={x:Static viewModels:EssentialsPivot.Tasks}}"/>
565-
<ToggleButton Grid.Column="1"
566-
Content="Queue + output"
559+
<ToggleButton Content="Queue + output"
567560
Padding="16,10"
568561
MinHeight="42"
569-
Margin="0,0,10,0"
570562
FontWeight="SemiBold"
571563
Style="{StaticResource EssentialsPivotToggleStyle}"
572564
Command="{Binding NavigatePivotCommand}"
573565
CommandParameter="{x:Static viewModels:EssentialsPivot.Queue}"
574566
IsChecked="{Binding CurrentPivot, Converter={StaticResource EnumEqualsConverter}, ConverterParameter={x:Static viewModels:EssentialsPivot.Queue}}"/>
575-
<ToggleButton Grid.Column="2"
576-
Content="Automation settings"
567+
<ToggleButton Content="Automation settings"
577568
Padding="16,10"
578569
MinHeight="42"
579570
FontWeight="SemiBold"
580571
Style="{StaticResource EssentialsPivotToggleStyle}"
581572
Command="{Binding NavigatePivotCommand}"
582573
CommandParameter="{x:Static viewModels:EssentialsPivot.Settings}"
583574
IsChecked="{Binding CurrentPivot, Converter={StaticResource EnumEqualsConverter}, ConverterParameter={x:Static viewModels:EssentialsPivot.Settings}}"/>
584-
</Grid>
575+
</UniformGrid>
585576
</StackPanel>
586577
</Border>
587578

0 commit comments

Comments
 (0)