X-Git-Url: https://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fplugins%2Fhuesaturation%2Fhuesaturation.C;h=bbaf2ca6f96f505db0206a8fca7a5e036acd24fc;hb=8565f9650b0f5c8d922bcbc001fbc9aed8cd9d56;hp=c6a232904b3132ef1a94a32ff908b6c9dec513c8;hpb=c905fabd0678fcc8ab9e32e4443ad8709adafefd;p=goodguy%2Fcinelerra.git diff --git a/cinelerra-5.1/plugins/huesaturation/huesaturation.C b/cinelerra-5.1/plugins/huesaturation/huesaturation.C index c6a23290..bbaf2ca6 100644 --- a/cinelerra-5.1/plugins/huesaturation/huesaturation.C +++ b/cinelerra-5.1/plugins/huesaturation/huesaturation.C @@ -31,6 +31,7 @@ #include "bccolors.h" #include "playback3d.h" #include "pluginvclient.h" +#include "theme.h" #include "vframe.h" #include @@ -202,7 +203,7 @@ int HueReset::handle_event() HueSliderClr::HueSliderClr(HueEffect *plugin, HueWindow *gui, int x, int y, int w, int clear) - : BC_GenericButton(x, y, w, _("⌂")) + : BC_Button(x, y, w, plugin->get_theme()->get_image_set("reset_button")) { this->plugin = plugin; this->gui = gui; @@ -226,31 +227,33 @@ int HueSliderClr::handle_event() HueWindow::HueWindow(HueEffect *plugin) - : PluginClientWindow(plugin, 370, 140, 370, 140, 0) + : PluginClientWindow(plugin, xS(370), yS(140), xS(370), yS(140), 0) { this->plugin = plugin; } void HueWindow::create_objects() { - int x = 10, y = 10, x1 = 100; - int x2 = 0; int clrBtn_w = 50; + int xs10 = xS(10), xs50 = xS(50), xs100 = xS(100), xs200 = xS(200); + int ys10 = yS(10), ys30 = yS(30), ys40 = yS(40); + int x = xs10, y = ys10, x1 = xs100; + int x2 = 0; int clrBtn_w = xs50; add_subwindow(new BC_Title(x, y, _("Hue:"))); - add_subwindow(hue = new HueSlider(plugin, x1, y, 200)); - x2 = x1 + hue->get_w() + 10; + add_subwindow(hue = new HueSlider(plugin, x1, y, xs200)); + x2 = x1 + hue->get_w() + xs10; add_subwindow(hueClr = new HueSliderClr(plugin, this, x2, y, clrBtn_w, RESET_HUV)); - y += 30; + y += ys30; add_subwindow(new BC_Title(x, y, _("Saturation:"))); - add_subwindow(saturation = new SaturationSlider(plugin, x1, y, 200)); + add_subwindow(saturation = new SaturationSlider(plugin, x1, y, xs200)); add_subwindow(satClr = new HueSliderClr(plugin, this, x2, y, clrBtn_w, RESET_SAT)); - y += 30; + y += ys30; add_subwindow(new BC_Title(x, y, _("Value:"))); - add_subwindow(value = new ValueSlider(plugin, x1, y, 200)); + add_subwindow(value = new ValueSlider(plugin, x1, y, xs200)); add_subwindow(valClr = new HueSliderClr(plugin, this, x2, y, clrBtn_w, RESET_VAL)); - y += 40; + y += ys40; add_subwindow(reset = new HueReset(plugin, this, x, y)); show_window(); flush();