Introduced service management changes.
This commit is contained in:
@@ -141,8 +141,41 @@
|
||||
</Setter>
|
||||
</Style>
|
||||
|
||||
<!-- 🔵 Small Rounded Button Style for Service Tab -->
|
||||
<Style x:Key="SmallRoundedButtonStyle" TargetType="Button">
|
||||
<Setter Property="Background" Value="{DynamicResource PrimaryBrush}"/>
|
||||
<Setter Property="Foreground" Value="{DynamicResource TextLightBrush}"/>
|
||||
<Setter Property="BorderBrush" Value="Transparent"/>
|
||||
<Setter Property="BorderThickness" Value="0"/>
|
||||
<Setter Property="FontSize" Value="14"/>
|
||||
<Setter Property="Padding" Value="12,8"/>
|
||||
<Setter Property="Margin" Value="4"/>
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="Button">
|
||||
<Border Background="{TemplateBinding Background}"
|
||||
CornerRadius="8"
|
||||
Padding="{TemplateBinding Padding}">
|
||||
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
||||
</Border>
|
||||
<ControlTemplate.Triggers>
|
||||
<Trigger Property="IsMouseOver" Value="True">
|
||||
<Setter Property="Background" Value="{DynamicResource HoverBrush}"/>
|
||||
</Trigger>
|
||||
<Trigger Property="IsPressed" Value="True">
|
||||
<Setter Property="Background" Value="#2E5FA8"/>
|
||||
</Trigger>
|
||||
<Trigger Property="IsEnabled" Value="False">
|
||||
<Setter Property="Background" Value="#808080"/>
|
||||
<Setter Property="Foreground" Value="#C0C0C0"/>
|
||||
</Trigger>
|
||||
</ControlTemplate.Triggers>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
|
||||
|
||||
|
||||
<Style TargetType="TextBox">
|
||||
<Setter Property="Foreground" Value="{DynamicResource TextDarkBrush}" />
|
||||
<Setter Property="Background" Value="{DynamicResource PaperDarkBrush}" />
|
||||
@@ -489,9 +522,23 @@
|
||||
Foreground="{DynamicResource TextDarkBrush}"/>
|
||||
</StackPanel>
|
||||
|
||||
<Button Content="Refresh Status" Click="RefreshServiceStatus_Click"
|
||||
Style="{StaticResource SmallRoundedButtonStyle}"
|
||||
Margin="0,10,0,0" Width="150" HorizontalAlignment="Left"/>
|
||||
<WrapPanel Margin="0,10,0,0">
|
||||
<Button Content="Refresh Status" Click="RefreshServiceStatus_Click"
|
||||
Style="{StaticResource SmallRoundedButtonStyle}"
|
||||
Width="150" HorizontalAlignment="Left"/>
|
||||
<Button Content="Install Service" Click="InstallService_Click"
|
||||
Style="{StaticResource SmallRoundedButtonStyle}"
|
||||
Width="150" HorizontalAlignment="Left"/>
|
||||
<Button Content="Uninstall Service" Click="UninstallService_Click"
|
||||
Style="{StaticResource SmallRoundedButtonStyle}"
|
||||
Width="150" HorizontalAlignment="Left"/>
|
||||
<Button Content="Start Service" Click="StartService_Click"
|
||||
Style="{StaticResource SmallRoundedButtonStyle}"
|
||||
Width="150" HorizontalAlignment="Left"/>
|
||||
<Button Content="Stop Service" Click="StopService_Click"
|
||||
Style="{StaticResource SmallRoundedButtonStyle}"
|
||||
Width="150" HorizontalAlignment="Left"/>
|
||||
</WrapPanel>
|
||||
</StackPanel>
|
||||
</Border>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user