diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-11-20 00:19:31 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-11-20 00:19:31 +0000 |
| commit | 492bc5579d950e08847750ee1fba1187ba00d3c3 (patch) | |
| tree | 90a0b8edc7264408e373dfaf27ac868ff531cd9a /src/wx/rgba_colour_picker.cc | |
| parent | 2daf0bd6bcbbf2937af2427726e9b15353bf0398 (diff) | |
Add button to restore image subtitle colours.
Diffstat (limited to 'src/wx/rgba_colour_picker.cc')
| -rw-r--r-- | src/wx/rgba_colour_picker.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/wx/rgba_colour_picker.cc b/src/wx/rgba_colour_picker.cc index 041c78de9..038bf97e4 100644 --- a/src/wx/rgba_colour_picker.cc +++ b/src/wx/rgba_colour_picker.cc @@ -44,3 +44,10 @@ RGBAColourPicker::colour () const wxColour const c = _picker->GetColour (); return RGBA (c.Red(), c.Green(), c.Blue(), _alpha->GetValue()); } + +void +RGBAColourPicker::set (RGBA colour) +{ + _picker->SetColour (wxColour (colour.r, colour.g, colour.b)); + _alpha->SetValue (colour.a); +} |
