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)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
MessageDialogHelper.ShowErrorDialog(ex).Wait();
|
MessageDialogHelper.ShowErrorDialog(ex).GetAwaiter();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -516,7 +516,9 @@
|
|||||||
Text="{Binding Name, Mode=TwoWay}"
|
Text="{Binding Name, Mode=TwoWay}"
|
||||||
Foreground="{ThemeResource DefaultTextForegroundThemeBrush}"
|
Foreground="{ThemeResource DefaultTextForegroundThemeBrush}"
|
||||||
Background="Transparent"
|
Background="Transparent"
|
||||||
IsHitTestVisible="{Binding IsEditMode}"
|
SelectionHighlightColor="{StaticResource MainColor}"
|
||||||
|
IsHitTestVisible="{Binding IsEditMode}"
|
||||||
|
IsEnabled="{Binding IsSelected}"
|
||||||
BorderThickness="0"
|
BorderThickness="0"
|
||||||
FontSize="20"
|
FontSize="20"
|
||||||
FontWeight="SemiBold"
|
FontWeight="SemiBold"
|
||||||
|
@@ -63,17 +63,16 @@ namespace ModernKeePass.Views
|
|||||||
private void HamburgerMenuUserControl_OnSelectionChanged(object sender, SelectionChangedEventArgs e)
|
private void HamburgerMenuUserControl_OnSelectionChanged(object sender, SelectionChangedEventArgs e)
|
||||||
{
|
{
|
||||||
var listView = sender as ListView;
|
var listView = sender as ListView;
|
||||||
EntryVm entry;
|
|
||||||
switch (listView?.SelectedIndex)
|
switch (listView?.SelectedIndex)
|
||||||
{
|
{
|
||||||
case -1:
|
case -1:
|
||||||
return;
|
return;
|
||||||
default:
|
default:
|
||||||
entry = listView?.SelectedItem as EntryVm;
|
var entry = listView?.SelectedItem as EntryVm;
|
||||||
|
StackPanel.DataContext = entry;
|
||||||
|
TitleTextBox.DataContext = entry;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
StackPanel.DataContext = entry;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -239,6 +239,7 @@
|
|||||||
x:Name="TitleTextBox"
|
x:Name="TitleTextBox"
|
||||||
Text="{Binding Name, Mode=TwoWay}"
|
Text="{Binding Name, Mode=TwoWay}"
|
||||||
Foreground="{ThemeResource DefaultTextForegroundThemeBrush}"
|
Foreground="{ThemeResource DefaultTextForegroundThemeBrush}"
|
||||||
|
SelectionHighlightColor="{StaticResource MainColor}"
|
||||||
Background="Transparent"
|
Background="Transparent"
|
||||||
IsHitTestVisible="{Binding IsEditMode}"
|
IsHitTestVisible="{Binding IsEditMode}"
|
||||||
BorderThickness="0"
|
BorderThickness="0"
|
||||||
|
@@ -71,30 +71,28 @@ namespace ModernKeePass.Views
|
|||||||
private void groups_SelectionChanged(object sender, SelectionChangedEventArgs e)
|
private void groups_SelectionChanged(object sender, SelectionChangedEventArgs e)
|
||||||
{
|
{
|
||||||
var listView = sender as ListView;
|
var listView = sender as ListView;
|
||||||
GroupVm group;
|
|
||||||
switch (listView?.SelectedIndex)
|
switch (listView?.SelectedIndex)
|
||||||
{
|
{
|
||||||
case -1:
|
case -1:
|
||||||
return;
|
return;
|
||||||
default:
|
default:
|
||||||
group = listView?.SelectedItem as GroupVm;
|
var group = listView?.SelectedItem as GroupVm;
|
||||||
|
Frame.Navigate(typeof(GroupDetailPage), group);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
Frame.Navigate(typeof(GroupDetailPage), group);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void entries_SelectionChanged(object sender, SelectionChangedEventArgs e)
|
private void entries_SelectionChanged(object sender, SelectionChangedEventArgs e)
|
||||||
{
|
{
|
||||||
EntryVm entry;
|
|
||||||
switch (GridView.SelectedIndex)
|
switch (GridView.SelectedIndex)
|
||||||
{
|
{
|
||||||
case -1:
|
case -1:
|
||||||
return;
|
return;
|
||||||
default:
|
default:
|
||||||
entry = GridView.SelectedItem as EntryVm;
|
var entry = GridView.SelectedItem as EntryVm;
|
||||||
|
Frame.Navigate(typeof(EntryDetailPage), entry);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
Frame.Navigate(typeof(EntryDetailPage), entry);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void SemanticZoom_ViewChangeStarted(object sender, SemanticZoomViewChangedEventArgs e)
|
private void SemanticZoom_ViewChangeStarted(object sender, SemanticZoomViewChangedEventArgs e)
|
||||||
|
Reference in New Issue
Block a user