Add support for alpha channel in wxColourDialog (wxGTK).
Showing opacity slider is controlled by wxColourData::GetChooseAlpha().
This commit is contained in:
@@ -65,6 +65,7 @@ bool wxColourDialog::Create(wxWindow *parent, wxColourData *data)
|
|||||||
gtk_color_selection_dialog_get_color_selection(
|
gtk_color_selection_dialog_get_color_selection(
|
||||||
GTK_COLOR_SELECTION_DIALOG(m_widget)));
|
GTK_COLOR_SELECTION_DIALOG(m_widget)));
|
||||||
gtk_color_selection_set_has_palette(sel, true);
|
gtk_color_selection_set_has_palette(sel, true);
|
||||||
|
gtk_color_selection_set_has_opacity_control(sel, m_data.GetChooseAlpha());
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user