|
56 | 56 | It is designed to be lightweight and easy to use. |
57 | 57 | <LineBreak /> |
58 | 58 | If you have any issues or feature requests, please report them on GitHub. |
59 | | - <LineBreak /> |
60 | | - <LineBreak /> |
61 | | - To lock and unlock your screen, press |
62 | | - <ui:TextBlock Foreground="{DynamicResource AccentTextFillColorPrimaryBrush}">WIN + SHIFT + L</ui:TextBlock> |
63 | 59 | </ui:TextBlock> |
64 | 60 |
|
65 | 61 | <ui:TextBlock Margin="0,0,0,8" FontTypography="BodyStrong" Text="Appearance & behavior" /> |
|
76 | 72 | </ui:HyperlinkButton> |
77 | 73 | </Grid> |
78 | 74 | </ui:CardControl.Header> |
79 | | - <ComboBox Grid.Column="1" MinWidth="200" SelectedIndex="0"> |
| 75 | + <ComboBox Grid.Column="1" MinWidth="200" SelectedIndex="0" SelectedValue="{Binding Settings.Theme}" SelectedValuePath="Content"> |
80 | 76 | <ComboBoxItem Content="Windows default" /> |
81 | 77 | <ComboBoxItem Content="Light" /> |
82 | 78 | <ComboBoxItem Content="Dark" /> |
|
90 | 86 | <ui:ToggleSwitch Grid.Column="1" IsChecked="{Binding Settings.HideWindows}" OffContent="Off" OnContent="On" /> |
91 | 87 | </ui:CardControl> |
92 | 88 |
|
| 89 | + <ui:CardControl Margin="0,0,0,12" Icon="{ui:SymbolIcon Symbol=WindowShield24}" Height="75"> |
| 90 | + <ui:CardControl.Header> |
| 91 | + <ui:TextBlock Grid.Row="0" FontTypography="Body" Text="Use windows lock screen to unlock" /> |
| 92 | + </ui:CardControl.Header> |
| 93 | + <ui:ToggleSwitch Grid.Column="1" IsChecked="{Binding Settings.UseWindowsLockScreen}" OffContent="Off" OnContent="On" /> |
| 94 | + </ui:CardControl> |
| 95 | + |
93 | 96 | <ui:CardControl Margin="0,0,0,12" Icon="{ui:SymbolIcon Symbol=LockClosed24}" Height="75"> |
94 | 97 | <ui:CardControl.Header> |
95 | 98 | <ui:TextBlock Grid.Row="0" FontTypography="Body" Text="Lock text" /> |
96 | 99 | </ui:CardControl.Header> |
97 | 100 | <ui:TextBox Grid.Column="1" MinWidth="200" Text="{Binding Settings.LockText, UpdateSourceTrigger=PropertyChanged}" PlaceholderText="Type your lock text here" /> |
98 | 101 | </ui:CardControl> |
99 | 102 |
|
| 103 | + <ui:CardControl Margin="0,0,0,12" Icon="{ui:SymbolIcon Symbol=LockClosed24}" Height="75"> |
| 104 | + <ui:CardControl.Header> |
| 105 | + <ui:TextBlock Grid.Row="0" FontTypography="Body" Text="Lock shortcut" /> |
| 106 | + </ui:CardControl.Header> |
| 107 | + <ui:Button Grid.Column="1" Command="{Binding RecordLockShortcutCommand}" MinWidth="200" Icon="{ui:SymbolIcon Symbol=Edit24}" Content="{Binding Settings.LockShortcutText}" /> |
| 108 | + </ui:CardControl> |
| 109 | + |
100 | 110 | <ui:CardControl Margin="0,0,0,12" Icon="{ui:SymbolIcon Symbol=LockOpen24}" Height="75"> |
101 | 111 | <ui:CardControl.Header> |
102 | 112 | <ui:TextBlock Grid.Row="0" FontTypography="Body" Text="Unlock text" /> |
103 | 113 | </ui:CardControl.Header> |
104 | 114 | <ui:TextBox Grid.Column="1" MinWidth="200" Text="{Binding Settings.UnlockText, UpdateSourceTrigger=PropertyChanged}" PlaceholderText="Type your unlock text here" /> |
105 | 115 | </ui:CardControl> |
106 | 116 |
|
| 117 | + <ui:CardControl Margin="0,0,0,12" Icon="{ui:SymbolIcon Symbol=LockOpen24}" Height="75"> |
| 118 | + <ui:CardControl.Header> |
| 119 | + <ui:TextBlock Grid.Row="0" FontTypography="Body" Text="Unlock shortcut" /> |
| 120 | + </ui:CardControl.Header> |
| 121 | + <ui:Button Grid.Column="1" Command="{Binding RecordUnlockShortcutCommand}" MinWidth="200" Icon="{ui:SymbolIcon Symbol=Edit24}" Content="{Binding Settings.UnlockShortcutText}" /> |
| 122 | + </ui:CardControl> |
| 123 | + |
107 | 124 | <ui:TextBlock Margin="0,24,0,8" FontTypography="BodyStrong" Text="About" /> |
108 | 125 | <ui:CardExpander ContentPadding="0"> |
109 | 126 | <ui:CardExpander.Header> |
|
129 | 146 | <ColumnDefinition Width="Auto" /> |
130 | 147 | </Grid.ColumnDefinitions> |
131 | 148 | <TextBlock Grid.Column="0" Text="Report an issue or request a feature" /> |
132 | | - <ui:SymbolIcon Grid.Column="1" Symbol="Link24" /> |
| 149 | + <StackPanel Grid.Column="1" Orientation="Horizontal"> |
| 150 | + <ui:SymbolIcon Margin="0 0 6 0" Symbol="Link24" /> |
| 151 | + <TextBlock Foreground="{ui:ThemeResource TextFillColorSecondaryBrush}" Text="https://github.com/Stone-Red-Code/InvLock/issues" /> |
| 152 | + </StackPanel> |
| 153 | + </Grid> |
| 154 | + </ui:Anchor> |
| 155 | + |
| 156 | + <Separator /> |
| 157 | + |
| 158 | + <ui:Anchor Margin="0" Padding="16" HorizontalAlignment="Stretch" HorizontalContentAlignment="Stretch" Background="Transparent" CornerRadius="0" BorderThickness="0" NavigateUri="https://github.com/Stone-Red-Code/InvLock"> |
| 159 | + <Grid> |
| 160 | + <Grid.ColumnDefinitions> |
| 161 | + <ColumnDefinition Width="*" /> |
| 162 | + <ColumnDefinition Width="Auto" /> |
| 163 | + </Grid.ColumnDefinitions> |
| 164 | + <TextBlock Grid.Column="0" Text="GitHub" /> |
| 165 | + <StackPanel Grid.Column="1" Orientation="Horizontal"> |
| 166 | + <ui:SymbolIcon Margin="0 0 6 0" Symbol="Link24" /> |
| 167 | + <TextBlock Foreground="{ui:ThemeResource TextFillColorSecondaryBrush}" Text="https://github.com/Stone-Red-Code/InvLock" /> |
| 168 | + </StackPanel> |
133 | 169 | </Grid> |
134 | 170 | </ui:Anchor> |
135 | 171 |
|
|
140 | 176 | <ColumnDefinition Width="*" /> |
141 | 177 | <ColumnDefinition Width="Auto" /> |
142 | 178 | </Grid.ColumnDefinitions> |
143 | | - <TextBlock Grid.Column="0" Text="Clone repository" /> |
144 | | - <TextBlock Grid.Column="1" Foreground="{ui:ThemeResource TextFillColorSecondaryBrush}" Text="git clone https://github.com/Stone-Red-Code/InvLock" /> |
| 179 | + <TextBlock Grid.Column="0" Text="Version" /> |
| 180 | + <TextBlock Grid.Column="1" Foreground="{ui:ThemeResource TextFillColorSecondaryBrush}" Text="{Binding AppVersion}" /> |
145 | 181 | </Grid> |
146 | | - |
147 | | - <Separator /> |
148 | | - |
149 | | - <TextBlock Margin="16" Text="{Binding AppVersion, StringFormat='Version {0}'}" /> |
150 | 182 | </StackPanel> |
151 | 183 | </ui:CardExpander> |
152 | 184 | </StackPanel> |
|
0 commit comments