Skip to content

Fix/5009 titlebar search text styling#5047

Merged
Gabriel Dufresne (GabrielDuf) merged 2 commits into
mainfrom
fix/5009-titlebar-search-text-styling
Jul 6, 2026
Merged

Fix/5009 titlebar search text styling#5047
Gabriel Dufresne (GabrielDuf) merged 2 commits into
mainfrom
fix/5009-titlebar-search-text-styling

Conversation

@GabrielDuf

Copy link
Copy Markdown
Contributor

This pull request improves the visual consistency and accessibility of placeholder text and title bar elements in the UI, aligning them more closely with WinUI standards. The main changes include introducing theme-specific placeholder colors, making placeholder opacity consistent, and updating title bar and sidebar styling for better focus indication and readability.

Placeholder Text Styling Improvements:

  • Added SearchBoxPlaceholderForeground and MegaQueryPlaceholderForeground resources in Styles.Common.axaml for both light and dark themes, ensuring appropriate placeholder color contrast and weight matching WinUI conventions.
  • Applied the new placeholder foreground resources to the global search box and the main "mega query" search box, ensuring consistent placeholder appearance across the app.
  • Set TextControlPlaceholderOpacity to 1 in relevant TextBox resources, so placeholder text displays at full intended brightness, matching WinUI behavior.

Title Bar and Window Focus Enhancements:

  • Removed hard-coded opacity from title bar elements and sidebar window buttons, and implemented SetupTitleBarFocusOpacity() in MainWindow.axaml.cs to dynamically adjust opacity based on window focus, giving a clear visual cue when the window is active or inactive.
    Sidebar and Search Box Font Weight Adjustments:

  • Changed several sidebar and search box text elements from SemiBold to Normal font weight for improved consistency and readability.

@GabrielDuf Gabriel Dufresne (GabrielDuf) linked an issue Jul 6, 2026 that may be closed by this pull request
4 tasks
@GabrielDuf Gabriel Dufresne (GabrielDuf) merged commit 74f85d3 into main Jul 6, 2026
3 checks passed
@GabrielDuf Gabriel Dufresne (GabrielDuf) deleted the fix/5009-titlebar-search-text-styling branch July 6, 2026 17:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Incorrect Text Styling in New UI

2 participants