mirror of
https://github.com/wismna/ModernKeePass.git
synced 2025-10-03 15:40:18 -04:00
Navigate to URL correctly shows the error, should it happen
Entry title linked to history version Title text boxes selection now uses the main color
This commit is contained in:
@@ -25,7 +25,7 @@ namespace ModernKeePass.Actions
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
MessageDialogHelper.ShowErrorDialog(ex).Wait();
|
||||
MessageDialogHelper.ShowErrorDialog(ex).GetAwaiter();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
@@ -516,7 +516,9 @@
|
||||
Text="{Binding Name, Mode=TwoWay}"
|
||||
Foreground="{ThemeResource DefaultTextForegroundThemeBrush}"
|
||||
Background="Transparent"
|
||||
IsHitTestVisible="{Binding IsEditMode}"
|
||||
SelectionHighlightColor="{StaticResource MainColor}"
|
||||
IsHitTestVisible="{Binding IsEditMode}"
|
||||
IsEnabled="{Binding IsSelected}"
|
||||
BorderThickness="0"
|
||||
FontSize="20"
|
||||
FontWeight="SemiBold"
|
||||
|
@@ -63,17 +63,16 @@ namespace ModernKeePass.Views
|
||||
private void HamburgerMenuUserControl_OnSelectionChanged(object sender, SelectionChangedEventArgs e)
|
||||
{
|
||||
var listView = sender as ListView;
|
||||
EntryVm entry;
|
||||
switch (listView?.SelectedIndex)
|
||||
{
|
||||
case -1:
|
||||
return;
|
||||
default:
|
||||
entry = listView?.SelectedItem as EntryVm;
|
||||
var entry = listView?.SelectedItem as EntryVm;
|
||||
StackPanel.DataContext = entry;
|
||||
TitleTextBox.DataContext = entry;
|
||||
break;
|
||||
}
|
||||
|
||||
StackPanel.DataContext = entry;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -239,6 +239,7 @@
|
||||
x:Name="TitleTextBox"
|
||||
Text="{Binding Name, Mode=TwoWay}"
|
||||
Foreground="{ThemeResource DefaultTextForegroundThemeBrush}"
|
||||
SelectionHighlightColor="{StaticResource MainColor}"
|
||||
Background="Transparent"
|
||||
IsHitTestVisible="{Binding IsEditMode}"
|
||||
BorderThickness="0"
|
||||
|
@@ -71,30 +71,28 @@ namespace ModernKeePass.Views
|
||||
private void groups_SelectionChanged(object sender, SelectionChangedEventArgs e)
|
||||
{
|
||||
var listView = sender as ListView;
|
||||
GroupVm group;
|
||||
switch (listView?.SelectedIndex)
|
||||
{
|
||||
case -1:
|
||||
return;
|
||||
default:
|
||||
group = listView?.SelectedItem as GroupVm;
|
||||
var group = listView?.SelectedItem as GroupVm;
|
||||
Frame.Navigate(typeof(GroupDetailPage), group);
|
||||
break;
|
||||
}
|
||||
Frame.Navigate(typeof(GroupDetailPage), group);
|
||||
}
|
||||
|
||||
private void entries_SelectionChanged(object sender, SelectionChangedEventArgs e)
|
||||
{
|
||||
EntryVm entry;
|
||||
switch (GridView.SelectedIndex)
|
||||
{
|
||||
case -1:
|
||||
return;
|
||||
default:
|
||||
entry = GridView.SelectedItem as EntryVm;
|
||||
var entry = GridView.SelectedItem as EntryVm;
|
||||
Frame.Navigate(typeof(EntryDetailPage), entry);
|
||||
break;
|
||||
}
|
||||
Frame.Navigate(typeof(EntryDetailPage), entry);
|
||||
}
|
||||
|
||||
private void SemanticZoom_ViewChangeStarted(object sender, SemanticZoomViewChangedEventArgs e)
|
||||
|
Reference in New Issue
Block a user