Page 1 of 1

ListViewGadget color selected

Posted: Sun Apr 27, 2025 8:16 pm
by rndrei
How to change the color of the highlighted element?
Found in GTK, function:

Code: Select all

void
gtk_color_selection_set_current_color (
  GtkColorSelection* colorsel,
  const GdkColor* color
)
If it is she, how to perform it in Purebasic?

Re: ListViewGadget color selected

Posted: Sun Apr 27, 2025 10:32 pm
by mk-soft
Deprecated since: 3.4.

See GTK3 SetGadgetColor

Re: ListViewGadget color selected

Posted: Mon Apr 28, 2025 9:50 am
by rndrei
For some reason it doesn't work SetSelectColor - FrontColor?

Code: Select all

  gtkgadgetcolor::SetSelectedColor(#PB_Gadget_FrontColor, RGB(0,0,0))

Re: ListViewGadget color selected

Posted: Mon Apr 28, 2025 4:16 pm
by mk-soft
This is a default setting.
Then you have to set the gadget colour with SetGadgetColor.
Not all support the CSS style Selected FrontColor