Skip to content
Snippets Groups Projects
Commit 7bb077af authored by leprob001's avatar leprob001
Browse files

Update soundsource color panel in edit TOA window.

parent 25ff63f2
No related branches found
No related tags found
No related merge requests found
124 125
\ No newline at end of file \ No newline at end of file
...@@ -12,12 +12,12 @@ artoaGui.editTimeOfArrival.frameControlsSoundSourceColors = uipanel( ... ...@@ -12,12 +12,12 @@ artoaGui.editTimeOfArrival.frameControlsSoundSourceColors = uipanel( ...
'Title', 'Soundsource colors', ... 'Title', 'Soundsource colors', ...
'Units', 'normalized', ... 'Units', 'normalized', ...
'BackgroundColor', 'white', ... 'BackgroundColor', 'white', ...
'Position', [.01 .65 width .25] ... 'Position', [.01 .575 width .325] ...
); );
% add label and color for every sound source that is available % add label and color for every sound source that is available
spaceTopAndBottom = .1; spaceTopAndBottom = .1;
height = .08; height = .06;
leftItemOffset = 0; leftItemOffset = 0;
rightItemOffset = 0; rightItemOffset = 0;
...@@ -30,7 +30,7 @@ isLeftItem = true; ...@@ -30,7 +30,7 @@ isLeftItem = true;
for i = 1:length(fnames) for i = 1:length(fnames)
colorIndex = artoa.soundsources.colorregister.getColorIndex(fnames{i}, artoaWorkspace.soundsourceColorRegister); colorIndex = artoa.soundsources.colorregister.getColorIndex(fnames{i}, artoaWorkspace.soundsourceColorRegister);
if colorIndex == 0 if colorIndex == 0
color = [0 0 0]; color = [.9 .9 .9];
else else
color = artoaWorkspace.soundsourceColors(colorIndex, :); color = artoaWorkspace.soundsourceColors(colorIndex, :);
end end
......
...@@ -234,7 +234,7 @@ artoaGui.editTimeOfArrival.frameToaHistogram = uipanel( ... ...@@ -234,7 +234,7 @@ artoaGui.editTimeOfArrival.frameToaHistogram = uipanel( ...
'Title', 'TOA histogram', ... 'Title', 'TOA histogram', ...
'Units', 'normalized', ... 'Units', 'normalized', ...
'BackgroundColor', 'white', ... 'BackgroundColor', 'white', ...
'Position', [.01 .45 width .15] ... 'Position', [.01 .4 width .15] ...
); );
%% Colormap slider %% Colormap slider
...@@ -244,7 +244,7 @@ artoaGui.editTimeOfArrival.frameControlsColormapSlider = uipanel( ... ...@@ -244,7 +244,7 @@ artoaGui.editTimeOfArrival.frameControlsColormapSlider = uipanel( ...
'Title', 'Adjust colormap boundaries', ... 'Title', 'Adjust colormap boundaries', ...
'Units', 'normalized', ... 'Units', 'normalized', ...
'BackgroundColor', 'white', ... 'BackgroundColor', 'white', ...
'Position', [.01 .3 width .1] ... 'Position', [.01 .275 width .1] ...
); );
artoaGui.editTimeOfArrival.textUpperBoundary = uicontrol( ... artoaGui.editTimeOfArrival.textUpperBoundary = uicontrol( ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment