mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-06 19:26:39 +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:
@@ -52,11 +52,8 @@ namespace ViewModelTests
|
||||
|
||||
string runningAsUserText = "Running as user.";
|
||||
string runningAsAdminText = "Running as Adminstrator.";
|
||||
string runningAsUser_AlwaysRunAsAdminText = "Always run as administrator";
|
||||
string runningAsAdmin_AlwaysRunAsAdminText = "Always run as administrator (Restart as administrator to change this)";
|
||||
|
||||
Assert.AreEqual(runningAsUserText, viewModel.RunningAsAdminText);
|
||||
Assert.AreEqual(runningAsAdmin_AlwaysRunAsAdminText, viewModel.AlwaysRunAsAdminText);
|
||||
Assert.IsFalse(viewModel.IsElevated);
|
||||
|
||||
// Act
|
||||
@@ -64,7 +61,6 @@ namespace ViewModelTests
|
||||
|
||||
// Assert
|
||||
Assert.AreEqual(runningAsAdminText, viewModel.RunningAsAdminText);
|
||||
Assert.AreEqual(runningAsUser_AlwaysRunAsAdminText, viewModel.AlwaysRunAsAdminText);
|
||||
Assert.IsTrue(viewModel.IsElevated);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user