Skip to content

Commit 84100aa

Browse files
Refactor: Rename CameraPlacementPreviewPage to WebcamPlacementPreviewPage
Co-authored-by: toniolo.luca <toniolo.luca@outlook.com>
1 parent 7ba8ca6 commit 84100aa

3 files changed

Lines changed: 14 additions & 14 deletions

File tree

src/Captura/Pages/SettingsPage.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
<Frame Source="FFmpegPage.xaml"/>
5555
</TabItem>
5656
<TabItem Header="{Binding WebCam, Source={StaticResource Loc}, Mode=OneWay}">
57-
<Frame Source="CameraPlacementPreviewPage.xaml"/>
57+
<Frame Source="WebcamPlacementPreviewPage.xaml"/>
5858
</TabItem>
5959
</TabControl>
6060
</Grid>

src/Captura/Pages/CameraPlacementPreviewPage.xaml renamed to src/Captura/Pages/WebcamPlacementPreviewPage.xaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<Page x:Class="Captura.CameraPlacementPreviewPage"
1+
<Page x:Class="Captura.WebcamPlacementPreviewPage"
22
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
33
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
44
xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
@@ -163,10 +163,10 @@
163163
<TextBlock TextWrapping="Wrap"
164164
Margin="5"
165165
Foreground="{DynamicResource ItemText}">
166-
<Run Text="The preview shows how your camera will appear in recordings."/>
166+
<Run Text="The preview shows how your webcam will appear in recordings."/>
167167
<LineBreak/>
168168
<LineBreak/>
169-
<Run Text="• Scale: Size of the camera overlay"/>
169+
<Run Text="• Scale: Size of the webcam overlay"/>
170170
<LineBreak/>
171171
<Run Text="• Horizontal/Vertical: Position on screen"/>
172172
<LineBreak/>
@@ -201,8 +201,8 @@
201201
Foreground="#40FFFFFF"
202202
FontSize="24"/>
203203

204-
<!-- Camera overlay preview -->
205-
<Border Name="CameraOverlay"
204+
<!-- WebCam overlay preview -->
205+
<Border Name="WebcamOverlay"
206206
Background="#FF4A90E2"
207207
BorderBrush="#FFFFFFFF"
208208
BorderThickness="2"
@@ -216,7 +216,7 @@
216216
Width="40"
217217
Height="40"
218218
Margin="20"/>
219-
<TextBlock Text="Camera"
219+
<TextBlock Text="WebCam"
220220
Foreground="White"
221221
HorizontalAlignment="Center"
222222
VerticalAlignment="Bottom"

src/Captura/Pages/CameraPlacementPreviewPage.xaml.cs renamed to src/Captura/Pages/WebcamPlacementPreviewPage.xaml.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44

55
namespace Captura
66
{
7-
public partial class CameraPlacementPreviewPage : Page
7+
public partial class WebcamPlacementPreviewPage : Page
88
{
9-
public CameraPlacementPreviewPage()
9+
public WebcamPlacementPreviewPage()
1010
{
1111
InitializeComponent();
1212

@@ -38,11 +38,11 @@ void UpdatePreview()
3838
// Calculate the overlay position using the settings
3939
var overlayPosition = settings.GetPosition(frameSize, webcamSize);
4040

41-
// Update the camera overlay UI
42-
CameraOverlay.Width = overlaySize.Width;
43-
CameraOverlay.Height = overlaySize.Height;
44-
CameraOverlay.Margin = new Thickness(overlayPosition.X, overlayPosition.Y, 0, 0);
45-
CameraOverlay.Opacity = settings.Opacity / 100.0;
41+
// Update the webcam overlay UI
42+
WebcamOverlay.Width = overlaySize.Width;
43+
WebcamOverlay.Height = overlaySize.Height;
44+
WebcamOverlay.Margin = new Thickness(overlayPosition.X, overlayPosition.Y, 0, 0);
45+
WebcamOverlay.Opacity = settings.Opacity / 100.0;
4646
}
4747

4848
// Quick position preset handlers

0 commit comments

Comments
 (0)