Merge branch 'master' of https://github.com/BookerLiu/GeekDesk into 2.5.12
This commit is contained in:
@@ -333,6 +333,7 @@ namespace GeekDesk.Control.UserControls.PannelCard
|
|||||||
appData.AppConfig.SelectedMenuIcons = null;
|
appData.AppConfig.SelectedMenuIcons = null;
|
||||||
RunTimeStatus.SHOW_MENU_PASSWORDBOX = true;
|
RunTimeStatus.SHOW_MENU_PASSWORDBOX = true;
|
||||||
MainWindow.mainWindow.RightCard.PDDialog.Title.Text = "输入密码";
|
MainWindow.mainWindow.RightCard.PDDialog.Title.Text = "输入密码";
|
||||||
|
MainWindow.mainWindow.RightCard.PDDialog.type = PasswordType.INPUT;
|
||||||
MainWindow.mainWindow.RightCard.PDDialog.Visibility = Visibility.Visible;
|
MainWindow.mainWindow.RightCard.PDDialog.Visibility = Visibility.Visible;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -7,10 +7,14 @@ using System.Runtime.InteropServices;
|
|||||||
using System.Windows;
|
using System.Windows;
|
||||||
using System.Windows.Controls;
|
using System.Windows.Controls;
|
||||||
using System.Windows.Controls.Primitives;
|
using System.Windows.Controls.Primitives;
|
||||||
|
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.Media;
|
||||||
using System.Windows.Media.Imaging;
|
using System.Windows.Media.Imaging;
|
||||||
|
using Cursors = System.Windows.Input.Cursors;
|
||||||
|
using KeyEventArgs = System.Windows.Input.KeyEventArgs;
|
||||||
|
using MouseEventArgs = System.Windows.Input.MouseEventArgs;
|
||||||
|
|
||||||
namespace GeekDesk.Control.Windows
|
namespace GeekDesk.Control.Windows
|
||||||
{
|
{
|
||||||
@@ -28,10 +32,14 @@ namespace GeekDesk.Control.Windows
|
|||||||
|
|
||||||
private readonly ColorPicker colorPicker;
|
private readonly ColorPicker colorPicker;
|
||||||
|
|
||||||
|
[System.Runtime.InteropServices.DllImport("user32.dll")]
|
||||||
|
private static extern bool SetProcessDPIAware();
|
||||||
|
|
||||||
public PixelColorPickerWindow(ColorPicker colorPicker)
|
public PixelColorPickerWindow(ColorPicker colorPicker)
|
||||||
{
|
{
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
this.colorPicker = colorPicker;
|
this.colorPicker = colorPicker;
|
||||||
|
SetProcessDPIAware();
|
||||||
ColorPickerWindow_Init();
|
ColorPickerWindow_Init();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -51,8 +59,8 @@ namespace GeekDesk.Control.Windows
|
|||||||
this.Topmost = true;
|
this.Topmost = true;
|
||||||
|
|
||||||
bgBitmap = new System.Drawing.Bitmap(
|
bgBitmap = new System.Drawing.Bitmap(
|
||||||
(int)SystemParameters.VirtualScreenWidth,
|
Screen.AllScreens[0].Bounds.Width,
|
||||||
(int)SystemParameters.VirtualScreenHeight,
|
Screen.AllScreens[0].Bounds.Height,
|
||||||
System.Drawing.Imaging.PixelFormat.Format32bppArgb
|
System.Drawing.Imaging.PixelFormat.Format32bppArgb
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user