|
88 | 88 | <TextBlock FontFamily="Segoe UI" |
89 | 89 | FontSize="16" |
90 | 90 | Foreground="#B0B0B0" |
91 | | - Text="Press R to clear canvas | ESC to exit"/> |
| 91 | + Text="Press Delete to clear canvas | ESC to exit"/> |
92 | 92 | </Border> |
93 | 93 |
|
94 | 94 | <!-- Screenshot Saved Toast (top-center of screen, cyberpunk style) --> |
|
117 | 117 | Text="📸 Screenshot Saved!"/> |
118 | 118 | </Border> |
119 | 119 |
|
| 120 | + <!-- Clear Canvas Confirmation Modal (center of screen, dimmed background) --> |
| 121 | + <Grid x:Name="ClearCanvasModalGrid" |
| 122 | + Visibility="Collapsed"> |
| 123 | + <!-- Dimmed background --> |
| 124 | + <Border Background="Black" Opacity="0.7"/> |
| 125 | + |
| 126 | + <!-- Modal dialog --> |
| 127 | + <Border HorizontalAlignment="Center" |
| 128 | + VerticalAlignment="Center" |
| 129 | + Padding="40,32" |
| 130 | + Background="#0F1419" |
| 131 | + BorderBrush="#FF0080" |
| 132 | + BorderThickness="2" |
| 133 | + CornerRadius="8"> |
| 134 | + <Border.Effect> |
| 135 | + <DropShadowEffect Color="#FF0080" |
| 136 | + Opacity="0.8" |
| 137 | + BlurRadius="30" |
| 138 | + ShadowDepth="0"/> |
| 139 | + </Border.Effect> |
| 140 | + <StackPanel> |
| 141 | + <!-- Question --> |
| 142 | + <TextBlock FontFamily="Segoe UI" |
| 143 | + FontSize="24" |
| 144 | + FontWeight="Bold" |
| 145 | + Foreground="#FFFFFF" |
| 146 | + Text="Clear canvas?" |
| 147 | + HorizontalAlignment="Center" |
| 148 | + Margin="0,0,0,24"/> |
| 149 | + |
| 150 | + <!-- Buttons --> |
| 151 | + <StackPanel Orientation="Horizontal" HorizontalAlignment="Center"> |
| 152 | + <!-- Yes Button --> |
| 153 | + <Button x:Name="ClearCanvasYesButton" |
| 154 | + Content="Yes" |
| 155 | + FontFamily="Segoe UI" |
| 156 | + FontSize="18" |
| 157 | + FontWeight="Bold" |
| 158 | + Padding="32,12" |
| 159 | + Margin="0,0,16,0" |
| 160 | + Background="#FF0080" |
| 161 | + Foreground="#FFFFFF" |
| 162 | + BorderThickness="0" |
| 163 | + Cursor="Hand" |
| 164 | + Click="ClearCanvasYesButton_Click"> |
| 165 | + <Button.Style> |
| 166 | + <Style TargetType="Button"> |
| 167 | + <Setter Property="Background" Value="#FF0080"/> |
| 168 | + <Setter Property="Template"> |
| 169 | + <Setter.Value> |
| 170 | + <ControlTemplate TargetType="Button"> |
| 171 | + <Border Background="{TemplateBinding Background}" |
| 172 | + CornerRadius="4" |
| 173 | + Padding="{TemplateBinding Padding}"> |
| 174 | + <ContentPresenter HorizontalAlignment="Center" |
| 175 | + VerticalAlignment="Center"/> |
| 176 | + </Border> |
| 177 | + </ControlTemplate> |
| 178 | + </Setter.Value> |
| 179 | + </Setter> |
| 180 | + <Style.Triggers> |
| 181 | + <Trigger Property="IsMouseOver" Value="True"> |
| 182 | + <Setter Property="Background" Value="#FF1A99"/> |
| 183 | + </Trigger> |
| 184 | + </Style.Triggers> |
| 185 | + </Style> |
| 186 | + </Button.Style> |
| 187 | + </Button> |
| 188 | + |
| 189 | + <!-- No Button --> |
| 190 | + <Button x:Name="ClearCanvasNoButton" |
| 191 | + Content="No" |
| 192 | + FontFamily="Segoe UI" |
| 193 | + FontSize="18" |
| 194 | + FontWeight="Bold" |
| 195 | + Padding="32,12" |
| 196 | + Background="#404040" |
| 197 | + Foreground="#FFFFFF" |
| 198 | + BorderThickness="0" |
| 199 | + Cursor="Hand" |
| 200 | + Click="ClearCanvasNoButton_Click"> |
| 201 | + <Button.Style> |
| 202 | + <Style TargetType="Button"> |
| 203 | + <Setter Property="Background" Value="#404040"/> |
| 204 | + <Setter Property="Template"> |
| 205 | + <Setter.Value> |
| 206 | + <ControlTemplate TargetType="Button"> |
| 207 | + <Border Background="{TemplateBinding Background}" |
| 208 | + CornerRadius="4" |
| 209 | + Padding="{TemplateBinding Padding}"> |
| 210 | + <ContentPresenter HorizontalAlignment="Center" |
| 211 | + VerticalAlignment="Center"/> |
| 212 | + </Border> |
| 213 | + </ControlTemplate> |
| 214 | + </Setter.Value> |
| 215 | + </Setter> |
| 216 | + <Style.Triggers> |
| 217 | + <Trigger Property="IsMouseOver" Value="True"> |
| 218 | + <Setter Property="Background" Value="#505050"/> |
| 219 | + </Trigger> |
| 220 | + </Style.Triggers> |
| 221 | + </Style> |
| 222 | + </Button.Style> |
| 223 | + </Button> |
| 224 | + </StackPanel> |
| 225 | + </StackPanel> |
| 226 | + </Border> |
| 227 | + </Grid> |
| 228 | + |
120 | 229 | <!-- Help Popup (center of screen, shows keyboard shortcuts) --> |
121 | 230 | <Border x:Name="HelpPopupBorder" |
122 | 231 | HorizontalAlignment="Center" |
|
270 | 379 | FontSize="16" |
271 | 380 | FontWeight="Bold" |
272 | 381 | Foreground="#FFAA00" |
273 | | - Text="R" |
| 382 | + Text="Delete" |
274 | 383 | MinWidth="120" |
275 | 384 | Margin="0,0,16,0"/> |
276 | 385 | <TextBlock FontFamily="Segoe UI" |
|
0 commit comments