mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-07 11:46:30 +02:00
Revert "[File Explorer Add-ons] Fix file preview pane flickering on f… (#27093)
* Revert "[File Explorer Add-ons] Fix file preview pane flickering on file selection and resizing (#26660)" This reverts commit9581cd7a27. * Revert "[Build][FileExplorer]Add missing dwmapi.lib to Debug config (#26940)" This reverts commitd190934d61. * Revert "[Build]Fix dwamapi.lib linking error on VS (#26870)" This reverts commitc7f8b696a6.
This commit is contained in:
@@ -3,7 +3,6 @@
|
|||||||
#include "dwmapi.h"
|
#include "dwmapi.h"
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#pragma comment (lib,"Dwmapi.lib")
|
|
||||||
|
|
||||||
#define DWMWA_USE_IMMERSIVE_DARK_MODE 20
|
#define DWMWA_USE_IMMERSIVE_DARK_MODE 20
|
||||||
#define HKEY_WINDOWS_THEME L"Software\\Microsoft\\Windows\\CurrentVersion\\Themes\\Personalize"
|
#define HKEY_WINDOWS_THEME L"Software\\Microsoft\\Windows\\CurrentVersion\\Themes\\Personalize"
|
||||||
|
|||||||
@@ -83,7 +83,6 @@ namespace Microsoft.PowerToys.PreviewHandler.Markdown
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public MarkdownPreviewHandlerControl()
|
public MarkdownPreviewHandlerControl()
|
||||||
{
|
{
|
||||||
this.SetBackgroundColor(Settings.BackgroundColor);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -122,12 +121,11 @@ namespace Microsoft.PowerToys.PreviewHandler.Markdown
|
|||||||
_infoBarDisplayed = true;
|
_infoBarDisplayed = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
string markdownHTML = FilePreviewCommon.MarkdownHelper.MarkdownHtml(fileText, Settings.GetTheme(), filePath, ImagesBlockedCallBack);
|
string markdownHTML = FilePreviewCommon.MarkdownHelper.MarkdownHtml(fileText, Common.UI.ThemeManager.GetWindowsBaseColor().ToLowerInvariant(), filePath, ImagesBlockedCallBack);
|
||||||
|
|
||||||
_browser = new WebView2()
|
_browser = new WebView2()
|
||||||
{
|
{
|
||||||
Dock = DockStyle.Fill,
|
Dock = DockStyle.Fill,
|
||||||
DefaultBackgroundColor = Color.Transparent,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
var webView2Options = new CoreWebView2EnvironmentOptions("--block-new-web-contents");
|
var webView2Options = new CoreWebView2EnvironmentOptions("--block-new-web-contents");
|
||||||
|
|||||||
@@ -1,44 +0,0 @@
|
|||||||
// Copyright (c) Microsoft Corporation
|
|
||||||
// The Microsoft Corporation licenses this file to you under the MIT license.
|
|
||||||
// See the LICENSE file in the project root for more information.
|
|
||||||
|
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace Microsoft.PowerToys.PreviewHandler.Markdown
|
|
||||||
{
|
|
||||||
internal sealed class Settings
|
|
||||||
{
|
|
||||||
/// <summary>
|
|
||||||
/// Gets the color of the window background.
|
|
||||||
/// Even though this is not a setting yet, it's retrieved from a "Settings" class to be aligned with other preview handlers that contain this setting.
|
|
||||||
/// It's possible it can be converted into a setting in the future.
|
|
||||||
/// </summary>
|
|
||||||
public static Color BackgroundColor
|
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
if (GetTheme() == "dark")
|
|
||||||
{
|
|
||||||
return Color.FromArgb(30, 30, 30); // #1e1e1e
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
return Color.White;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Returns the theme.
|
|
||||||
/// </summary>
|
|
||||||
/// <returns>Theme that should be used.</returns>
|
|
||||||
public static string GetTheme()
|
|
||||||
{
|
|
||||||
return Common.UI.ThemeManager.GetWindowsBaseColor().ToLowerInvariant();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,7 +1,6 @@
|
|||||||
#include "pch.h"
|
#include "pch.h"
|
||||||
#include "MarkdownPreviewHandler.h"
|
#include "MarkdownPreviewHandler.h"
|
||||||
#include "Generated Files/resource.h"
|
#include "Generated Files/resource.h"
|
||||||
#include "../powerpreview/powerpreviewConstants.h"
|
|
||||||
|
|
||||||
#include <shellapi.h>
|
#include <shellapi.h>
|
||||||
#include <Shlwapi.h>
|
#include <Shlwapi.h>
|
||||||
@@ -11,7 +10,6 @@
|
|||||||
#include <common/logger/logger.h>
|
#include <common/logger/logger.h>
|
||||||
#include <common/SettingsAPI/settings_helpers.h>
|
#include <common/SettingsAPI/settings_helpers.h>
|
||||||
#include <common/utils/process_path.h>
|
#include <common/utils/process_path.h>
|
||||||
#include <common/Themes/windows_colors.h>
|
|
||||||
|
|
||||||
extern HINSTANCE g_hInst;
|
extern HINSTANCE g_hInst;
|
||||||
extern long g_cDllRef;
|
extern long g_cDllRef;
|
||||||
@@ -205,8 +203,6 @@ IFACEMETHODIMP MarkdownPreviewHandler::Unload()
|
|||||||
|
|
||||||
IFACEMETHODIMP MarkdownPreviewHandler::SetBackgroundColor(COLORREF color)
|
IFACEMETHODIMP MarkdownPreviewHandler::SetBackgroundColor(COLORREF color)
|
||||||
{
|
{
|
||||||
HBRUSH brush = CreateSolidBrush(WindowsColors::is_dark_mode() ? powerpreviewConstants::DARK_THEME_COLOR : powerpreviewConstants::LIGHT_THEME_COLOR);
|
|
||||||
SetClassLongPtr(m_hwndParent, GCLP_HBRBACKGROUND, reinterpret_cast<LONG_PTR>(brush));
|
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -55,7 +55,7 @@
|
|||||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||||
<EnableUAC>false</EnableUAC>
|
<EnableUAC>false</EnableUAC>
|
||||||
<ModuleDefinitionFile>GlobalExportFunctions.def</ModuleDefinitionFile>
|
<ModuleDefinitionFile>GlobalExportFunctions.def</ModuleDefinitionFile>
|
||||||
<AdditionalDependencies>Shlwapi.lib;dwmapi.lib;$(CoreLibraryDependencies);%(AdditionalDependencies)</AdditionalDependencies>
|
<AdditionalDependencies>Shlwapi.lib;$(CoreLibraryDependencies);%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
</Link>
|
</Link>
|
||||||
</ItemDefinitionGroup>
|
</ItemDefinitionGroup>
|
||||||
<ItemDefinitionGroup Condition="'$(Configuration)'=='Release'">
|
<ItemDefinitionGroup Condition="'$(Configuration)'=='Release'">
|
||||||
@@ -76,7 +76,7 @@
|
|||||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||||
<EnableUAC>false</EnableUAC>
|
<EnableUAC>false</EnableUAC>
|
||||||
<ModuleDefinitionFile>GlobalExportFunctions.def</ModuleDefinitionFile>
|
<ModuleDefinitionFile>GlobalExportFunctions.def</ModuleDefinitionFile>
|
||||||
<AdditionalDependencies>Shlwapi.lib;dwmapi.lib;$(CoreLibraryDependencies);%(AdditionalDependencies)</AdditionalDependencies>
|
<AdditionalDependencies>Shlwapi.lib;$(CoreLibraryDependencies);%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
</Link>
|
</Link>
|
||||||
</ItemDefinitionGroup>
|
</ItemDefinitionGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
@@ -109,9 +109,6 @@
|
|||||||
<ProjectReference Include="..\..\..\common\SettingsAPI\SettingsAPI.vcxproj">
|
<ProjectReference Include="..\..\..\common\SettingsAPI\SettingsAPI.vcxproj">
|
||||||
<Project>{6955446d-23f7-4023-9bb3-8657f904af99}</Project>
|
<Project>{6955446d-23f7-4023-9bb3-8657f904af99}</Project>
|
||||||
</ProjectReference>
|
</ProjectReference>
|
||||||
<ProjectReference Include="..\..\..\common\Themes\Themes.vcxproj">
|
|
||||||
<Project>{98537082-0fdb-40de-abd8-0dc5a4269bab}</Project>
|
|
||||||
</ProjectReference>
|
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<None Include="Resources.resx" />
|
<None Include="Resources.resx" />
|
||||||
|
|||||||
@@ -77,11 +77,6 @@ namespace Microsoft.PowerToys.PreviewHandler.Monaco
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
private string _base64FileCode;
|
private string _base64FileCode;
|
||||||
|
|
||||||
public MonacoPreviewHandlerControl()
|
|
||||||
{
|
|
||||||
this.SetBackground();
|
|
||||||
}
|
|
||||||
|
|
||||||
[STAThread]
|
[STAThread]
|
||||||
public override void DoPreview<T>(T dataSource)
|
public override void DoPreview<T>(T dataSource)
|
||||||
{
|
{
|
||||||
@@ -100,12 +95,14 @@ namespace Microsoft.PowerToys.PreviewHandler.Monaco
|
|||||||
|
|
||||||
base.DoPreview(dataSource);
|
base.DoPreview(dataSource);
|
||||||
|
|
||||||
|
// Sets background color
|
||||||
|
SetBackground();
|
||||||
|
|
||||||
// Starts loading screen
|
// Starts loading screen
|
||||||
InitializeLoadingScreen();
|
InitializeLoadingScreen();
|
||||||
|
|
||||||
// New webview2 element
|
// New webview2 element
|
||||||
_webView = new WebView2();
|
_webView = new WebView2();
|
||||||
_webView.DefaultBackgroundColor = Color.Transparent;
|
|
||||||
|
|
||||||
// Checks if dataSource is a string
|
// Checks if dataSource is a string
|
||||||
if (!(dataSource is string filePath))
|
if (!(dataSource is string filePath))
|
||||||
|
|||||||
@@ -86,7 +86,7 @@ namespace Microsoft.PowerToys.PreviewHandler.Monaco
|
|||||||
{
|
{
|
||||||
if (GetTheme() == "dark")
|
if (GetTheme() == "dark")
|
||||||
{
|
{
|
||||||
return Color.FromArgb(30, 30, 30); // #1e1e1e
|
return System.Drawing.ColorTranslator.FromHtml("#1e1e1e");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
#include "pch.h"
|
#include "pch.h"
|
||||||
#include "MonacoPreviewHandler.h"
|
#include "MonacoPreviewHandler.h"
|
||||||
#include "../powerpreview/powerpreviewConstants.h"
|
|
||||||
|
|
||||||
#include <shellapi.h>
|
#include <shellapi.h>
|
||||||
#include <Shlwapi.h>
|
#include <Shlwapi.h>
|
||||||
@@ -10,7 +9,6 @@
|
|||||||
#include <common/logger/logger.h>
|
#include <common/logger/logger.h>
|
||||||
#include <common/SettingsAPI/settings_helpers.h>
|
#include <common/SettingsAPI/settings_helpers.h>
|
||||||
#include <common/utils/process_path.h>
|
#include <common/utils/process_path.h>
|
||||||
#include <common/Themes/windows_colors.h>
|
|
||||||
|
|
||||||
extern HINSTANCE g_hInst;
|
extern HINSTANCE g_hInst;
|
||||||
extern long g_cDllRef;
|
extern long g_cDllRef;
|
||||||
@@ -204,8 +202,6 @@ IFACEMETHODIMP MonacoPreviewHandler::Unload()
|
|||||||
|
|
||||||
IFACEMETHODIMP MonacoPreviewHandler::SetBackgroundColor(COLORREF color)
|
IFACEMETHODIMP MonacoPreviewHandler::SetBackgroundColor(COLORREF color)
|
||||||
{
|
{
|
||||||
HBRUSH brush = CreateSolidBrush(WindowsColors::is_dark_mode() ? powerpreviewConstants::DARK_THEME_COLOR : powerpreviewConstants::LIGHT_THEME_COLOR);
|
|
||||||
SetClassLongPtr(m_hwndParent, GCLP_HBRBACKGROUND, reinterpret_cast<LONG_PTR>(brush));
|
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -51,7 +51,7 @@
|
|||||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||||
<EnableUAC>false</EnableUAC>
|
<EnableUAC>false</EnableUAC>
|
||||||
<ModuleDefinitionFile>GlobalExportFunctions.def</ModuleDefinitionFile>
|
<ModuleDefinitionFile>GlobalExportFunctions.def</ModuleDefinitionFile>
|
||||||
<AdditionalDependencies>Shlwapi.lib;dwmapi.lib;$(CoreLibraryDependencies);%(AdditionalDependencies)</AdditionalDependencies>
|
<AdditionalDependencies>Shlwapi.lib;$(CoreLibraryDependencies);%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
</Link>
|
</Link>
|
||||||
</ItemDefinitionGroup>
|
</ItemDefinitionGroup>
|
||||||
<ItemDefinitionGroup Condition="'$(Configuration)'=='Release'">
|
<ItemDefinitionGroup Condition="'$(Configuration)'=='Release'">
|
||||||
@@ -72,7 +72,7 @@
|
|||||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||||
<EnableUAC>false</EnableUAC>
|
<EnableUAC>false</EnableUAC>
|
||||||
<ModuleDefinitionFile>GlobalExportFunctions.def</ModuleDefinitionFile>
|
<ModuleDefinitionFile>GlobalExportFunctions.def</ModuleDefinitionFile>
|
||||||
<AdditionalDependencies>Shlwapi.lib;dwmapi.lib;$(CoreLibraryDependencies);%(AdditionalDependencies)</AdditionalDependencies>
|
<AdditionalDependencies>Shlwapi.lib;$(CoreLibraryDependencies);%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
</Link>
|
</Link>
|
||||||
</ItemDefinitionGroup>
|
</ItemDefinitionGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
@@ -103,9 +103,6 @@
|
|||||||
<ProjectReference Include="..\..\..\common\SettingsAPI\SettingsAPI.vcxproj">
|
<ProjectReference Include="..\..\..\common\SettingsAPI\SettingsAPI.vcxproj">
|
||||||
<Project>{6955446d-23f7-4023-9bb3-8657f904af99}</Project>
|
<Project>{6955446d-23f7-4023-9bb3-8657f904af99}</Project>
|
||||||
</ProjectReference>
|
</ProjectReference>
|
||||||
<ProjectReference Include="..\..\..\common\Themes\Themes.vcxproj">
|
|
||||||
<Project>{98537082-0fdb-40de-abd8-0dc5a4269bab}</Project>
|
|
||||||
</ProjectReference>
|
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<Import Project="..\..\..\..\deps\spdlog.props" />
|
<Import Project="..\..\..\..\deps\spdlog.props" />
|
||||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ namespace SvgPreviewHandler
|
|||||||
{
|
{
|
||||||
if (Common.UI.ThemeManager.GetWindowsBaseColor().ToLowerInvariant() == "dark")
|
if (Common.UI.ThemeManager.GetWindowsBaseColor().ToLowerInvariant() == "dark")
|
||||||
{
|
{
|
||||||
return Color.FromArgb(30, 30, 30); // #1e1e1e
|
return ColorTranslator.FromHtml("#1e1e1e");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -20,11 +20,6 @@ namespace Microsoft.PowerToys.PreviewHandler.Svg
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public class SvgPreviewControl : FormHandlerControl
|
public class SvgPreviewControl : FormHandlerControl
|
||||||
{
|
{
|
||||||
/// <summary>
|
|
||||||
/// Settings class
|
|
||||||
/// </summary>
|
|
||||||
private readonly SvgPreviewHandler.Settings _settings = new();
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Generator for the actual preview file
|
/// Generator for the actual preview file
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -83,11 +78,6 @@ namespace Microsoft.PowerToys.PreviewHandler.Svg
|
|||||||
private string _webView2UserDataFolder = System.Environment.GetEnvironmentVariable("USERPROFILE") +
|
private string _webView2UserDataFolder = System.Environment.GetEnvironmentVariable("USERPROFILE") +
|
||||||
"\\AppData\\LocalLow\\Microsoft\\PowerToys\\SvgPreview-Temp";
|
"\\AppData\\LocalLow\\Microsoft\\PowerToys\\SvgPreview-Temp";
|
||||||
|
|
||||||
public SvgPreviewControl()
|
|
||||||
{
|
|
||||||
this.SetBackgroundColor(_settings.ThemeColor);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Start the preview on the Control.
|
/// Start the preview on the Control.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -209,7 +199,6 @@ namespace Microsoft.PowerToys.PreviewHandler.Svg
|
|||||||
private void AddWebViewControl(string svgData)
|
private void AddWebViewControl(string svgData)
|
||||||
{
|
{
|
||||||
_browser = new WebView2();
|
_browser = new WebView2();
|
||||||
_browser.DefaultBackgroundColor = Color.Transparent;
|
|
||||||
_browser.Dock = DockStyle.Fill;
|
_browser.Dock = DockStyle.Fill;
|
||||||
|
|
||||||
// Prevent new windows from being opened.
|
// Prevent new windows from being opened.
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
#include "pch.h"
|
#include "pch.h"
|
||||||
#include "SvgPreviewHandler.h"
|
#include "SvgPreviewHandler.h"
|
||||||
#include "../powerpreview/powerpreviewConstants.h"
|
|
||||||
|
|
||||||
#include <shellapi.h>
|
#include <shellapi.h>
|
||||||
#include <Shlwapi.h>
|
#include <Shlwapi.h>
|
||||||
@@ -10,7 +9,6 @@
|
|||||||
#include <common/logger/logger.h>
|
#include <common/logger/logger.h>
|
||||||
#include <common/SettingsAPI/settings_helpers.h>
|
#include <common/SettingsAPI/settings_helpers.h>
|
||||||
#include <common/utils/process_path.h>
|
#include <common/utils/process_path.h>
|
||||||
#include <common/Themes/windows_colors.h>
|
|
||||||
|
|
||||||
extern HINSTANCE g_hInst;
|
extern HINSTANCE g_hInst;
|
||||||
extern long g_cDllRef;
|
extern long g_cDllRef;
|
||||||
@@ -200,8 +198,6 @@ IFACEMETHODIMP SvgPreviewHandler::Unload()
|
|||||||
|
|
||||||
IFACEMETHODIMP SvgPreviewHandler::SetBackgroundColor(COLORREF color)
|
IFACEMETHODIMP SvgPreviewHandler::SetBackgroundColor(COLORREF color)
|
||||||
{
|
{
|
||||||
HBRUSH brush = CreateSolidBrush(WindowsColors::is_dark_mode() ? powerpreviewConstants::DARK_THEME_COLOR : powerpreviewConstants::LIGHT_THEME_COLOR);
|
|
||||||
SetClassLongPtr(m_hwndParent, GCLP_HBRBACKGROUND, reinterpret_cast<LONG_PTR>(brush));
|
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -51,7 +51,7 @@
|
|||||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||||
<EnableUAC>false</EnableUAC>
|
<EnableUAC>false</EnableUAC>
|
||||||
<ModuleDefinitionFile>GlobalExportFunctions.def</ModuleDefinitionFile>
|
<ModuleDefinitionFile>GlobalExportFunctions.def</ModuleDefinitionFile>
|
||||||
<AdditionalDependencies>Shlwapi.lib;dwmapi.lib;$(CoreLibraryDependencies);%(AdditionalDependencies)</AdditionalDependencies>
|
<AdditionalDependencies>Shlwapi.lib;$(CoreLibraryDependencies);%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
</Link>
|
</Link>
|
||||||
</ItemDefinitionGroup>
|
</ItemDefinitionGroup>
|
||||||
<ItemDefinitionGroup Condition="'$(Configuration)'=='Release'">
|
<ItemDefinitionGroup Condition="'$(Configuration)'=='Release'">
|
||||||
@@ -72,7 +72,7 @@
|
|||||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||||
<EnableUAC>false</EnableUAC>
|
<EnableUAC>false</EnableUAC>
|
||||||
<ModuleDefinitionFile>GlobalExportFunctions.def</ModuleDefinitionFile>
|
<ModuleDefinitionFile>GlobalExportFunctions.def</ModuleDefinitionFile>
|
||||||
<AdditionalDependencies>Shlwapi.lib;dwmapi.lib;$(CoreLibraryDependencies);%(AdditionalDependencies)</AdditionalDependencies>
|
<AdditionalDependencies>Shlwapi.lib;$(CoreLibraryDependencies);%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
</Link>
|
</Link>
|
||||||
</ItemDefinitionGroup>
|
</ItemDefinitionGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
@@ -103,9 +103,6 @@
|
|||||||
<ProjectReference Include="..\..\..\common\SettingsAPI\SettingsAPI.vcxproj">
|
<ProjectReference Include="..\..\..\common\SettingsAPI\SettingsAPI.vcxproj">
|
||||||
<Project>{6955446d-23f7-4023-9bb3-8657f904af99}</Project>
|
<Project>{6955446d-23f7-4023-9bb3-8657f904af99}</Project>
|
||||||
</ProjectReference>
|
</ProjectReference>
|
||||||
<ProjectReference Include="..\..\..\common\Themes\Themes.vcxproj">
|
|
||||||
<Project>{98537082-0fdb-40de-abd8-0dc5a4269bab}</Project>
|
|
||||||
</ProjectReference>
|
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<Import Project="..\..\..\..\deps\spdlog.props" />
|
<Import Project="..\..\..\..\deps\spdlog.props" />
|
||||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||||
|
|||||||
@@ -5,10 +5,4 @@ namespace powerpreviewConstants
|
|||||||
{
|
{
|
||||||
// Name of the powertoy module.
|
// Name of the powertoy module.
|
||||||
inline const std::wstring ModuleKey = L"File Explorer";
|
inline const std::wstring ModuleKey = L"File Explorer";
|
||||||
|
}
|
||||||
// Dark theme background color
|
|
||||||
const COLORREF DARK_THEME_COLOR = RGB(0x1e, 0x1e, 0x1e);
|
|
||||||
|
|
||||||
// Light theme background color
|
|
||||||
const COLORREF LIGHT_THEME_COLOR = RGB(0xff, 0xff, 0xff);
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user