mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-06 11:16:51 +02:00
[Settings] Various UX tweaks (#2822)
* Updated the add button styles to a standard used in W10 settings * Updated the "About this feature" text to About [Module name] * Set larger changes to the Shortcut Guide opacity numberbox * Re-organised the General page * Improved width of the add button so it's inline with the corresponding listview. * Seperated warning label from header. Re-organised general settings * Consistent formatting of the word 'administrator' * Typo fix * Warning text is collapsed when the user runs the app as admin * Removed underline of version number * XAML fix
This commit is contained in:
@@ -126,26 +126,6 @@ namespace Microsoft.PowerToys.Settings.UI.ViewModels
|
||||
}
|
||||
}
|
||||
|
||||
public string AlwaysRunAsAdminText
|
||||
{
|
||||
get
|
||||
{
|
||||
if (IsElevated)
|
||||
{
|
||||
return loader.GetString("GeneralSettings_AlwaysRunAsAdminText_IsElevated");
|
||||
}
|
||||
else
|
||||
{
|
||||
return loader.GetString("GeneralSettings_AlwaysRunAsAdminText_IsNotElevated");
|
||||
}
|
||||
}
|
||||
|
||||
set
|
||||
{
|
||||
OnPropertyChanged("AlwaysRunAsAdminText");
|
||||
}
|
||||
}
|
||||
|
||||
// Gets or sets a value indicating whether run powertoys on start-up.
|
||||
public bool Startup
|
||||
{
|
||||
@@ -200,7 +180,7 @@ namespace Microsoft.PowerToys.Settings.UI.ViewModels
|
||||
_isElevated = value;
|
||||
OnPropertyChanged("IsElevated");
|
||||
OnPropertyChanged("IsAdminButtonEnabled");
|
||||
OnPropertyChanged("AlwaysRunAsAdminText");
|
||||
//OnPropertyChanged("AlwaysRunAsAdminText");
|
||||
OnPropertyChanged("RunningAsAdminText");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user