Initial commit to new repository
This commit is contained in:
52
src/AxCopilot/Views/EyeDropperWindow.xaml
Normal file
52
src/AxCopilot/Views/EyeDropperWindow.xaml
Normal file
@@ -0,0 +1,52 @@
|
||||
<Window x:Class="AxCopilot.Views.EyeDropperWindow"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
WindowStyle="None"
|
||||
AllowsTransparency="True"
|
||||
UseLayoutRounding="True"
|
||||
SnapsToDevicePixels="True"
|
||||
Background="Transparent"
|
||||
Topmost="True"
|
||||
ShowInTaskbar="False"
|
||||
ResizeMode="NoResize"
|
||||
WindowStartupLocation="Manual"
|
||||
Cursor="Cross"
|
||||
MouseDown="Window_MouseDown"
|
||||
MouseMove="Window_MouseMove"
|
||||
KeyDown="Window_KeyDown">
|
||||
|
||||
<!-- 전체 화면 투명 오버레이 (클릭 이벤트 수신용) -->
|
||||
<Canvas x:Name="RootCanvas" Background="#01000000">
|
||||
<!-- 마우스 따라다니는 돋보기 -->
|
||||
<Border x:Name="Magnifier"
|
||||
Width="90" Height="90"
|
||||
CornerRadius="45"
|
||||
BorderBrush="#88FFFFFF" BorderThickness="2"
|
||||
IsHitTestVisible="False"
|
||||
Visibility="Collapsed">
|
||||
<Border.Effect>
|
||||
<DropShadowEffect Color="Black" BlurRadius="8" ShadowDepth="2" Opacity="0.28"/>
|
||||
</Border.Effect>
|
||||
<Grid>
|
||||
<Ellipse x:Name="MagPreview" Width="86" Height="86"/>
|
||||
<!-- 중앙 십자선 -->
|
||||
<Rectangle Width="1" Height="20" Fill="#88FFFFFF" HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
||||
<Rectangle Width="20" Height="1" Fill="#88FFFFFF" HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
||||
</Grid>
|
||||
</Border>
|
||||
|
||||
<!-- HEX 코드 레이블 -->
|
||||
<Border x:Name="HexLabel"
|
||||
Background="#CC1A1B2E"
|
||||
CornerRadius="6"
|
||||
Padding="8,4"
|
||||
IsHitTestVisible="False"
|
||||
Visibility="Collapsed">
|
||||
<TextBlock x:Name="HexLabelText"
|
||||
FontSize="12"
|
||||
FontFamily="Consolas"
|
||||
FontWeight="Bold"
|
||||
Foreground="White"/>
|
||||
</Border>
|
||||
</Canvas>
|
||||
</Window>
|
||||
Reference in New Issue
Block a user