-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAdvancedSettingsPopup.xaml
More file actions
50 lines (47 loc) · 2.28 KB
/
AdvancedSettingsPopup.xaml
File metadata and controls
50 lines (47 loc) · 2.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<?xml version="1.0" encoding="utf-8" ?>
<toolkit:Popup xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit"
xmlns:viewModels="clr-namespace:LunaDraw.Logic.ViewModels"
xmlns:strings="clr-namespace:LunaDraw.Resources.Strings"
x:Class="LunaDraw.Components.AdvancedSettingsPopup"
x:DataType="viewModels:MainViewModel"
CanBeDismissedByTappingOutsideOfPopup="True"
BackgroundColor="{AppThemeBinding Light={StaticResource White}, Dark={StaticResource Gray900}}">
<VerticalStackLayout Spacing="15">
<Grid ColumnDefinitions="*, Auto"
RowDefinitions="Auto, Auto, Auto"
RowSpacing="15">
<Label Grid.Row="0"
TextColor="{AppThemeBinding Light={StaticResource Gray900}, Dark={StaticResource White}}"
Grid.Column="0"
Text="{x:Static strings:AppResources.Label_ShowLayersPanel}"
VerticalOptions="Center"/>
<Switch Grid.Row="0"
Grid.Column="1"
IsToggled="{Binding ShowLayersPanel}"/>
<Label Grid.Row="1"
TextColor="{AppThemeBinding Light={StaticResource Gray900}, Dark={StaticResource White}}"
Grid.Column="0"
Text="{x:Static strings:AppResources.Label_ShowButtonLabels}"
VerticalOptions="Center"/>
<Switch Grid.Row="1"
Grid.Column="1"
IsToggled="{Binding ShowButtonLabels}"/>
<Label Grid.Row="2"
TextColor="{AppThemeBinding Light={StaticResource Gray900}, Dark={StaticResource White}}"
Grid.Column="0"
Text="Theme"
VerticalOptions="Center"/>
<Picker Grid.Row="2"
Grid.Column="1"
ItemsSource="{Binding AvailableThemes}"
SelectedItem="{Binding SelectedTheme}"
TextColor="{AppThemeBinding Light={StaticResource Gray900}, Dark={StaticResource White}}"
Title="Select Theme"/>
</Grid>
<Button Text="{x:Static strings:AppResources.Label_Close}"
Clicked="OnCloseClicked"
Margin="0,10,0,0"/>
</VerticalStackLayout>
</toolkit:Popup>