Skip to content

Commit b7bd3e6

Browse files
committed
ux: apply workspace color to Move to Workspace context menu entry in launcher's tab
Signed-off-by: leo <[email protected]>
1 parent 0260672 commit b7bd3e6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Views/LauncherTabBar.axaml.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,10 +346,12 @@ private void OnTabContextRequested(object sender, ContextRequestedEventArgs e)
346346
{
347347
var dupWs = ws;
348348
var isCurrent = dupWs == vm.ActiveWorkspace;
349+
var icon = App.CreateMenuIcon(isCurrent ? "Icons.Check" : "Icons.Workspace");
350+
icon.Fill = dupWs.Brush;
349351

350352
var target = new MenuItem();
351353
target.Header = ws.Name;
352-
target.Icon = App.CreateMenuIcon(isCurrent ? "Icons.Check" : "Icons.Workspace");
354+
target.Icon = icon;
353355
target.Click += (_, ev) =>
354356
{
355357
if (!isCurrent)

0 commit comments

Comments
 (0)