* Update settings window layout with consistent margins Updated the layout of the different views of the settings window so that there is always margin at the bottom. In some cases this was achieved using <StackPanels> for clarity and extensibility, grouping e.g. a title and some radio options together with one unified margin. Also made some small consistency changes to the .xaml files. * Add width to Themes text input * Normalize margins in settings * Add default display values in Terminal settings ... for Arguments and Working Directory * Generalize TemplateSelector for empty strings * Add default display value for profile keybindings * Update margins and fontsize in theme preview * Update 'loading...' message in About ... to "Checking for updates..." and a spinner as suggested by @skipmeister123 * No popup when cancelling profile edit no changes * Delete profile when new and cancelled * Open new and cloned themes in edit mode ... and make it so canceling deletes the theme. * No popup when cancelling theme edit no changes * Add resources for margin definitions * Check for null Author in TerminalTheme * Add resource for header margin definition * Moved createdBy text to code behind
41 lines
1.0 KiB
C#
41 lines
1.0 KiB
C#
namespace FluentTerminal.Models
|
|
{
|
|
public class KeyBinding
|
|
{
|
|
public KeyBinding()
|
|
{
|
|
|
|
}
|
|
|
|
public KeyBinding(KeyBinding other)
|
|
{
|
|
Command = other.Command;
|
|
Key = other.Key;
|
|
Ctrl = other.Ctrl;
|
|
Alt = other.Alt;
|
|
Shift = other.Shift;
|
|
Meta = other.Meta;
|
|
}
|
|
|
|
public string Command { get; set; }
|
|
public int Key { get; set; }
|
|
public bool Ctrl { get; set; }
|
|
public bool Alt { get; set; }
|
|
public bool Shift { get; set; }
|
|
public bool Meta { get; set; }
|
|
|
|
public override bool Equals(object obj)
|
|
{
|
|
if (obj is KeyBinding other)
|
|
{
|
|
return other.Command.Equals(Command)
|
|
&& other.Key == Key
|
|
&& other.Ctrl == Ctrl
|
|
&& other.Alt == Alt
|
|
&& other.Shift == Shift
|
|
&& other.Meta == Meta;
|
|
}
|
|
return false;
|
|
}
|
|
}
|
|
} |