|
3 | 3 | xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
4 | 4 | xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
5 | 5 | xmlns:vm="clr-namespace:SemanticCode.ViewModels"
|
6 |
| - xmlns:ui="clr-namespace:FluentAvalonia.UI.Controls;assembly=FluentAvalonia" |
7 | 6 | mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
|
8 | 7 | x:Class="SemanticCode.Pages.ClaudeCodeSettingsView"
|
9 | 8 | x:DataType="vm:ClaudeCodeSettingsViewModel">
|
|
25 | 24 | HorizontalAlignment="Center"/>
|
26 | 25 | </StackPanel>
|
27 | 26 |
|
28 |
| - <!-- Profile Management --> |
29 | 27 | <Border Background="{DynamicResource CardBackgroundFillColorDefaultBrush}"
|
30 | 28 | BorderBrush="{DynamicResource CardStrokeColorDefaultBrush}"
|
31 | 29 | BorderThickness="1"
|
|
35 | 33 | <TextBlock Text="配置档案管理"
|
36 | 34 | FontWeight="Bold"
|
37 | 35 | FontSize="18"/>
|
38 |
| - |
39 |
| - <!-- Current Profile Selection --> |
40 | 36 | <StackPanel Spacing="8">
|
41 | 37 | <TextBlock Text="当前配置档案"
|
42 | 38 | FontWeight="SemiBold"/>
|
43 | 39 | <Grid ColumnDefinitions="*,Auto">
|
44 | 40 | <ComboBox Grid.Column="0"
|
45 | 41 | ItemsSource="{Binding Profiles}"
|
46 |
| - SelectedItem="{Binding SelectedProfile}"> |
| 42 | + SelectedItem="{Binding SelectedProfile}" |
| 43 | + PointerPressed="ComboBox_OnPointerPressed"> |
47 | 44 | <ComboBox.ItemTemplate>
|
48 | 45 | <DataTemplate>
|
49 |
| - <StackPanel Spacing="4"> |
| 46 | + <StackPanel Spacing="4" Background="Transparent"> |
50 | 47 | <TextBlock Text="{Binding Name}" FontWeight="SemiBold"/>
|
51 | 48 | <TextBlock Text="{Binding Description}" Opacity="0.7" FontSize="12"/>
|
52 | 49 | <StackPanel Orientation="Horizontal" Spacing="8">
|
|
81 | 78 | Command="{Binding DeleteProfileCommand}"/>
|
82 | 79 | </StackPanel>
|
83 | 80 |
|
84 |
| - <!-- Create New Profile --> |
85 | 81 | <Separator Height="1" Margin="0,8,0,8"/>
|
86 | 82 | <StackPanel Spacing="12">
|
87 | 83 | <TextBlock Text="创建新配置档案"
|
88 | 84 | FontWeight="SemiBold"/>
|
89 |
| - <Grid RowDefinitions="Auto,Auto,Auto" ColumnDefinitions="*,*"> |
| 85 | + <Grid RowDefinitions="Auto,Auto,Auto" ColumnDefinitions="*,*,*,*"> |
90 | 86 | <TextBlock Grid.Row="0" Grid.Column="0" Text="档案名称"/>
|
91 | 87 | <TextBox Grid.Row="1" Grid.Column="0"
|
92 | 88 | Text="{Binding NewProfileName}"
|
|
97 | 93 | Text="{Binding NewProfileDescription}"
|
98 | 94 | Watermark="输入档案描述" Margin="8,0,0,0"/>
|
99 | 95 |
|
100 |
| - <Button Grid.Row="2" Grid.ColumnSpan="2" |
| 96 | + <Button Grid.Row="2" Grid.ColumnSpan="2" Grid.Column="2" |
101 | 97 | Content="创建档案"
|
102 | 98 | Command="{Binding CreateProfileCommand}"
|
103 | 99 | HorizontalAlignment="Center"
|
|
144 | 140 | FontSize="13"/>
|
145 | 141 | <TextBox Text="{Binding ApiKey}"
|
146 | 142 | PasswordChar="*"
|
147 |
| - Watermark="sk-ant-xxxxx"/> |
| 143 | + Watermark="sk-ant"/> |
148 | 144 | </StackPanel>
|
149 | 145 |
|
150 | 146 | <!-- Base URL -->
|
|
154 | 150 | <TextBlock Text="API 基础 URL 地址"
|
155 | 151 | Opacity="0.7"
|
156 | 152 | FontSize="13"/>
|
157 |
| - <Grid RowDefinitions="Auto,Auto"> |
158 |
| - <ComboBox Grid.Row="0" |
159 |
| - ItemsSource="{Binding AvailableBaseUrls}" |
160 |
| - SelectedItem="{Binding BaseUrl}" |
161 |
| - SelectionChanged="BaseUrlComboBox_SelectionChanged" |
162 |
| - Name="BaseUrlComboBox"/> |
163 |
| - <TextBox Grid.Row="1" |
164 |
| - Text="{Binding BaseUrl}" |
165 |
| - Margin="0,4,0,0" |
166 |
| - Watermark="或直接输入自定义URL"/> |
167 |
| - </Grid> |
| 153 | + <TextBox Text="{Binding BaseUrl}" |
| 154 | + Watermark="输入 API 基础 URL 地址"/> |
168 | 155 | </StackPanel>
|
169 | 156 |
|
170 | 157 | <!-- Main Model -->
|
|
174 | 161 | <TextBlock Text="主要会话模型(用于复杂推理)"
|
175 | 162 | Opacity="0.7"
|
176 | 163 | FontSize="13"/>
|
177 |
| - <Grid RowDefinitions="Auto,Auto"> |
178 |
| - <ComboBox Grid.Row="0" |
179 |
| - ItemsSource="{Binding AvailableModels}" |
180 |
| - SelectedItem="{Binding SelectedModel}" |
181 |
| - SelectionChanged="ModelComboBox_SelectionChanged" |
182 |
| - Name="ModelComboBox"/> |
183 |
| - <TextBox Grid.Row="1" |
184 |
| - Text="{Binding SelectedModel}" |
185 |
| - Margin="0,4,0,0" |
186 |
| - Watermark="或直接输入自定义模型名称"/> |
187 |
| - </Grid> |
| 164 | + <TextBox Text="{Binding SelectedModel}" |
| 165 | + Watermark="输入模型名称"/> |
188 | 166 | </StackPanel>
|
189 | 167 |
|
190 | 168 | <!-- Small Fast Model -->
|
|
194 | 172 | <TextBlock Text="后台快速模型(用于工具调用和辅助任务)"
|
195 | 173 | Opacity="0.7"
|
196 | 174 | FontSize="13"/>
|
197 |
| - <Grid RowDefinitions="Auto,Auto"> |
198 |
| - <ComboBox Grid.Row="0" |
199 |
| - ItemsSource="{Binding AvailableSmallFastModels}" |
200 |
| - SelectedItem="{Binding SelectedSmallFastModel}" |
201 |
| - SelectionChanged="SmallFastModelComboBox_SelectionChanged" |
202 |
| - Name="SmallFastModelComboBox"/> |
203 |
| - <TextBox Grid.Row="1" |
204 |
| - Text="{Binding SelectedSmallFastModel}" |
205 |
| - Margin="0,4,0,0" |
206 |
| - Watermark="或直接输入自定义快速模型名称"/> |
207 |
| - </Grid> |
| 175 | + <TextBox Text="{Binding SelectedSmallFastModel}" |
| 176 | + Watermark="输入快速模型名称"/> |
208 | 177 | </StackPanel>
|
209 | 178 | </StackPanel>
|
210 | 179 |
|
|
0 commit comments