Skip to content

Commit 2501fad

Browse files
authored
Merge pull request #19 from Pip-Manager/development
ADD perf: environment operation button color
2 parents 4511216 + bcc0abe commit 2501fad

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

build.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
param(
22
[string] $Architecture = "x64",
3-
[string] $Version = "0.1.2.0"
3+
[string] $Version = "0.1.3.0"
44
)
55

66
$ErrorActionPreference = "Stop";
77

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

10-
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;
10+
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;
1111

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

src/Views/Pages/Environment/EnvironmentPage.xaml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
<StackPanel
6767
Grid.Column="2"
6868
HorizontalAlignment="Right"
69-
Margin="0,0,20,6"
69+
Margin="0,0,18,6"
7070
Orientation="Horizontal"
7171
VerticalAlignment="Center">
7272
<ui:Button
@@ -83,34 +83,38 @@
8383
Margin="5,0,0,0"
8484
ToolTip="{I18N {x:Static lang:LangKeys.Environment_Operation_PopupConsole}}" />
8585
<ui:Button
86-
Appearance="Success"
86+
BorderBrush="GreenYellow"
8787
Command="{Binding ViewModel.CheckEnvironmentUpdateCommand, RelativeSource={RelativeSource AncestorType={x:Type environment:EnvironmentPage}}}"
8888
CommandParameter="{Binding}"
8989
FontSize="18"
90+
Foreground="GreenYellow"
9091
Icon="{ui:SymbolIcon ArrowUp20}"
9192
Margin="5,0,0,0"
9293
ToolTip="{I18N {x:Static lang:LangKeys.Environment_Operation_CheckEnvironmentUpdate}}" />
9394
<ui:Button
94-
Appearance="Caution"
95+
BorderBrush="Orange"
9596
Command="{Binding ViewModel.CheckEnvironmentCommand, RelativeSource={RelativeSource AncestorType={x:Type environment:EnvironmentPage}}}"
9697
CommandParameter="{Binding}"
9798
FontSize="18"
99+
Foreground="Orange"
98100
Icon="{ui:SymbolIcon Check20}"
99101
Margin="5,0,0,0"
100102
ToolTip="{I18N {x:Static lang:LangKeys.Environment_Operation_VerifyEnvironment}}" />
101103
<ui:Button
102-
Appearance="Caution"
104+
BorderBrush="Orange"
103105
Command="{Binding ViewModel.ClearCacheCommand, RelativeSource={RelativeSource AncestorType={x:Type environment:EnvironmentPage}}}"
104106
CommandParameter="{Binding}"
105107
FontSize="18"
108+
Foreground="Orange"
106109
Icon="{ui:SymbolIcon Eraser20}"
107110
Margin="5,0,0,0"
108111
ToolTip="{I18N {x:Static lang:LangKeys.Environment_Operation_ClearEnvironmentCache}}" />
109112
<ui:Button
110-
Appearance="Danger"
113+
BorderBrush="OrangeRed"
111114
Command="{Binding ViewModel.RemoveEnvironmentCommand, RelativeSource={RelativeSource AncestorType={x:Type environment:EnvironmentPage}}}"
112115
CommandParameter="{Binding}"
113116
FontSize="18"
117+
Foreground="OrangeRed"
114118
Icon="{ui:SymbolIcon Delete20}"
115119
Margin="5,0,0,0"
116120
ToolTip="{I18N {x:Static lang:LangKeys.Environment_Operation_RemoveEnvironment}}" />

0 commit comments

Comments
 (0)