Skip to content

Avalonia App: menu separators in popup menus do not adopt profile color #38

Description

@jochenwezel

Summary

In the Avalonia app, popup menu separators still do not render in the active server profile color.

This is separate from the broader Avalonia parity work. Other menu elements already adopt the profile color correctly, but the separator lines inside popup menus keep their default appearance.

Current behavior

In the Avalonia app:

  • main menu bar is colored with the active profile color
  • submenu items are also colored correctly
  • popup menu separators still render with the default gray separator styling

Expected behavior

Popup menu separators should visually match the active profile color scheme, similar to the rest of the menu UI.

Reproduction

  1. Start the Avalonia app
  2. Open a server profile that uses a distinct color scheme
  3. Open the Connection menu
  4. Observe the separator lines between menu groups

Result

The separators are still shown in the default gray style instead of the active profile color.

Notes

We already tried multiple implementation approaches in Avalonia, including:

  • styling Separator via XAML styles
  • moving styles to a broader scope
  • replacing separators with custom menu items containing a line
  • setting separator line colors directly in code

Despite that, the visible separator line in the popup menu still appears in the default style.

This suggests the popup/menu rendering path in Avalonia may not be picking up the intended styling in the same way as the normal menu item backgrounds/foregrounds.

Scope

This issue is specifically about the Avalonia app.

Follow-up idea

If Avalonia does not allow reliable separator recoloring in this menu/popup rendering path on all platforms, we should document that limitation and keep the platform default instead of forcing a visually degraded workaround.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions