Hello,
I am using latest wxWidgets master on Windows 11 using clang-20.
The default colours for wxRichTooltip when using dark theme, are not suitable for the selected dark theme.
See attached screenshot.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
Can this be seen in the "Rich tooltip" dialog of the dialogs sample? I don't see this there, but it's probably because I'm testing under Windows 10 and your screenshot is from 11?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
I can't make it happen with the dialogs sample. I do see that not all tooltips are behaving the same, not sure why.
For example, for the text control, the tooltip seems light while for the button it is dark.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
It looks to me as if the "blue" title from the "light" tooltip was kept when rendering the dark tooltip (in my initial issue report)
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
This is indeed what I see too. The reason the tooltips are different is that text control has its own, native, support for rich tooltips, which we use if possible.
How exactly does your code showing the tooltip look?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
This is the Show code:
void NewLLMEndpointWizard::ShowTipFor(const wxString& message, wxWindow* control) { m_tooltip = std::make_unique<wxRichToolTip>(_("Failed Validation"), message); m_tooltip->SetTimeout(3000); m_tooltip->SetIcon(wxICON_WARNING); m_tooltip->ShowFor(control); }
It is being called from the OnPageChanging event of the Wizard:
void NewLLMEndpointWizard::OnPageChanging(wxWizardEvent& event) { event.Skip(); if (!event.GetDirection()) { return; } if (event.GetPage() == m_wizardPageSettings) { // Check that all settings were populated. bool is_ok = IsValidURL(m_textCtrlBaseURL->GetValue().ToStdString(wxConvUTF8)); if (!is_ok) { ShowTipFor(_("Invalid URL"), m_textCtrlBaseURL); event.Veto(); event.Skip(false); return; } if (m_textCtrlModel->IsEmpty()) { ShowTipFor(_("Please choose a model"), m_textCtrlModel); event.Veto(); event.Skip(false); return; } } else if (event.GetPage() == m_wizardPageAPI) { // API key is not needed for Ollama Local wxString provider = m_choiceProviders->GetStringSelection(); if (provider == kProviderOllamaLocal) { return; } if (m_textCtrlAPIKey->IsEmpty()) { wxString message; message << _("API Key is required for provider: ") << provider; ShowTipFor(message, m_choiceProviders); event.Veto(); event.Skip(false); return; } } }
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
Very strange, it really looks like this should be reproducible in the sample by selecting "timeout 3d" and "warning" in the dialog and showing tooltip for the text — but it isn't.
If you could please make a minimal patch to the sample showing the problem, it would help a lot with debugging it.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
Hi @vadz look at ShowFor Method and m_canUseNative at
https://github.com/wxWidgets/wxWidgets/blob/master/src/msw/richtooltip.cpp#L150
you need to handel native tooltip created by Edit_ShowBalloonTip at MSWOnNotify
https://github.com/user-attachments/assets/16d06a0d-85bf-4dc0-a8ac-9203e6c30977
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()