Re: Black theme button
Igor Korot <[email protected]>
| Newsgroups | gmane.comp.lib.wxwindows.general |
|---|---|
| Message-ID | <CA+FnnTwmuASgcntVU-EM=WkEEGR91ctWTt9S0+bf+VL7DgWqJQ@mail.gmail.com> |
Hi, On Mon, Sep 18, 2023 at 12:22 PM Сергей Коныгин <[email protected]> wrote: > > Hi! > I experiment with a black theme. I have changed a button style in the following way: > > pButton->SetBackgroundColour( wxColour( 64, 64, 64 )); > pButton->SetForegroundColour( wxColour( 255,255,255 )); > long nStyle = pButton->GetWindowStyle(); > nStyle |= wxBORDER_NONE; > pButton->SetWindowStyle( nStyle ); What's your wx version and platform? A lot of work has been done in the "dark mode support" See if you can try the git master. Thank you. > > But the button colour doesn't change when the mouse cursor moves via the button area. If I don't change the border style the button is highlighted by light theme colour. It looks terrible. > Can I change the highlighted button colour? Or how can I catch a mouse event when it goes via the button area. > > -- > Please read https://www.wxwidgets.org/support/mlhowto.htm before posting. > --- > You received this message because you are subscribed to the Google Groups "wx-users" group. > To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. > To view this discussion on the web visit https://groups.google.com/d/msgid/wx-users/7cdba24c-e41d-43de-9621-5afbba3fa91en%40googlegroups.com. -- Please read https://www.wxwidgets.org/support/mlhowto.htm before posting. --- You received this message because you are subscribed to the Google Groups "wx-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/wx-users/CA%2BFnnTwmuASgcntVU-EM%3DWkEEGR91ctWTt9S0%2Bbf%2BVL7DgWqJQ%40mail.gmail.com.