Skip to content

Fix search dropdown theming#19987

Open
carlos-zamora wants to merge 2 commits intomainfrom
dev/cazamor/search/bugfix-theme
Open

Fix search dropdown theming#19987
carlos-zamora wants to merge 2 commits intomainfrom
dev/cazamor/search/bugfix-theme

Conversation

@carlos-zamora
Copy link
Member

Summary of the Pull Request

Popups are in their own separate tree, so we had to find it and set the theme ourselves.

Validation Steps Performed

Prereq: Windows theme = light + terminal theme = dark
✅ settings search dropdown is dark theme

Closes #19927

@github-project-automation github-project-automation bot moved this to To Cherry Pick in 1.25 Servicing Pipeline Mar 17, 2026
@carlos-zamora carlos-zamora moved this from To Cherry Pick to To Consider in 1.25 Servicing Pipeline Mar 17, 2026
Comment on lines +378 to +380
const auto& theme = _settingsSource.GlobalSettings().CurrentTheme();
const bool hasThemeForSettings{ theme.Settings() != nullptr };
const auto& requestedTheme = hasThemeForSettings ? theme.Settings().RequestedTheme() : theme.RequestedTheme();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
const auto& theme = _settingsSource.GlobalSettings().CurrentTheme();
const bool hasThemeForSettings{ theme.Settings() != nullptr };
const auto& requestedTheme = hasThemeForSettings ? theme.Settings().RequestedTheme() : theme.RequestedTheme();
const auto theme = _settingsSource.GlobalSettings().CurrentTheme();
const auto hasThemeForSettings{ theme.Settings() != nullptr };
const auto requestedTheme = hasThemeForSettings ? theme.Settings().RequestedTheme() : theme.RequestedTheme();


// GH#19927 - Theme the search box's internal popup now that the
// visual tree is ready and control templates are applied
const auto& theme = _settingsSource.GlobalSettings().CurrentTheme();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(is it guaranteed that there is a theme?)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: To Consider

Development

Successfully merging this pull request may close these issues.

Settings search dropdown follows system theme and not app theme

2 participants