Skip to content

Commit

Permalink
Merge pull request #19 from Pip-Manager/development
Browse files Browse the repository at this point in the history
ADD perf: environment operation button color
  • Loading branch information
AuroraZiling authored Oct 27, 2024
2 parents 4511216 + bcc0abe commit 2501fad
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
4 changes: 2 additions & 2 deletions build.ps1
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
param(
[string] $Architecture = "x64",
[string] $Version = "0.1.2.0"
[string] $Version = "0.1.3.0"
)

$ErrorActionPreference = "Stop";

Write-Output "Start building singleWithRuntime...";

dotnet publish src/PipManager.Windows.csproj -c Release -r "win-$Architecture" -o "build/$Version/singleWithRuntime" -p:Platform=$Architecture -p:PublishReadyToRun=true -p:EnableCompressionInSingleFile=true -p:PublishSingleFile=true -p:SelfContained=true -p:AssemblyVersion=$Version -p:Configuration=Release;
dotnet publish src/PipManager.Windows.csproj -c Release -r "win-$Architecture" -o "build/$Version/singleWithRuntime" -p:Platform=$Architecture -p:PublishReadyToRun=false -p:EnableCompressionInSingleFile=true -p:PublishSingleFile=true -p:SelfContained=true -p:AssemblyVersion=$Version -p:Configuration=Release;

Rename-Item -Path "build/$Version/singleWithRuntime/PipManager.Windows.exe" -NewName "PipManager_withRuntime.exe"

Expand Down
14 changes: 9 additions & 5 deletions src/Views/Pages/Environment/EnvironmentPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
<StackPanel
Grid.Column="2"
HorizontalAlignment="Right"
Margin="0,0,20,6"
Margin="0,0,18,6"
Orientation="Horizontal"
VerticalAlignment="Center">
<ui:Button
Expand All @@ -83,34 +83,38 @@
Margin="5,0,0,0"
ToolTip="{I18N {x:Static lang:LangKeys.Environment_Operation_PopupConsole}}" />
<ui:Button
Appearance="Success"
BorderBrush="GreenYellow"
Command="{Binding ViewModel.CheckEnvironmentUpdateCommand, RelativeSource={RelativeSource AncestorType={x:Type environment:EnvironmentPage}}}"
CommandParameter="{Binding}"
FontSize="18"
Foreground="GreenYellow"
Icon="{ui:SymbolIcon ArrowUp20}"
Margin="5,0,0,0"
ToolTip="{I18N {x:Static lang:LangKeys.Environment_Operation_CheckEnvironmentUpdate}}" />
<ui:Button
Appearance="Caution"
BorderBrush="Orange"
Command="{Binding ViewModel.CheckEnvironmentCommand, RelativeSource={RelativeSource AncestorType={x:Type environment:EnvironmentPage}}}"
CommandParameter="{Binding}"
FontSize="18"
Foreground="Orange"
Icon="{ui:SymbolIcon Check20}"
Margin="5,0,0,0"
ToolTip="{I18N {x:Static lang:LangKeys.Environment_Operation_VerifyEnvironment}}" />
<ui:Button
Appearance="Caution"
BorderBrush="Orange"
Command="{Binding ViewModel.ClearCacheCommand, RelativeSource={RelativeSource AncestorType={x:Type environment:EnvironmentPage}}}"
CommandParameter="{Binding}"
FontSize="18"
Foreground="Orange"
Icon="{ui:SymbolIcon Eraser20}"
Margin="5,0,0,0"
ToolTip="{I18N {x:Static lang:LangKeys.Environment_Operation_ClearEnvironmentCache}}" />
<ui:Button
Appearance="Danger"
BorderBrush="OrangeRed"
Command="{Binding ViewModel.RemoveEnvironmentCommand, RelativeSource={RelativeSource AncestorType={x:Type environment:EnvironmentPage}}}"
CommandParameter="{Binding}"
FontSize="18"
Foreground="OrangeRed"
Icon="{ui:SymbolIcon Delete20}"
Margin="5,0,0,0"
ToolTip="{I18N {x:Static lang:LangKeys.Environment_Operation_RemoveEnvironment}}" />
Expand Down

0 comments on commit 2501fad

Please sign in to comment.