"generic_dn.png",
"new_cancel_images");
+ new_toggle("loadmode_new.png",
+ "loadmode_up.png",
+ "loadmode_hi.png",
+ "loadmode_checked.png",
+ "loadmode_dn.png",
+ "loadmode_checkedhi.png",
+ "loadmode_new");
+ new_toggle("loadmode_none.png",
+ "loadmode_up.png",
+ "loadmode_hi.png",
+ "loadmode_checked.png",
+ "loadmode_dn.png",
+ "loadmode_checkedhi.png",
+ "loadmode_none");
+ new_toggle("loadmode_newcat.png",
+ "loadmode_up.png",
+ "loadmode_hi.png",
+ "loadmode_checked.png",
+ "loadmode_dn.png",
+ "loadmode_checkedhi.png",
+ "loadmode_newcat");
+ new_toggle("loadmode_cat.png",
+ "loadmode_up.png",
+ "loadmode_hi.png",
+ "loadmode_checked.png",
+ "loadmode_dn.png",
+ "loadmode_checkedhi.png",
+ "loadmode_cat");
+ new_toggle("loadmode_newtracks.png",
+ "loadmode_up.png",
+ "loadmode_hi.png",
+ "loadmode_checked.png",
+ "loadmode_dn.png",
+ "loadmode_checkedhi.png",
+ "loadmode_newtracks");
+ new_toggle("loadmode_paste.png",
+ "loadmode_up.png",
+ "loadmode_hi.png",
+ "loadmode_checked.png",
+ "loadmode_dn.png",
+ "loadmode_checkedhi.png",
+ "loadmode_paste");
+ new_toggle("loadmode_resource.png",
+ "loadmode_up.png",
+ "loadmode_hi.png",
+ "loadmode_checked.png",
+ "loadmode_dn.png",
+ "loadmode_checkedhi.png",
+ "loadmode_resource");
+ new_toggle("loadmode_nested.png",
+ "loadmode_up.png",
+ "loadmode_hi.png",
+ "loadmode_checked.png",
+ "loadmode_dn.png",
+ "loadmode_checkedhi.png",
+ "loadmode_nested");
+
resources->bar_data = new_image("bar", "bar.png");
#include "patchbay.h"
#include "preferencesthread.h"
#include "recordgui.h"
-//#include "recordmonitor.h"
+#include "recordmonitor.h"
#include "setformat.h"
#include "statusbar.h"
#include "timebar.h"
BlueDotTheme::~BlueDotTheme()
{
+ delete channel_position_data;
+ delete keyframe_data;
+ delete camerakeyframe_data;
+ delete maskkeyframe_data;
+ delete modekeyframe_data;
+ delete pankeyframe_data;
+ delete projectorkeyframe_data;
}
void BlueDotTheme::initialize()
// COPIED FROM DEFAULT THEME <<4
resources->menu_highlighted_fontcolor = DDBLUE; //Specific to BD
+ new_toggle("loadmode_new.png",
+ "loadmode_up.png",
+ "loadmode_hi.png",
+ "loadmode_checked.png",
+ "loadmode_dn.png",
+ "loadmode_checkedhi.png",
+ "loadmode_new");
+ new_toggle("loadmode_none.png",
+ "loadmode_up.png",
+ "loadmode_hi.png",
+ "loadmode_checked.png",
+ "loadmode_dn.png",
+ "loadmode_checkedhi.png",
+ "loadmode_none");
+ new_toggle("loadmode_newcat.png",
+ "loadmode_up.png",
+ "loadmode_hi.png",
+ "loadmode_checked.png",
+ "loadmode_dn.png",
+ "loadmode_checkedhi.png",
+ "loadmode_newcat");
+ new_toggle("loadmode_cat.png",
+ "loadmode_up.png",
+ "loadmode_hi.png",
+ "loadmode_checked.png",
+ "loadmode_dn.png",
+ "loadmode_checkedhi.png",
+ "loadmode_cat");
+ new_toggle("loadmode_newtracks.png",
+ "loadmode_up.png",
+ "loadmode_hi.png",
+ "loadmode_checked.png",
+ "loadmode_dn.png",
+ "loadmode_checkedhi.png",
+ "loadmode_newtracks");
+ new_toggle("loadmode_paste.png",
+ "loadmode_up.png",
+ "loadmode_hi.png",
+ "loadmode_checked.png",
+ "loadmode_dn.png",
+ "loadmode_checkedhi.png",
+ "loadmode_paste");
+ new_toggle("loadmode_resource.png",
+ "loadmode_up.png",
+ "loadmode_hi.png",
+ "loadmode_checked.png",
+ "loadmode_dn.png",
+ "loadmode_checkedhi.png",
+ "loadmode_resource");
+ new_toggle("loadmode_nested.png",
+ "loadmode_up.png",
+ "loadmode_hi.png",
+ "loadmode_checked.png",
+ "loadmode_dn.png",
+ "loadmode_checkedhi.png",
+ "loadmode_nested");
//There are differences here, but we won't change until the end.
//Specific to BD
resources->bar_data = new_image("bar", "bar.png");
+ //clock font
+ resources->medium_7segment = new_image_set(20,
+ "black_0.png",
+ "black_1.png",
+ "black_2.png",
+ "black_3.png",
+ "black_4.png",
+ "black_5.png",
+ "black_6.png",
+ "black_7.png",
+ "black_8.png",
+ "black_9.png",
+ "black_colon.png",
+ "black_period.png",
+ "black_a.png",
+ "black_b.png",
+ "black_c.png",
+ "black_d.png",
+ "black_e.png",
+ "black_f.png",
+ "black_space.png",
+ "black_dash.png");
+
+ resources->bar_data = new_image("bar", "bar.png");
+ resources->check = new_image("check", "check.png");
resources->min_menu_w = 0;
resources->menu_popup_bg = 0; // if (0) use menu_light, menu_up, menu_shadow
//Specific to BD
resources->audiovideo_color = DKGREY;
-//Specific to BD - Copied from Blonde, replace letters
- //clock font
- resources->medium_7segment = new_image_set(20,
- "black_0.png", "black_1.png", "black_2.png", "black_3.png", "black_4.png", "black_5.png", "black_6.png", "black_7.png", "black_8.png", "black_9.png", "black_colon.png", "black_period.png", "black_a.png", "black_b.png", "black_c.png", "black_d.png", "black_e.png", "black_f.png", "black_space.png", "black_dash.png");
-
//Specific to BD
//tooltip
resources->tooltip_bg_color = 0xfff7e3;
--- /dev/null
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+//for f in picture.png scope.png; do
+// pngtopam -alpha < $f > /tmp/a
+// pngtopnm < $f | /tmp/a.out > /tmp/b
+// pnmtopng -alpha=/tmp/a < /tmp/b > /tmp/data1/$f
+//done
+int main(int ac, char **av)
+{
+ int r, g, b;
+ char line[1024];
+ do {
+ fputs(fgets(line,sizeof(line),stdin),stdout);
+ } while( strcmp(line,"255\n") );
+ while( (r=getc(stdin)) >= 0 && (g=getc(stdin)) >= 0 && (b=getc(stdin)) >= 0 ) {
+ double rr = r/255., gg = g/255., bb = b/255.;
+ int y = (int)(( 0.29900*rr + 0.58700*gg + 0.11400*bb)*255. + 0.5);
+ int u = (int)((-0.16874*rr - 0.33126*gg + 0.50000*bb + 0.5) * 255. + 0.5);
+ int v = (int)(( 0.50000*rr - 0.41869*gg - 0.08131*bb + 0.5) * 255. + 0.5);
+ if( abs(u-0x80) < 2 && abs(v-0x80) < 2 && y <= 0x48 )
+ if( (y += 0x100-0x48) >= 0x100 ) y = 0x100-1;
+ double yy = y/255., uu = (u-128)/255., vv = (v-128)/255.;
+ r = (int)((yy + 1.40200*vv) * 255. + 0.5);
+ g = (int)((yy- 0.34414*uu - 0.71414*vv) * 255. + 0.5);
+ b = (int)((yy+ 1.77200*uu) * 255. + 0.5);
+ putc(r, stdout); putc(g, stdout); putc(b, stdout);
+ }
+ return 0;
+}