|
1 |
| -using Droplex; |
2 |
| -using Flow.Launcher.Core.ExternalPlugins; |
3 |
| -using Flow.Launcher.Core.Plugin; |
| 1 | +using Flow.Launcher.Core.Plugin; |
4 | 2 | using Flow.Launcher.Core.Resource;
|
5 | 3 | using Flow.Launcher.Helper;
|
6 | 4 | using Flow.Launcher.Infrastructure;
|
7 | 5 | using Flow.Launcher.Infrastructure.Hotkey;
|
8 |
| -using Flow.Launcher.Infrastructure.Logger; |
9 | 6 | using Flow.Launcher.Infrastructure.UserSettings;
|
10 | 7 | using Flow.Launcher.Plugin;
|
11 | 8 | using Flow.Launcher.Plugin.SharedCommands;
|
12 | 9 | using Flow.Launcher.ViewModel;
|
13 |
| -using Microsoft.Win32; |
14 | 10 | using ModernWpf;
|
15 | 11 | using System;
|
16 | 12 | using System.IO;
|
17 |
| -using System.Linq; |
18 | 13 | using System.Windows;
|
19 |
| -using System.Windows.Controls; |
20 | 14 | using System.Windows.Data;
|
21 | 15 | using System.Windows.Forms;
|
22 | 16 | using System.Windows.Input;
|
23 | 17 | using System.Windows.Interop;
|
24 |
| -using System.Windows.Media; |
25 | 18 | using System.Windows.Navigation;
|
26 | 19 | using Button = System.Windows.Controls.Button;
|
27 | 20 | using Control = System.Windows.Controls.Control;
|
28 |
| -using ListViewItem = System.Windows.Controls.ListViewItem; |
29 | 21 | using KeyEventArgs = System.Windows.Input.KeyEventArgs;
|
30 | 22 | using MessageBox = System.Windows.MessageBox;
|
31 | 23 | using TextBox = System.Windows.Controls.TextBox;
|
@@ -467,33 +459,28 @@ private void PluginStore_OnKeyDown(object sender, KeyEventArgs e)
|
467 | 459 | }
|
468 | 460 | }
|
469 | 461 |
|
470 |
| - |
471 |
| - private void ColorSchemeSelectedIndexChanged(object sender, SelectionChangedEventArgs e) |
472 |
| - { |
473 |
| - |
474 |
| - } |
475 |
| - |
476 | 462 | private void PreviewClockAndDate(object sender, RoutedEventArgs e)
|
477 | 463 | {
|
478 | 464 | ClockDisplay();
|
479 | 465 | }
|
480 | 466 | public void ClockDisplay()
|
481 | 467 | {
|
482 |
| - if (settings.UseClock == true) |
| 468 | + if (settings.UseClock) |
483 | 469 | {
|
484 | 470 | ClockBox.Visibility = Visibility.Visible;
|
485 |
| - ClockBox.Text = System.DateTime.Now.ToString(settings.TimeFormat); |
| 471 | + ClockBox.Text = DateTime.Now.ToString(settings.TimeFormat); |
486 | 472 | }
|
487 |
| - else if (settings.UseClock == false) |
| 473 | + else |
488 | 474 | {
|
489 | 475 | ClockBox.Visibility = Visibility.Collapsed;
|
490 | 476 | }
|
491 |
| - if (settings.UseDate == true) |
| 477 | + |
| 478 | + if (settings.UseDate) |
492 | 479 | {
|
493 | 480 | DateBox.Visibility = Visibility.Visible;
|
494 |
| - DateBox.Text = System.DateTime.Now.ToString(settings.DateFormat); |
| 481 | + DateBox.Text = DateTime.Now.ToString(settings.DateFormat); |
495 | 482 | }
|
496 |
| - else if (settings.UseDate == false) |
| 483 | + else |
497 | 484 | {
|
498 | 485 | DateBox.Visibility = Visibility.Collapsed;
|
499 | 486 | }
|
|
0 commit comments