|
4 | 4 | xmlns:vs="clr-namespace:Microsoft.VisualStudio.PlatformUI;assembly=Microsoft.VisualStudio.Shell.15.0"
|
5 | 5 | Background="{DynamicResource {x:Static vs:ThemedDialogColors.WindowPanelBrushKey}}"
|
6 | 6 | Foreground="{DynamicResource {x:Static vs:ThemedDialogColors.WindowPanelTextBrushKey}}"
|
7 |
| - WindowStartupLocation="CenterOwner" |
8 |
| - WindowState="Normal" |
9 |
| - HasMaximizeButton="True" |
10 |
| - HasMinimizeButton="True" |
11 |
| - BorderThickness="0,1,0,0" |
12 |
| - ShowInTaskbar="true" |
13 |
| - Title="Window1" |
14 |
| - Width="814" |
15 |
| - Height="460" |
16 |
| - MinWidth="814" |
17 |
| - MinHeight="460" |
18 |
| - > |
19 |
| - |
20 |
| - |
| 7 | + SnapsToDevicePixels="True" |
| 8 | + UseLayoutRounding="True" |
| 9 | + WindowStartupLocation="CenterOwner" |
| 10 | + WindowStyle="None" |
| 11 | + WindowState="Normal" |
| 12 | + ResizeMode="CanResize" |
| 13 | + ShowInTaskbar="false" |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | + Width="460" |
| 18 | + Height="200" |
| 19 | + MinWidth="460" |
| 20 | + MinHeight="200"> |
21 | 21 | <Grid>
|
22 | 22 |
|
23 | 23 | <Grid.Resources>
|
|
37 | 37 | </Trigger>
|
38 | 38 | </Style.Triggers>
|
39 | 39 | </Style>
|
40 |
| - <Style TargetType="{x:Type ListBox}"> |
| 40 | + <Style TargetType="{x:Type ComboBox}"> |
| 41 | + <Setter Property="HorizontalAlignment" Value="Right"/> |
41 | 42 | <Setter Property="Foreground" Value="{DynamicResource {x:Static vs:ThemedDialogColors.WindowPanelTextBrushKey}}" />
|
| 43 | + <Setter Property="Background" Value="{DynamicResource {x:Static vs:ThemedDialogColors.ListBoxBorderBrushKey}}" /> |
42 | 44 | </Style>
|
43 | 45 | <Style TargetType="{x:Type StackPanel}">
|
44 | 46 | <Setter Property="Orientation" Value="Horizontal" />
|
|
53 | 55 |
|
54 | 56 | <Grid.ColumnDefinitions>
|
55 | 57 | <ColumnDefinition Width="Auto" />
|
56 |
| - <ColumnDefinition /> |
| 58 | + <ColumnDefinition Width="Auto" /> |
57 | 59 | </Grid.ColumnDefinitions>
|
58 | 60 |
|
59 | 61 | <Grid.RowDefinitions>
|
|
62 | 64 | <RowDefinition Height="Auto" />
|
63 | 65 | <RowDefinition Height="Auto" />
|
64 | 66 | <RowDefinition Height="Auto" />
|
65 |
| - <RowDefinition /> |
66 |
| - </Grid.RowDefinitions> |
| 67 | + |
| 68 | + </Grid.RowDefinitions> |
67 | 69 |
|
68 |
| - <!-- Left Margin --> |
69 |
| - <Label Grid.Column="0" Grid.Row="0">Solidity project configuration file:</Label> |
70 |
| - <ComboBox VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Column="1" Grid.Row="0" SelectedItem="{Binding SelectedConfigFile, Mode=OneWay}"> |
71 |
| - <ComboBoxItem>remappings.txt</ComboBoxItem> |
| 70 | + <Image Grid.Column="1" Grid.Row="0" Width="64" Height="64" HorizontalAlignment="Right" Source="https://stratisdevex.gallerycdn.vsassets.io/extensions/stratisdevex/stratisevm/0.1.3/1725544756658/Microsoft.VisualStudio.Services.Icons.Default" /> |
| 71 | + |
| 72 | + <Label Grid.Column="0" Grid.Row="0" FontSize="21"> Configure your Solidity Project</Label> |
| 73 | + <Label Grid.Column="0" Grid.Row="1">Solidity project configuration file:</Label> |
| 74 | + <ComboBox |
| 75 | + VerticalAlignment="Center" |
| 76 | + Grid.Column="1" |
| 77 | + Width="150" |
| 78 | + Grid.Row="1" |
| 79 | + SelectedItem="{Binding SelectedConfigFile, Mode=OneWay}"> |
| 80 | + <ComboBoxItem IsSelected="true">remappings.txt</ComboBoxItem> |
72 | 81 | <ComboBoxItem>foundry.toml</ComboBoxItem>
|
73 | 82 | <ComboBoxItem>brownie-config.yaml</ComboBoxItem>
|
74 | 83 | <ComboBoxItem>truffle-config.js</ComboBoxItem>
|
75 | 84 | <ComboBoxItem>hardhat.config.js</ComboBoxItem>
|
76 | 85 | </ComboBox>
|
77 | 86 |
|
78 | 87 |
|
| 88 | + <Label Grid.Column="0" Grid.Row="2">Solidity compiler version:</Label> |
| 89 | + <ComboBox |
| 90 | + VerticalAlignment="Center" |
| 91 | + Grid.Column="1" |
| 92 | + Width="150" |
| 93 | + Grid.Row="2" |
| 94 | + SelectedItem="{Binding SelectedCompilerVersion, Mode=OneWay}"> |
| 95 | + <ComboBoxItem IsSelected="true">0.8.27</ComboBoxItem> |
| 96 | + <ComboBoxItem>0.8.26</ComboBoxItem> |
| 97 | + <ComboBoxItem>0.8.25</ComboBoxItem> |
| 98 | + <ComboBoxItem>0.8.24</ComboBoxItem> |
| 99 | + <ComboBoxItem>0.8.23</ComboBoxItem> |
| 100 | + </ComboBox> |
79 | 101 |
|
80 |
| - <!-- Top Margin --> |
81 |
| - <Label Grid.Column="0" Grid.Row="1">Top Margin:</Label> |
82 |
| - <TextBox Name="topMarginTextBox" Grid.Column="1" Grid.Row="1"> |
83 |
| - <TextBox.Text> |
84 |
| - <Binding Path="Top" UpdateSourceTrigger="PropertyChanged"> |
85 |
| - |
86 |
| - </Binding> |
87 |
| - </TextBox.Text> |
88 |
| - </TextBox> |
89 |
| - |
90 |
| - <!-- Right Margin --> |
91 |
| - <Label Grid.Column="0" Grid.Row="2">Right Margin:</Label> |
92 |
| - <TextBox Name="rightMarginTextBox" Grid.Column="1" Grid.Row="2"> |
93 |
| - <TextBox.Text> |
94 |
| - <Binding Path="Right" UpdateSourceTrigger="PropertyChanged"> |
95 |
| - |
96 |
| - </Binding> |
97 |
| - </TextBox.Text> |
98 |
| - </TextBox> |
99 |
| - |
100 |
| - <!-- Bottom Margin --> |
101 |
| - <Label Grid.Column="0" Grid.Row="3">Bottom Margin:</Label> |
102 |
| - <TextBox Name="bottomMarginTextBox" Grid.Column="1" Grid.Row="3"> |
103 |
| - <TextBox.Text> |
104 |
| - <Binding Path="Bottom" UpdateSourceTrigger="PropertyChanged"> |
105 |
| - |
106 |
| - </Binding> |
107 |
| - </TextBox.Text> |
108 |
| - </TextBox> |
109 |
| - |
| 102 | + <!-- Top Margin --> |
| 103 | + |
110 | 104 | <!-- Accept or Cancel -->
|
111 |
| - <StackPanel Grid.Column="0" Grid.ColumnSpan="2" Grid.Row="4"> |
| 105 | + <StackPanel Grid.Column="0" Grid.ColumnSpan="2" Margin="0,10,0,10" Grid.Row="4"> |
112 | 106 | <Button Name="okButton" Click="okButton_Click" IsDefault="True">OK</Button>
|
113 | 107 | <Button Name="cancelButton" IsCancel="True">Cancel</Button>
|
114 | 108 | </StackPanel>
|
|
0 commit comments