diff --git a/docs/Changelog.md b/docs/Changelog.md
index bab8764..f1024d5 100644
--- a/docs/Changelog.md
+++ b/docs/Changelog.md
@@ -3,8 +3,8 @@
=========================
- `window-scale 1` does not work correctly in mpv,
- so I've removed support for it and added my own implementation
- that actually works: `script-message mpv.net window-scale`.
+ so I've removed support for it and added my own implementation:
+ `script-message mpv.net window-scale`.
- The CS-Script library was replaced with my own C# scripting implementation.
- If a player window border is near to a screen border and the window size
changes, the player windows sticks to that near screen border location.
@@ -22,6 +22,7 @@
- Settings are stored in the file settings.xml now instead of the Registry.
- Video rotation support added.
- After using the config editor it's no longer necessary to restart mpv.net.
+- Improved input editor theming.
5.4.8.8 Beta (2021-05-09)
diff --git a/src/Resources/theme.txt b/src/Resources/theme.txt
index 7b1d86b..adb671a 100644
--- a/src/Resources/theme.txt
+++ b/src/Resources/theme.txt
@@ -12,11 +12,6 @@ menu-highlight = #505050
menu-border = #FFFFFF
menu-checked = #5A5A5A
-button-foreground = #DDDDDD
-button-background = #505050
-button-hover = #555555
-button-border = #707070
-
[light]
@@ -30,8 +25,3 @@ menu-background = #DFDFDF
menu-highlight = #BFBFBF
menu-border = #6A6A6A
menu-checked = #AAAAAA
-
-button-foreground = #000000
-button-background = #BBBBBB
-button-hover = #CCCCCC
-button-border = #6A6A6A
diff --git a/src/WPF/InputWindow.xaml b/src/WPF/InputWindow.xaml
index a34ad03..9ba7e3b 100644
--- a/src/WPF/InputWindow.xaml
+++ b/src/WPF/InputWindow.xaml
@@ -18,7 +18,7 @@
>
-
+
+
+
+
+
+
+
+
@@ -46,15 +59,27 @@
/>
+
+
+
+
-
+
@@ -65,9 +90,8 @@
-
+
-
diff --git a/src/WPF/InputWindow.xaml.cs b/src/WPF/InputWindow.xaml.cs
index 4487c33..ea80588 100644
--- a/src/WPF/InputWindow.xaml.cs
+++ b/src/WPF/InputWindow.xaml.cs
@@ -42,6 +42,7 @@ namespace mpvnet
if (SearchControl.SearchTextBox.Text == "?")
{
SearchControl.SearchTextBox.Text = "";
+
Msg.ShowInfo("Filtering",
"Reduce the filter scope with:" + BR2 +
"i input" + BR2 +
@@ -53,9 +54,13 @@ namespace mpvnet
bool Filter(CommandItem item)
{
- if (item.Command == "") return false;
+ if (item.Command == "")
+ return false;
+
string searchText = SearchControl.SearchTextBox.Text.ToLower();
- if (searchText == "" || searchText == "?") return true;
+
+ if (searchText == "" || searchText == "?")
+ return true;
if (searchText.Length == 1)
return item.Input.ToLower().Replace("ctrl+", "").Replace("shift+", "").Replace("alt+", "") == searchText.ToLower();
@@ -74,8 +79,8 @@ namespace mpvnet
else if (searchText.StartsWith("c ") || searchText.StartsWith("c:"))
return item.Command.ToLower().Contains(searchText.Substring(2).Trim());
else if (item.Command.ToLower().Contains(searchText) ||
- item.Path.ToLower().Contains(searchText) ||
- item.Input.ToLower().Contains(searchText))
+ item.Path.ToLower().Contains(searchText) ||
+ item.Input.ToLower().Contains(searchText))
{
return true;
}
@@ -85,7 +90,10 @@ namespace mpvnet
void ButtonClick(object sender, RoutedEventArgs e)
{
CommandItem item = ((Button)e.Source).DataContext as CommandItem;
- if (item is null) return;
+
+ if (item is null)
+ return;
+
LearnWindow w = new LearnWindow();
w.Owner = this;
w.InputItem = item;
@@ -109,10 +117,12 @@ namespace mpvnet
foreach (string line in Properties.Resources.input_conf.Split(new[] { "\r\n" }, StringSplitOptions.None))
{
string test = line.Trim();
- if (test == "" || test.StartsWith("#")) text += test + "\r\n";
+
+ if (test == "" || test.StartsWith("#"))
+ text += test + BR;
}
- text = "\r\n" + text.Trim() + "\r\n\r\n";
+ text = BR + text.Trim() + BR2;
foreach (CommandItem item in CommandItem.Items)
{
@@ -127,8 +137,9 @@ namespace mpvnet
if (item.Path.Trim() != "")
line = line.PadRight(40) + " #menu: " + item.Path;
- text += line + "\r\n";
+ text += line + BR;
}
+
return text;
}