From e1a9100a8f0ea4b13f8c4d5c2b272b4f598029bf Mon Sep 17 00:00:00 2001 From: Andy McFadden Date: Wed, 9 Oct 2019 11:06:45 -0700 Subject: [PATCH] Fully style the code list view We were changing the control template for lines with long comments and notes, matching the default Win10 style. This got ugly when a non-default theme was being used, particularly "dark" themes, because the long-comment lines looked significantly different from everything else. We now fully specify the style for the ListView and ListViewItems, which means everybody's main window now looks like the default Win10 style. Which is unfortunate, but significantly easier than creating a full set of theme-specific styles. We now specify black text for highlighted address/label fields, because they otherwise become illegible when we apply our background highlight color. In the Notes window, we set the background of un-highlighted entries to white, so that we can always read it with black text. Addresses issue #50. --- SourceGen/WpfGui/CodeListItemStyle.xaml | 75 ++++++++++++++++++++++++- SourceGen/WpfGui/MainWindow.xaml | 7 ++- SourceGen/WpfGui/MainWindow.xaml.cs | 4 ++ 3 files changed, 84 insertions(+), 2 deletions(-) diff --git a/SourceGen/WpfGui/CodeListItemStyle.xaml b/SourceGen/WpfGui/CodeListItemStyle.xaml index 0edd164..299bbc9 100644 --- a/SourceGen/WpfGui/CodeListItemStyle.xaml +++ b/SourceGen/WpfGui/CodeListItemStyle.xaml @@ -17,7 +17,8 @@ limitations under the License. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -138,7 +199,17 @@ See also https://github.com/fadden/DisasmUiTest + + + @@ -191,6 +263,7 @@ See also https://github.com/fadden/DisasmUiTest + diff --git a/SourceGen/WpfGui/MainWindow.xaml b/SourceGen/WpfGui/MainWindow.xaml index fb36bdb..b7d3cde 100644 --- a/SourceGen/WpfGui/MainWindow.xaml +++ b/SourceGen/WpfGui/MainWindow.xaml @@ -481,9 +481,13 @@ limitations under the License. @@ -546,6 +550,7 @@ limitations under the License.