From 763cab824bfbaa0204aaf9cc79d5a67a01099a58 Mon Sep 17 00:00:00 2001 From: Dobin Park Date: Thu, 7 Oct 2021 00:38:00 +0900 Subject: [PATCH] Revert "- Add clock in query bar (sublime theme only)" This reverts commit c74a2dbc70f5c86c04412fa1a3fd86d4a4e0f7c1. --- Flow.Launcher/MainWindow.xaml | 4 --- Flow.Launcher/MainWindow.xaml.cs | 19 +------------- Flow.Launcher/SettingWindow.xaml | 5 +--- Flow.Launcher/Themes/Base.xaml | 29 ---------------------- Flow.Launcher/Themes/Sublime.xaml | 41 +------------------------------ 5 files changed, 3 insertions(+), 95 deletions(-) diff --git a/Flow.Launcher/MainWindow.xaml b/Flow.Launcher/MainWindow.xaml index f1e917ea2..db015392a 100644 --- a/Flow.Launcher/MainWindow.xaml +++ b/Flow.Launcher/MainWindow.xaml @@ -96,10 +96,6 @@ - - - - diff --git a/Flow.Launcher/MainWindow.xaml.cs b/Flow.Launcher/MainWindow.xaml.cs index 7160fae88..95e7ed6a8 100644 --- a/Flow.Launcher/MainWindow.xaml.cs +++ b/Flow.Launcher/MainWindow.xaml.cs @@ -11,8 +11,6 @@ using Flow.Launcher.Core.Resource; using Flow.Launcher.Helper; using Flow.Launcher.Infrastructure.UserSettings; using Flow.Launcher.ViewModel; -using System.Windows.Threading; -using System.Globalization; using Application = System.Windows.Application; using Screen = System.Windows.Forms.Screen; using ContextMenuStrip = System.Windows.Forms.ContextMenuStrip; @@ -33,6 +31,7 @@ namespace Flow.Launcher private Settings _settings; private NotifyIcon _notifyIcon; private MainViewModel _viewModel; + #endregion public MainWindow(Settings settings, MainViewModel mainVM) @@ -40,30 +39,14 @@ namespace Flow.Launcher DataContext = mainVM; _viewModel = mainVM; _settings = settings; - - DispatcherTimer timer = new DispatcherTimer(); - timer.Interval = new TimeSpan(0, 0, 1); - timer.Tick += Timer_Tick; - timer.Start(); InitializeComponent(); } public MainWindow() { - InitializeComponent(); - - } - private void Timer_Tick(object sender, EventArgs e) - { - ClockBox.Text = System.DateTime.Now.ToString("tt hh:mm"); - DateBox.Text = System.DateTime.Now.ToString("ddd MM/dd", CultureInfo.InvariantCulture); - - } - - private async void OnClosing(object sender, CancelEventArgs e) { _notifyIcon.Visible = false; diff --git a/Flow.Launcher/SettingWindow.xaml b/Flow.Launcher/SettingWindow.xaml index 3be12fc0e..a8f17d013 100644 --- a/Flow.Launcher/SettingWindow.xaml +++ b/Flow.Launcher/SettingWindow.xaml @@ -586,10 +586,7 @@ - - - - + diff --git a/Flow.Launcher/Themes/Base.xaml b/Flow.Launcher/Themes/Base.xaml index 5395eef21..fba804b10 100644 --- a/Flow.Launcher/Themes/Base.xaml +++ b/Flow.Launcher/Themes/Base.xaml @@ -270,28 +270,6 @@ - - - - - - - - \ No newline at end of file diff --git a/Flow.Launcher/Themes/Sublime.xaml b/Flow.Launcher/Themes/Sublime.xaml index e81a0b6e7..e50230f33 100644 --- a/Flow.Launcher/Themes/Sublime.xaml +++ b/Flow.Launcher/Themes/Sublime.xaml @@ -59,7 +59,7 @@ - #3C454E + #3c454e @@ -100,44 +100,5 @@ - - - - - -