diff --git a/Flow.Launcher.Infrastructure/UserSettings/Settings.cs b/Flow.Launcher.Infrastructure/UserSettings/Settings.cs
index b5f2ac18e..6b783a210 100644
--- a/Flow.Launcher.Infrastructure/UserSettings/Settings.cs
+++ b/Flow.Launcher.Infrastructure/UserSettings/Settings.cs
@@ -42,7 +42,7 @@ namespace Flow.Launcher.Infrastructure.UserSettings
public bool UseAnimation { get; set; } = true;
public bool UseSound { get; set; } = true;
public bool UseClock { get; set; } = true;
- public bool UseDate { get; set; } = true;
+ public bool UseDate { get; set; } = false;
public bool FirstLaunch { get; set; } = true;
public int CustomExplorerIndex { get; set; } = 0;
diff --git a/Flow.Launcher/Languages/en.xaml b/Flow.Launcher/Languages/en.xaml
index bdf745052..79afe0998 100644
--- a/Flow.Launcher/Languages/en.xaml
+++ b/Flow.Launcher/Languages/en.xaml
@@ -105,6 +105,8 @@
Play a small sound when the search window opens
Animation
Use Animation in UI
+ Clock
+ Date
Hotkey
diff --git a/Flow.Launcher/MainWindow.xaml.cs b/Flow.Launcher/MainWindow.xaml.cs
index 1fcccd8d2..080486c5e 100644
--- a/Flow.Launcher/MainWindow.xaml.cs
+++ b/Flow.Launcher/MainWindow.xaml.cs
@@ -81,6 +81,29 @@ namespace Flow.Launcher
}
+ }
+
+ public void ClockDisplay()
+ {
+ if (_settings.UseClock == true)
+ {
+ ClockBox.Visibility = Visibility.Visible;
+ ClockBox.Text = System.DateTime.Now.ToString("tt hh:mm");
+ }
+ else if (_settings.UseClock == false)
+ {
+ ClockBox.Visibility = Visibility.Collapsed;
+ }
+ if (_settings.UseDate == true)
+ {
+ DateBox.Visibility = Visibility.Visible;
+ DateBox.Text = System.DateTime.Now.ToString("MM/dd ddd");
+ }
+ else if (_settings.UseDate == false)
+ {
+ DateBox.Visibility = Visibility.Collapsed;
+ }
+
}
private void OnCopy(object sender, ExecutedRoutedEventArgs e)
{
@@ -206,6 +229,12 @@ namespace Flow.Launcher
case nameof(Settings.Hotkey):
UpdateNotifyIconText();
break;
+ case nameof(Settings.UseClock):
+ ClockDisplay();
+ break;
+ case nameof(Settings.UseDate):
+ ClockDisplay();
+ break;
}
};
}
@@ -378,7 +407,6 @@ namespace Flow.Launcher
_settings.WindowLeft = Left;
_settings.WindowTop = Top;
iconsb.Begin(SearchIcon);
- iconsb.Begin(ClockPanel);
sb.Begin(FlowMainWindow);
}
diff --git a/Flow.Launcher/SettingWindow.xaml b/Flow.Launcher/SettingWindow.xaml
index 06c9549e2..144edf5d1 100644
--- a/Flow.Launcher/SettingWindow.xaml
+++ b/Flow.Launcher/SettingWindow.xaml
@@ -597,9 +597,7 @@
-
+
@@ -1555,8 +1553,17 @@
IsReadOnly="True"
Style="{DynamicResource QueryBoxStyle}"
Text="{DynamicResource hiThere}" />
-
+
+
+
+