Skip to content

Commit

Permalink
forV1.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Jun-Murakami committed Jun 7, 2023
1 parent 4426ffa commit 39c23c6
Show file tree
Hide file tree
Showing 7 changed files with 1,091 additions and 710 deletions.
753 changes: 393 additions & 360 deletions Assets/Styles.axaml

Large diffs are not rendered by default.

7 changes: 4 additions & 3 deletions src/Models/Class/CustomDateConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ public object Convert(object value, Type targetType, object parameter, CultureIn
{
if (value is DateTime date)
{
var dateFormatInfo = culture.DateTimeFormat;
var separator = dateFormatInfo.DateSeparator;
var dateFormatInfo = (DateTimeFormatInfo)culture.DateTimeFormat.Clone();
dateFormatInfo.DateSeparator = ".";

var shortPattern = dateFormatInfo.ShortDatePattern.Replace("yyyy", "yy");
return date.ToString(shortPattern, culture);
return date.ToString(shortPattern, dateFormatInfo);
}
return value;
}
Expand All @@ -26,4 +26,5 @@ public object ConvertBack(object value, Type targetType, object parameter, Cultu
}



}
17 changes: 17 additions & 0 deletions src/ViewModels/PhrasePresetsViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ public class PhrasePresetsViewModel : ViewModelBase
public PhrasePresetsViewModel()
{
Phrases = new ObservableCollection<string>(Enumerable.Repeat("", 20));

CtrlKeyIsDown = false;
AltKeyIsDown = false;
}

private ObservableCollection<string> _phrases;
Expand All @@ -16,6 +19,20 @@ public ObservableCollection<string> Phrases
get => _phrases;
set => SetProperty(ref _phrases, value);
}

private bool _ctrlKeyIsDown;
public bool CtrlKeyIsDown
{
get => _ctrlKeyIsDown;
set => SetProperty(ref _ctrlKeyIsDown, value);
}

private bool _altKeyIsDown;
public bool AltKeyIsDown
{
get => _altKeyIsDown;
set => SetProperty(ref _altKeyIsDown, value);
}
}

}
Loading

0 comments on commit 39c23c6

Please sign in to comment.