formatting

This commit is contained in:
Jeremy 2022-11-02 07:47:31 +11:00
parent 6da3ca52d6
commit e54c91d1d2
2 changed files with 8 additions and 25 deletions

View file

@ -21,10 +21,7 @@ using System.Windows.Media;
using Flow.Launcher.Infrastructure.Hotkey; using Flow.Launcher.Infrastructure.Hotkey;
using Flow.Launcher.Plugin.SharedCommands; using Flow.Launcher.Plugin.SharedCommands;
using System.Windows.Threading; using System.Windows.Threading;
using System.Globalization;
using System.Reflection.Emit;
using System.Windows.Data; using System.Windows.Data;
using System.Diagnostics;
namespace Flow.Launcher namespace Flow.Launcher
{ {
@ -59,7 +56,6 @@ namespace Flow.Launcher
InitializeComponent(); InitializeComponent();
} }
private void OnCopy(object sender, ExecutedRoutedEventArgs e) private void OnCopy(object sender, ExecutedRoutedEventArgs e)
{ {
if (QueryTextBox.SelectionLength == 0) if (QueryTextBox.SelectionLength == 0)

View file

@ -1,31 +1,23 @@
using Droplex; using Flow.Launcher.Core.Plugin;
using Flow.Launcher.Core.ExternalPlugins;
using Flow.Launcher.Core.Plugin;
using Flow.Launcher.Core.Resource; using Flow.Launcher.Core.Resource;
using Flow.Launcher.Helper; using Flow.Launcher.Helper;
using Flow.Launcher.Infrastructure; using Flow.Launcher.Infrastructure;
using Flow.Launcher.Infrastructure.Hotkey; using Flow.Launcher.Infrastructure.Hotkey;
using Flow.Launcher.Infrastructure.Logger;
using Flow.Launcher.Infrastructure.UserSettings; using Flow.Launcher.Infrastructure.UserSettings;
using Flow.Launcher.Plugin; using Flow.Launcher.Plugin;
using Flow.Launcher.Plugin.SharedCommands; using Flow.Launcher.Plugin.SharedCommands;
using Flow.Launcher.ViewModel; using Flow.Launcher.ViewModel;
using Microsoft.Win32;
using ModernWpf; using ModernWpf;
using System; using System;
using System.IO; using System.IO;
using System.Linq;
using System.Windows; using System.Windows;
using System.Windows.Controls;
using System.Windows.Data; using System.Windows.Data;
using System.Windows.Forms; using System.Windows.Forms;
using System.Windows.Input; using System.Windows.Input;
using System.Windows.Interop; using System.Windows.Interop;
using System.Windows.Media;
using System.Windows.Navigation; using System.Windows.Navigation;
using Button = System.Windows.Controls.Button; using Button = System.Windows.Controls.Button;
using Control = System.Windows.Controls.Control; using Control = System.Windows.Controls.Control;
using ListViewItem = System.Windows.Controls.ListViewItem;
using KeyEventArgs = System.Windows.Input.KeyEventArgs; using KeyEventArgs = System.Windows.Input.KeyEventArgs;
using MessageBox = System.Windows.MessageBox; using MessageBox = System.Windows.MessageBox;
using TextBox = System.Windows.Controls.TextBox; using TextBox = System.Windows.Controls.TextBox;
@ -467,33 +459,28 @@ namespace Flow.Launcher
} }
} }
private void ColorSchemeSelectedIndexChanged(object sender, SelectionChangedEventArgs e)
{
}
private void PreviewClockAndDate(object sender, RoutedEventArgs e) private void PreviewClockAndDate(object sender, RoutedEventArgs e)
{ {
ClockDisplay(); ClockDisplay();
} }
public void ClockDisplay() public void ClockDisplay()
{ {
if (settings.UseClock == true) if (settings.UseClock)
{ {
ClockBox.Visibility = Visibility.Visible; ClockBox.Visibility = Visibility.Visible;
ClockBox.Text = System.DateTime.Now.ToString(settings.TimeFormat); ClockBox.Text = DateTime.Now.ToString(settings.TimeFormat);
} }
else if (settings.UseClock == false) else
{ {
ClockBox.Visibility = Visibility.Collapsed; ClockBox.Visibility = Visibility.Collapsed;
} }
if (settings.UseDate == true)
if (settings.UseDate)
{ {
DateBox.Visibility = Visibility.Visible; DateBox.Visibility = Visibility.Visible;
DateBox.Text = System.DateTime.Now.ToString(settings.DateFormat); DateBox.Text = DateTime.Now.ToString(settings.DateFormat);
} }
else if (settings.UseDate == false) else
{ {
DateBox.Visibility = Visibility.Collapsed; DateBox.Visibility = Visibility.Collapsed;
} }