3 * CINELERRA unflat theme
4 * Based on S.U.V. theme
6 * Copyright (C) 1997-2014 Adam Williams <broadcast at earthling dot net>
7 * by Paolo Rampino <info at tuttoainternet dot it>
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
25 #include "bcsignals.h"
27 #include "cwindowgui.h"
28 #include "unflattheme.h"
30 #include "edlsession.h"
32 #include "mainsession.h"
34 #include "meterpanel.h"
36 #include "mwindowgui.h"
39 #include "preferencesthread.h"
40 #include "recordgui.h"
41 #include "recordmonitor.h"
42 #include "setformat.h"
43 #include "statusbar.h"
45 #include "trackcanvas.h"
47 #include "vwindowgui.h"
52 PluginClient* new_plugin(PluginServer *server)
54 return new UNFLATTHEMEMain(server);
57 UNFLATTHEMEMain::UNFLATTHEMEMain(PluginServer *server)
58 : PluginTClient(server)
62 UNFLATTHEMEMain::~UNFLATTHEMEMain()
66 const char* UNFLATTHEMEMain::plugin_title()
71 Theme* UNFLATTHEMEMain::new_theme()
73 theme = new UNFLATTHEME;
74 extern unsigned char _binary_theme_unflat_data_start[];
75 theme->set_data(_binary_theme_unflat_data_start);
86 UNFLATTHEME::UNFLATTHEME()
91 UNFLATTHEME::~UNFLATTHEME()
93 delete camerakeyframe_data;
94 delete channel_position_data;
96 delete maskkeyframe_data;
97 delete modekeyframe_data;
98 delete pankeyframe_data;
99 delete projectorkeyframe_data;
102 void UNFLATTHEME::initialize()
104 BC_Resources *resources = BC_WindowBase::get_resources();
107 resources->text_default = 0xbfbfbf;
108 resources->text_background = 0x333333;
109 resources->text_border1 = 0x202020;
110 resources->text_border2 = 0x333333;
111 resources->text_border3 = 0x333333;
112 resources->text_border4 = 0x969696;
113 resources->text_inactive_highlight = 0x707070;
115 resources->bg_color = 0x4d4d4d;
116 resources->border_light2 = resources->bg_color;
117 resources->border_shadow2 = resources->bg_color;
118 resources->default_text_color = 0xbfbfbf;
119 resources->menu_title_text = 0xbfbfbf;
120 resources->popup_title_text = 0xbfbfbf;
121 resources->menu_item_text = 0xbfbfbf;
122 resources->menu_highlighted_fontcolor = WHITE;
123 resources->generic_button_margin = 30;
124 resources->pot_needle_color = resources->text_default;
125 resources->pot_offset = 1;
126 resources->progress_text = resources->text_default;
127 resources->meter_font_color = resources->default_text_color;
129 resources->menu_light = 0xababab;
130 resources->menu_highlighted = 0x6f6f6f;
131 resources->menu_down = 0x4b4b4b;
132 resources->menu_up = 0x4b4b4b;
133 resources->menu_shadow = 0x202020;
134 resources->popupmenu_margin = 15;
135 resources->popupmenu_triangle_margin = 15;
137 resources->listbox_title_color = 0xbfbfbf;
139 resources->listbox_title_margin = 20;
140 resources->listbox_title_hotspot = 20;
141 resources->listbox_border1 = 0x1a1a1a;
142 resources->listbox_border2 = 0x333333;
143 resources->listbox_border3 = 0x333333;
144 resources->listbox_border4 = 0x646464;
145 resources->listbox_highlighted = 0x505050;
146 resources->listbox_inactive = 0x333333;
147 resources->listbox_bg = 0;
148 resources->listbox_text = 0xbfbfbf;
150 resources->filebox_margin = 130;
151 resources->file_color = 0xbfbfbf;
152 resources->directory_color = 0xa0a0ff;
155 new_toggle("loadmode_new.png",
158 "loadmode_checked.png",
160 "loadmode_checkedhi.png",
162 new_toggle("loadmode_none.png",
165 "loadmode_checked.png",
167 "loadmode_checkedhi.png",
169 new_toggle("loadmode_newcat.png",
172 "loadmode_checked.png",
174 "loadmode_checkedhi.png",
176 new_toggle("loadmode_cat.png",
179 "loadmode_checked.png",
181 "loadmode_checkedhi.png",
183 new_toggle("loadmode_newtracks.png",
186 "loadmode_checked.png",
188 "loadmode_checkedhi.png",
189 "loadmode_newtracks");
190 new_toggle("loadmode_paste.png",
193 "loadmode_checked.png",
195 "loadmode_checkedhi.png",
197 new_toggle("loadmode_resource.png",
200 "loadmode_checked.png",
202 "loadmode_checkedhi.png",
203 "loadmode_resource");
204 new_toggle("loadmode_nested.png",
207 "loadmode_checked.png",
209 "loadmode_checkedhi.png",
213 resources->filebox_icons_images = new_button("icons.png",
214 "fileboxbutton_up.png",
215 "fileboxbutton_hi.png",
216 "fileboxbutton_dn.png",
219 resources->filebox_text_images = new_button("text.png",
220 "fileboxbutton_up.png",
221 "fileboxbutton_hi.png",
222 "fileboxbutton_dn.png",
225 resources->filebox_newfolder_images = new_button("folder.png",
226 "fileboxbutton_up.png",
227 "fileboxbutton_hi.png",
228 "fileboxbutton_dn.png",
229 "filebox_newfolder");
231 resources->filebox_rename_images = new_button("rename.png",
232 "fileboxbutton_up.png",
233 "fileboxbutton_hi.png",
234 "fileboxbutton_dn.png",
237 resources->filebox_updir_images = new_button("updir.png",
238 "fileboxbutton_up.png",
239 "fileboxbutton_hi.png",
240 "fileboxbutton_dn.png",
243 resources->filebox_delete_images = new_button("delete.png",
244 "fileboxbutton_up.png",
245 "fileboxbutton_hi.png",
246 "fileboxbutton_dn.png",
249 resources->filebox_reload_images = new_button("reload.png",
250 "fileboxbutton_up.png",
251 "fileboxbutton_hi.png",
252 "fileboxbutton_dn.png",
256 resources->filebox_descend_images = new_button("openfolder.png",
257 "filebox_bigbutton_up.png",
258 "filebox_bigbutton_hi.png",
259 "filebox_bigbutton_dn.png",
262 resources->usethis_button_images =
263 resources->ok_images = new_button("ok.png",
264 "filebox_bigbutton_up.png",
265 "filebox_bigbutton_hi.png",
266 "filebox_bigbutton_dn.png",
270 "new_bigbutton_up.png",
271 "new_bigbutton_hi.png",
272 "new_bigbutton_dn.png",
275 resources->cancel_images = new_button("cancel.png",
276 "filebox_bigbutton_up.png",
277 "filebox_bigbutton_hi.png",
278 "filebox_bigbutton_dn.png",
281 new_button("cancel.png",
282 "new_bigbutton_up.png",
283 "new_bigbutton_hi.png",
284 "new_bigbutton_dn.png",
285 "new_cancel_images");
287 resources->medium_7segment = new_image_set(TOTAL_7SEGMENT,
309 resources->bar_data = new_image("bar", "bar.png");
310 resources->check = new_image("check", "check.png");
312 resources->min_menu_w = 96;
313 resources->menu_popup_bg = new_image("menu_popup_bg.png");
314 resources->menu_item_bg = new_image_set(3,
318 resources->menu_bar_bg = new_image("menubar_bg.png");
319 resources->menu_title_bg = new_image_set(3,
325 resources->popupmenu_images = 0;
327 // "menupopup_up.png",
328 // "menupopup_hi.png",
329 // "menupopup_dn.png");
331 resources->toggle_highlight_bg = new_image("toggle_highlight_bg",
332 "text_highlight.png");
334 resources->generic_button_images = new_image_set(3,
338 resources->horizontal_slider_data = new_image_set(6,
344 "hslider_bg_dn.png");
345 resources->vertical_slider_data = new_image_set(6,
351 "hslider_bg_dn.png");
352 for( int i=0; i<6; ++i )
353 resources->vertical_slider_data[i]->rotate90();
355 resources->progress_images = new_image_set(2,
358 resources->tumble_data = new_image_set(4,
363 resources->listbox_button = new_button4("listbox_button.png",
369 resources->listbox_column = new_image_set(3,
373 resources->listbox_up = new_image("listbox_up.png");
374 resources->listbox_dn = new_image("listbox_dn.png");
375 resources->pan_data = new_image_set(7,
381 "pan_channel_small.png",
382 "pan_stick_small.png");
383 resources->pan_text_color = WHITE;
385 resources->pot_images = new_image_set(3,
390 resources->checkbox_images = new_image_set(5,
393 "checkbox_checked.png",
395 "checkbox_checkedhi.png");
397 resources->radial_images = new_image_set(5,
400 "radial_checked.png",
402 "radial_checkedhi.png");
404 resources->xmeter_images = new_image_set(7,
412 resources->ymeter_images = new_image_set(7,
421 resources->hscroll_data = new_image_set(10,
422 "hscroll_handle_up.png",
423 "hscroll_handle_hi.png",
424 "hscroll_handle_dn.png",
425 "hscroll_handle_bg.png",
426 "hscroll_left_up.png",
427 "hscroll_left_hi.png",
428 "hscroll_left_dn.png",
429 "hscroll_right_up.png",
430 "hscroll_right_hi.png",
431 "hscroll_right_dn.png");
433 resources->vscroll_data = new_image_set(10,
434 "vscroll_handle_up.png",
435 "vscroll_handle_hi.png",
436 "vscroll_handle_dn.png",
437 "vscroll_handle_bg.png",
438 "vscroll_left_up.png",
439 "vscroll_left_hi.png",
440 "vscroll_left_dn.png",
441 "vscroll_right_up.png",
442 "vscroll_right_hi.png",
443 "vscroll_right_dn.png");
444 resources->scroll_minhandle = 20;
447 new_button("prevtip.png", "tipbutton_up.png", "tipbutton_hi.png", "tipbutton_dn.png", "prev_tip");
448 new_button("nexttip.png", "tipbutton_up.png", "tipbutton_hi.png", "tipbutton_dn.png", "next_tip");
449 new_button("closetip.png", "tipbutton_up.png", "tipbutton_hi.png", "tipbutton_dn.png", "close_tip");
450 new_button("swap_extents.png",
460 preferences_category_overlap = 0;
461 preferencescategory_x = 0;
462 preferencescategory_y = 5;
463 preferencestitle_x = 5;
464 preferencestitle_y = 10;
465 preferencesoptions_x = 5;
466 preferencesoptions_y = 0;
469 message_normal = resources->text_default;
471 mtransport_margin = 10;
474 new_button("pane.png", "pane_up.png", "pane_hi.png", "pane_dn.png", "pane");
475 new_image_set("xpane", 3, "xpane_up.png", "xpane_hi.png", "xpane_dn.png");
476 new_image_set("ypane", 3, "ypane_up.png", "ypane_hi.png", "ypane_dn.png");
478 new_image("mbutton_bg", "mbutton_bg.png");
479 new_image("timebar_bg", "timebar_bg_flat.png");
480 new_image("timebar_brender", "timebar_brender.png");
481 new_image("clock_bg", "mclock_flat.png");
482 new_image("patchbay_bg", "patchbay_bg.png");
483 new_image("statusbar", "statusbar.png");
484 // new_image("mscroll_filler", "mscroll_filler.png");
486 new_image_set("zoombar_menu", 3, "zoompopup_up.png", "zoompopup_hi.png", "zoompopup_dn.png");
487 new_image_set("zoombar_tumbler", 4, "zoomtumble_up.png", "zoomtumble_hi.png", "zoomtumble_bottom.png", "zoomtumble_top.png");
489 new_image_set("mode_popup", 3, "mode_up.png", "mode_hi.png", "mode_dn.png");
490 new_image("mode_add", "mode_add.png");
491 new_image("mode_divide", "mode_divide.png");
492 new_image("mode_multiply", "mode_multiply.png");
493 new_image("mode_normal", "mode_normal.png");
494 new_image("mode_replace", "mode_replace.png");
495 new_image("mode_subtract", "mode_subtract.png");
496 new_image("mode_max", "mode_max.png");
498 new_image_set("plugin_on", 5, "plugin_on.png", "plugin_onhi.png", "plugin_onselect.png", "plugin_ondn.png", "plugin_onselecthi.png");
499 new_image_set("plugin_show", 5, "plugin_show.png", "plugin_showhi.png", "plugin_showselect.png", "plugin_showdn.png", "plugin_showselecthi.png");
502 new_image("cpanel_bg", "cpanel_bg.png");
503 new_image("cbuttons_left", "cbuttons_left.png");
504 new_image("cbuttons_right", "cbuttons_right.png");
505 new_image("cmeter_bg", "cmeter_bg.png");
508 new_image("vbuttons_left", "vbuttons_left.png");
509 new_image("vclock", "vclock.png");
511 new_image("preferences_bg", "preferences_bg.png");
514 new_image("new_bg", "new_bg.png");
515 new_image("setformat_bg", "setformat_bg.png");
518 timebar_view_data = new_image("timebar_view.png");
520 setformat_w = get_image("setformat_bg")->get_w();
521 setformat_h = get_image("setformat_bg")->get_h();
530 setformat_margin = 30;
531 setformat_channels_x = 25;
532 setformat_channels_y = 242;
533 setformat_channels_w = 250;
534 setformat_channels_h = 250;
536 loadfile_pad = get_image_set("loadmode_new")[0]->get_h() + 10;
540 new_toggle("playpatch.png",
543 "playpatch_checked.png",
545 "playpatch_checkedhi.png",
548 new_toggle("recordpatch.png",
549 "recordpatch_up.png",
550 "recordpatch_hi.png",
551 "recordpatch_checked.png",
552 "recordpatch_dn.png",
553 "recordpatch_checkedhi.png",
556 new_toggle("gangpatch.png",
561 "patch_checkedhi.png",
564 new_toggle("drawpatch.png",
569 "patch_checkedhi.png",
573 new_image_set("mutepatch_data",
577 "mutepatch_checked.png",
579 "mutepatch_checkedhi.png");
581 new_image_set("expandpatch_data",
583 "expandpatch_up.png",
584 "expandpatch_hi.png",
585 "expandpatch_checked.png",
586 "expandpatch_dn.png",
587 "expandpatch_checkedhi.png");
595 out_point = new_image_set(5,
600 "out_checkedhi.png");
601 in_point = new_image_set(5,
608 label_toggle = new_image_set(5,
609 "labeltoggle_up.png",
610 "labeltoggle_uphi.png",
612 "labeltoggle_dn.png",
613 "label_checkedhi.png");
615 ffmpeg_toggle = new_image_set(5,
622 shbtn_data = new_image_set(3,
627 new_image_set("preset_edit",
633 new_image_set("histogram_carrot",
635 "histogram_carrot_up.png",
636 "histogram_carrot_hi.png",
637 "histogram_carrot_checked.png",
638 "histogram_carrot_dn.png",
639 "histogram_carrot_checkedhi.png");
642 statusbar_cancel_data = new_image_set(3,
643 "statusbar_cancel_up.png",
644 "statusbar_cancel_hi.png",
645 "statusbar_cancel_dn.png");
648 VFrame *editpanel_up = new_image("editpanel_up.png");
649 VFrame *editpanel_hi = new_image("editpanel_hi.png");
650 VFrame *editpanel_dn = new_image("editpanel_dn.png");
651 VFrame *editpanel_checked = new_image("editpanel_checked.png");
652 VFrame *editpanel_checkedhi = new_image("editpanel_checkedhi.png");
654 new_image("panel_divider", "panel_divider.png");
655 new_button("bottom_justify.png", editpanel_up, editpanel_hi, editpanel_dn, "bottom_justify");
656 new_button("center_justify.png", editpanel_up, editpanel_hi, editpanel_dn, "center_justify");
657 new_button("channel.png", editpanel_up, editpanel_hi, editpanel_dn, "channel");
659 new_toggle("histogram_toggle.png",
666 new_toggle("histogram_rgb.png",
672 "histogram_rgb_toggle");
673 new_toggle("waveform.png",
680 new_toggle("waveform_rgb.png",
686 "waveform_rgb_toggle");
687 new_toggle("scope.png",
695 new_button("picture.png", editpanel_up, editpanel_hi, editpanel_dn, "picture");
696 new_button("histogram_img.png", editpanel_up, editpanel_hi, editpanel_dn, "histogram_img");
699 new_button("copy.png", editpanel_up, editpanel_hi, editpanel_dn, "copy");
700 new_button("commercial.png", editpanel_up, editpanel_hi, editpanel_dn, "commercial");
701 new_button("cut.png", editpanel_up, editpanel_hi, editpanel_dn, "cut");
702 new_button("fit.png", editpanel_up, editpanel_hi, editpanel_dn, "fit");
703 new_button("fitautos.png", editpanel_up, editpanel_hi, editpanel_dn, "fitautos");
704 new_button("inpoint.png", editpanel_up, editpanel_hi, editpanel_dn, "inbutton");
705 new_button("label.png", editpanel_up, editpanel_hi, editpanel_dn, "labelbutton");
706 new_button("left_justify.png", editpanel_up, editpanel_hi, editpanel_dn, "left_justify");
707 new_button("magnify.png", editpanel_up, editpanel_hi, editpanel_dn, "magnify_button");
708 new_button("middle_justify.png", editpanel_up, editpanel_hi, editpanel_dn, "middle_justify");
709 new_button("nextlabel.png", editpanel_up, editpanel_hi, editpanel_dn, "nextlabel");
710 new_button("prevlabel.png", editpanel_up, editpanel_hi, editpanel_dn, "prevlabel");
711 new_button("nextedit.png", editpanel_up, editpanel_hi, editpanel_dn, "nextedit");
712 new_button("prevedit.png", editpanel_up, editpanel_hi, editpanel_dn, "prevedit");
713 new_button("outpoint.png", editpanel_up, editpanel_hi, editpanel_dn, "outbutton");
714 over_button = new_button("over.png", editpanel_up, editpanel_hi, editpanel_dn,"overbutton");
715 overwrite_data = new_button("overwrite.png", editpanel_up, editpanel_hi, editpanel_dn,"overwritebutton");
716 new_button("paste.png", editpanel_up, editpanel_hi, editpanel_dn, "paste");
717 new_button("redo.png", editpanel_up, editpanel_hi, editpanel_dn, "redo");
718 new_button("right_justify.png", editpanel_up, editpanel_hi, editpanel_dn, "right_justify");
719 splice_data = new_button("splice.png", editpanel_up, editpanel_hi, editpanel_dn,"splicebutton");
720 new_button("toclip.png", editpanel_up, editpanel_hi, editpanel_dn, "toclip");
721 new_button("goto.png", editpanel_up, editpanel_hi, editpanel_dn, "goto");
722 new_button("top_justify.png", editpanel_up, editpanel_hi, editpanel_dn, "top_justify");
723 new_button("undo.png", editpanel_up, editpanel_hi, editpanel_dn, "undo");
724 new_button("wrench.png", editpanel_up, editpanel_hi, editpanel_dn, "wrench");
727 VFrame *transport_up = new_image("transportup.png");
728 VFrame *transport_hi = new_image("transporthi.png");
729 VFrame *transport_dn = new_image("transportdn.png");
731 new_button("end.png", transport_up, transport_hi, transport_dn, "end");
732 new_button("fastfwd.png", transport_up, transport_hi, transport_dn, "fastfwd");
733 new_button("fastrev.png", transport_up, transport_hi, transport_dn, "fastrev");
734 new_button("play.png", transport_up, transport_hi, transport_dn, "play");
735 new_button("framefwd.png", transport_up, transport_hi, transport_dn, "framefwd");
736 new_button("framerev.png", transport_up, transport_hi, transport_dn, "framerev");
737 new_button("pause.png", transport_up, transport_hi, transport_dn, "pause");
738 new_button("record.png", transport_up, transport_hi, transport_dn, "record");
739 new_button("singleframe.png", transport_up, transport_hi, transport_dn, "recframe");
740 new_button("reverse.png", transport_up, transport_hi, transport_dn, "reverse");
741 new_button("rewind.png", transport_up, transport_hi, transport_dn, "rewind");
742 new_button("stop.png", transport_up, transport_hi, transport_dn, "stop");
743 new_button("stop.png", transport_up, transport_hi, transport_dn, "stoprec");
748 new_image("cwindow_inactive", "cwindow_inactive.png");
749 new_image("cwindow_active", "cwindow_active.png");
753 new_image_set("category_button",
755 "preferencesbutton_dn.png",
756 "preferencesbutton_dnhi.png",
757 "preferencesbutton_dnlo.png");
759 new_image_set("category_button_checked",
761 "preferencesbutton_up.png",
762 "preferencesbutton_uphi.png",
763 "preferencesbutton_dnlo.png");
769 new_image_set("color3way_point",
775 new_toggle("arrow.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi, "arrow");
776 new_toggle("autokeyframe.png", transport_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi, "autokeyframe");
777 new_toggle("ibeam.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi, "ibeam");
778 new_toggle("show_meters.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi, "meters");
779 new_toggle("blank30x30.png",
780 new_image("locklabels_locked.png"),
781 new_image("locklabels_lockedhi.png"),
782 new_image("locklabels_unlocked.png"),
783 new_image("locklabels_dn.png"), // can't have seperate down for each!!??
784 new_image("locklabels_unlockedhi.png"),
787 VFrame *cpanel_up = new_image("cpanel_up.png");
788 VFrame *cpanel_hi = new_image("cpanel_hi.png");
789 VFrame *cpanel_dn = new_image("cpanel_dn.png");
790 VFrame *cpanel_checked = new_image("cpanel_checked.png");
791 VFrame *cpanel_checkedhi = new_image("cpanel_checkedhi.png");
794 new_toggle("camera.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "camera");
795 new_toggle("crop.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "crop");
796 new_toggle("eyedrop.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "eyedrop");
797 new_toggle("magnify.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "magnify");
798 new_toggle("mask.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "mask");
799 new_toggle("ruler.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "ruler");
800 new_toggle("projector.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "projector");
801 new_toggle("protect.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "protect");
802 new_toggle("titlesafe.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "titlesafe");
803 new_toggle("toolwindow.png", cpanel_up, cpanel_hi, cpanel_checked, cpanel_dn, cpanel_checkedhi, "tool");
805 // toggle for tangent mode (compositor/tool window)
806 new_toggle("tan_smooth.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi, "tan_smooth");
807 new_toggle("tan_linear.png", editpanel_up, editpanel_hi, editpanel_checked, editpanel_dn, editpanel_checkedhi, "tan_linear");
812 title_font = MEDIUMFONT_3D;
813 title_color = 0xbfbfbf;
814 recordgui_fixed_color = YELLOW;
815 recordgui_variable_color = RED;
817 channel_position_color = MEYELLOW;
818 resources->meter_title_w = 25;
820 // (asset) edit info text color
821 edit_font_color = YELLOW;
824 #define VWINDOW_METER_MARGIN 5
826 void UNFLATTHEME::build_bg_data()
829 channel_position_data = new VFramePng(get_image_data("channel_position.png"));
832 new_image("resource1024", "resource1024.png");
833 new_image("resource512", "resource512.png");
834 new_image("resource256", "resource256.png");
835 new_image("resource128", "resource128.png");
836 new_image("resource64", "resource64.png");
837 new_image("resource32", "resource32.png");
838 new_image("plugin_bg_data", "plugin_bg.png");
839 new_image("title_bg_data", "title_bg.png");
840 new_image("vtimebar_bg_data", "vwindow_timebar.png");
843 void UNFLATTHEME::build_overlays()
845 keyframe_data = new VFramePng(get_image_data("keyframe3.png"));
846 camerakeyframe_data = new VFramePng(get_image_data("camerakeyframe.png"));
847 maskkeyframe_data = new VFramePng(get_image_data("maskkeyframe.png"));
848 modekeyframe_data = new VFramePng(get_image_data("modekeyframe.png"));
849 pankeyframe_data = new VFramePng(get_image_data("pankeyframe.png"));
850 projectorkeyframe_data = new VFramePng(get_image_data("projectorkeyframe.png"));
853 void UNFLATTHEME::draw_rwindow_bg(RecordGUI *gui)
858 // gui->draw_9segment(recordgui_batch_x - margin,
860 // mwindow->session->rwindow_w - recordgui_status_x + margin,
861 // recordgui_buttons_y,
863 // gui->draw_3segmenth(recordgui_options_x - margin2,
864 // recordgui_buttons_y - 5,
865 // mwindow->session->rwindow_w - recordgui_options_x + margin2,
867 // y = recordgui_buttons_y - 5 + rgui_controls->get_h();
868 // gui->draw_9segment(0,
870 // mwindow->session->rwindow_w,
871 // mwindow->session->rwindow_h - y,
875 void UNFLATTHEME::draw_rmonitor_bg(RecordMonitorGUI *gui)
878 // int panel_w = 300;
879 // int x = rmonitor_meter_x - margin;
880 // int w = mwindow->session->rmonitor_w - x;
881 // if(w < rmonitor_meters->get_w()) w = rmonitor_meters->get_w();
884 // mwindow->session->rmonitor_w,
885 // mwindow->session->rmonitor_h);
886 // gui->draw_9segment(x,
889 // mwindow->session->rmonitor_h,
898 void UNFLATTHEME::draw_mwindow_bg(MWindowGUI *gui)
901 gui->draw_3segmenth(mbuttons_x, mbuttons_y - 1,
902 gui->menu_w(), get_image("mbutton_bg"));
904 int pdw = get_image("panel_divider")->get_w();
906 x += 9 * get_image("play")->get_w();
907 x += mtransport_margin; // the control buttons
909 gui->draw_vframe(get_image("panel_divider"),
910 x - toggle_margin / 2 - pdw / 2 + 2,
912 x += 2 * get_image("arrow")->get_w() + toggle_margin; // the mode buttons
914 gui->draw_vframe(get_image("panel_divider"),
915 x - toggle_margin / 2 - pdw / 2 + 2,
918 x += 2 * get_image("autokeyframe")->get_w() + toggle_margin; // the state toggle buttons
919 gui->draw_vframe(get_image("panel_divider"),
920 x - toggle_margin / 2 - pdw / 2 + 2,
924 gui->draw_3segmenth(0,
925 mbuttons_y - 1 + get_image("mbutton_bg")->get_h(),
926 get_image("patchbay_bg")->get_w(),
927 get_image("clock_bg"));
930 gui->draw_3segmentv(patchbay_x,
933 get_image("patchbay_bg"));
936 gui->set_color(BLACK);
937 gui->draw_box(mcanvas_x + get_image("patchbay_bg")->get_w(),
938 mcanvas_y + mtimebar_h,
939 mcanvas_w - BC_ScrollBar::get_span(SCROLL_VERT),
940 mcanvas_h - BC_ScrollBar::get_span(SCROLL_HORIZ) - mtimebar_h);
943 gui->draw_3segmenth(mtimebar_x,
946 get_image("timebar_bg"));
949 gui->set_color(0x333333);
950 gui->draw_box(mzoom_x,
952 mwindow->session->mwindow_w,
956 // gui->draw_vframe(get_image("mscroll_filler"),
957 // mcanvas_x + mcanvas_w - BC_ScrollBar::get_span(SCROLL_VERT),
958 // mcanvas_y + mcanvas_h - BC_ScrollBar::get_span(SCROLL_HORIZ));
961 gui->draw_3segmenth(mzoom_x,
964 get_image("statusbar"));
969 void UNFLATTHEME::draw_cwindow_bg(CWindowGUI *gui)
971 gui->draw_3segmentv(0, 0, ccomposite_h, get_image("cpanel_bg"));
973 gui->draw_3segmenth(0, ccomposite_h, cstatus_x, get_image("cbuttons_left"));
975 if(mwindow->edl->session->cwindow_meter)
977 gui->draw_3segmenth(cstatus_x,
979 cmeter_x - widget_border - cstatus_x,
980 get_image("cbuttons_right"));
981 gui->draw_9segment(cmeter_x - widget_border,
983 mwindow->session->cwindow_w - cmeter_x + widget_border,
984 mwindow->session->cwindow_h,
985 get_image("cmeter_bg"));
989 gui->draw_3segmenth(cstatus_x,
991 cmeter_x - widget_border - cstatus_x + 100,
992 get_image("cbuttons_right"));
996 void UNFLATTHEME::draw_vwindow_bg(VWindowGUI *gui)
998 gui->draw_3segmenth(0,
1001 get_image("vbuttons_left"));
1002 if(mwindow->edl->session->vwindow_meter)
1004 gui->draw_3segmenth(vdivision_x,
1006 vmeter_x - widget_border - vdivision_x,
1007 get_image("cbuttons_right"));
1008 gui->draw_9segment(vmeter_x - widget_border,
1010 mwindow->session->vwindow_w - vmeter_x + widget_border,
1011 mwindow->session->vwindow_h,
1012 get_image("cmeter_bg"));
1016 gui->draw_3segmenth(vdivision_x,
1018 vmeter_x - widget_border - vdivision_x + 100,
1019 get_image("cbuttons_right"));
1023 gui->draw_3segmenth(vtime_x - 20,
1026 get_image("vclock"));
1030 void UNFLATTHEME::draw_preferences_bg(PreferencesWindow *gui)
1032 gui->draw_vframe(get_image("preferences_bg"), 0, 0);
1035 void UNFLATTHEME::draw_new_bg(NewWindow *gui)
1037 gui->draw_vframe(get_image("new_bg"), 0, 0);
1040 void UNFLATTHEME::draw_setformat_bg(SetFormatWindow *gui)
1042 gui->draw_vframe(get_image("setformat_bg"), 0, 0);