diff --git a/src/modules/cmdpal/Microsoft.CmdPal.UI.ViewModels/Properties/Resources.Designer.cs b/src/modules/cmdpal/Microsoft.CmdPal.UI.ViewModels/Properties/Resources.Designer.cs
index 4562386ead..025e72a475 100644
--- a/src/modules/cmdpal/Microsoft.CmdPal.UI.ViewModels/Properties/Resources.Designer.cs
+++ b/src/modules/cmdpal/Microsoft.CmdPal.UI.ViewModels/Properties/Resources.Designer.cs
@@ -484,7 +484,7 @@ namespace Microsoft.CmdPal.UI.ViewModels.Properties {
}
///
- /// Looks up a localized string similar to Edit dock.
+ /// Looks up a localized string similar to Edit Dock.
///
public static string dock_edit_dock_name {
get {
@@ -511,7 +511,7 @@ namespace Microsoft.CmdPal.UI.ViewModels.Properties {
}
///
- /// Looks up a localized string similar to Dock settings.
+ /// Looks up a localized string similar to Settings.
///
public static string dock_settings_name {
get {
diff --git a/src/modules/cmdpal/Microsoft.CmdPal.UI.ViewModels/Properties/Resources.resx b/src/modules/cmdpal/Microsoft.CmdPal.UI.ViewModels/Properties/Resources.resx
index 62b366a80c..686bed066e 100644
--- a/src/modules/cmdpal/Microsoft.CmdPal.UI.ViewModels/Properties/Resources.resx
+++ b/src/modules/cmdpal/Microsoft.CmdPal.UI.ViewModels/Properties/Resources.resx
@@ -277,11 +277,11 @@
Fallbacks
- Edit dock
+ Edit DockCommand name for editing the dock
- Dock settings
+ SettingsCommand name for opening dock settings
diff --git a/src/modules/cmdpal/Microsoft.CmdPal.UI/Dock/DockControl.xaml b/src/modules/cmdpal/Microsoft.CmdPal.UI/Dock/DockControl.xaml
index ccfbbc8a22..8f8341ac5c 100644
--- a/src/modules/cmdpal/Microsoft.CmdPal.UI/Dock/DockControl.xaml
+++ b/src/modules/cmdpal/Microsoft.CmdPal.UI/Dock/DockControl.xaml
@@ -1,4 +1,4 @@
-
+
-
+
+ x:Uid="Dock_EditMode_ShowTitles"
+ Click="ShowTitlesMenuItem_Click" />
+ x:Uid="Dock_EditMode_ShowSubtitles"
+ Click="ShowSubtitlesMenuItem_Click" />
+ x:Uid="Dock_EditMode_Unpin"
+ Click="UnpinBandMenuItem_Click">
@@ -140,9 +140,9 @@
@@ -221,9 +224,12 @@
@@ -247,8 +254,11 @@
@@ -281,7 +292,6 @@
ShouldConstrainToRootBounds="False"
Style="{StaticResource TeachingTipWithoutCloseButtonStyle}"
Target="{x:Bind ContentGrid}">
-
+ Click="DiscardEditingButton_Click" />
@@ -328,6 +338,9 @@
+
+
+
@@ -342,6 +355,9 @@
+
+
+
diff --git a/src/modules/cmdpal/Microsoft.CmdPal.UI/Dock/DockControl.xaml.cs b/src/modules/cmdpal/Microsoft.CmdPal.UI/Dock/DockControl.xaml.cs
index 83043e2945..3b4249a8f6 100644
--- a/src/modules/cmdpal/Microsoft.CmdPal.UI/Dock/DockControl.xaml.cs
+++ b/src/modules/cmdpal/Microsoft.CmdPal.UI/Dock/DockControl.xaml.cs
@@ -76,7 +76,7 @@ public sealed partial class DockControl : UserControl, IRecipient
-
+ SetValue(ToolTipProperty, value);
}
+ private static void OnToolTipPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
+ {
+ if (d is DockItemControl control)
+ {
+ // Collapse the tooltip when the string is null or empty so an
+ // empty tooltip bubble doesn't appear on hover.
+ var text = e.NewValue as string;
+ ToolTipService.SetToolTip(control, string.IsNullOrEmpty(text) ? null : text);
+ }
+ }
+
public static readonly DependencyProperty TitleProperty =
DependencyProperty.Register(nameof(Title), typeof(string), typeof(DockItemControl), new PropertyMetadata(null, OnTextPropertyChanged));
diff --git a/src/modules/cmdpal/Microsoft.CmdPal.UI/Dock/DockSettingsToViews.cs b/src/modules/cmdpal/Microsoft.CmdPal.UI/Dock/DockSettingsToViews.cs
index e8e0e0310e..2a1f0396ef 100644
--- a/src/modules/cmdpal/Microsoft.CmdPal.UI/Dock/DockSettingsToViews.cs
+++ b/src/modules/cmdpal/Microsoft.CmdPal.UI/Dock/DockSettingsToViews.cs
@@ -25,24 +25,13 @@ internal static class DockSettingsToViews
{
return size switch
{
- DockSize.Small => 32,
+ DockSize.Small => 38,
DockSize.Medium => 54,
DockSize.Large => 76,
_ => throw new NotImplementedException(),
};
}
- public static double IconSizeForSize(DockSize size)
- {
- return size switch
- {
- DockSize.Small => 32 / 2,
- DockSize.Medium => 54 / 2,
- DockSize.Large => 76 / 2,
- _ => throw new NotImplementedException(),
- };
- }
-
public static Microsoft.UI.Xaml.Media.SystemBackdrop? GetSystemBackdrop(DockBackdrop backdrop)
{
return backdrop switch
diff --git a/src/modules/cmdpal/Microsoft.CmdPal.UI/Settings/DockSettingsPage.xaml b/src/modules/cmdpal/Microsoft.CmdPal.UI/Settings/DockSettingsPage.xaml
index 8643892554..8219a65860 100644
--- a/src/modules/cmdpal/Microsoft.CmdPal.UI/Settings/DockSettingsPage.xaml
+++ b/src/modules/cmdpal/Microsoft.CmdPal.UI/Settings/DockSettingsPage.xaml
@@ -21,7 +21,7 @@
-
+
-->
+
diff --git a/src/modules/cmdpal/Microsoft.CmdPal.UI/Settings/GeneralPage.xaml b/src/modules/cmdpal/Microsoft.CmdPal.UI/Settings/GeneralPage.xaml
index bb3110deb3..04d9c9003f 100644
--- a/src/modules/cmdpal/Microsoft.CmdPal.UI/Settings/GeneralPage.xaml
+++ b/src/modules/cmdpal/Microsoft.CmdPal.UI/Settings/GeneralPage.xaml
@@ -19,7 +19,7 @@
-
+ -->
+ Disable animations when switching between pages
-
+
Enable Dock
@@ -757,23 +757,17 @@ Right-click to remove the key combination, thereby deactivating the shortcut.
Version {0}
-
- Dock Appearance
-
-
- Dock Appearance
-
- Dock theme mode
+ Theme mode
- Select which theme to display for the dock
+ Select which theme to displayMaterial
- Select the visual material used for the dock
+ Select the visual materialMica
@@ -882,17 +876,17 @@ Right-click to remove the key combination, thereby deactivating the shortcut.K
Keyboard key
-
+
Configure shortcutAssign shortcut
- Dock position
+ Position
- Choose where the dock appears on your screen
+ Choose where the Dock appears on your screenLeft
@@ -906,12 +900,6 @@ Right-click to remove the key combination, thereby deactivating the shortcut.
Bottom
-
- Show labels
-
-
- Show labels for dock items by default
-
Pin to homeCommand name for pinning an item to the top level list of commands
@@ -921,11 +909,11 @@ Right-click to remove the key combination, thereby deactivating the shortcut.Command name for unpinning an item from the top level list of commands
- Pin to dock
+ Pin to DockCommand name for pinning an item to the dock
- Unpin from dock
+ Unpin from DockCommand name for unpinning an item from the dock
@@ -949,4 +937,40 @@ Right-click to remove the key combination, thereby deactivating the shortcut.
No results
+
+ Labels
+
+
+ Show titles
+
+
+ Show subtitles
+
+
+ Unpin
+
+
+ No commands available to pin
+
+
+ Add band to start
+
+
+ Add band to center
+
+
+ Add band to end
+
+
+ Save
+
+
+ Discard
+
+
+ Learn more about Command Palette
+
+
+ Learn more about Command Palette Dock
+
\ No newline at end of file