mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-03 17:56:44 +02:00
* Added option to toggle the system tray icon At the moment, this hides the icon making the settings window inaccessible without first modifying the general `settings.json` file. * Use IPC messages to manage the tray icon settings * Fix launching second window binds to active settings process * Added context menu option to hide tray icon * Added Exit PT button to settings ui NavigationView.PaneFooter * Moved DllImports to NativeMethods.cs * Sentence case titles * Fix whitespace * Re-add exit icon to NavView * Re-added toggle switch to new UI * Fix build * Fix build after merge main * Fix the string to display * add shut down buttons * finish polish * fix string * Styling tweaks to titlebar and settingscards * fix comment * fix unit test * fix ut --------- Co-authored-by: Jaime Bernardo <jaime@janeasystems.com> Co-authored-by: vanzue <vanzue@outlook.com> Co-authored-by: Kayla Cinnamon <cinnamon@microsoft.com> Co-authored-by: Niels Laute <niels.laute@live.nl>
29 lines
796 B
C++
29 lines
796 B
C++
#pragma once
|
|
|
|
#include <common/utils/json.h>
|
|
|
|
struct GeneralSettings
|
|
{
|
|
bool isStartupEnabled;
|
|
bool showSystemTrayIcon;
|
|
std::wstring startupDisabledReason;
|
|
std::map<std::wstring, bool> isModulesEnabledMap;
|
|
bool isElevated;
|
|
bool isRunElevated;
|
|
bool isAdmin;
|
|
bool enableWarningsElevatedApps;
|
|
bool showNewUpdatesToastNotification;
|
|
bool downloadUpdatesAutomatically;
|
|
bool showWhatsNewAfterUpdates;
|
|
bool enableExperimentation;
|
|
std::wstring theme;
|
|
std::wstring systemTheme;
|
|
std::wstring powerToysVersion;
|
|
|
|
json::JsonObject to_json();
|
|
};
|
|
|
|
json::JsonObject load_general_settings();
|
|
GeneralSettings get_general_settings();
|
|
void apply_general_settings(const json::JsonObject& general_configs, bool save = true);
|
|
void start_enabled_powertoys(); |