-
Notifications
You must be signed in to change notification settings - Fork 6
/
changeGUIfont.m
150 lines (116 loc) · 5.39 KB
/
changeGUIfont.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% BRAVEHEART - Open source software for electrocardiographic and vectorcardiographic analysis
% changeGUIfont.m -- Adjust font in GUI on Mac computers
% Copyright 2016-2024 Hans F. Stabenau and Jonathan W. Waks
%
% Source code/executables: https://github.com/BIVectors/BRAVEHEART
% Contact: [email protected]
%
% BRAVEHEART is free software: you can redistribute it and/or modify it under the terms of the GNU
% General Public License as published by the Free Software Foundation, either version 3 of the License,
% or (at your option) any later version.
%
% BRAVEHEART is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
% without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
% See the GNU General Public License for more details.
%
% You should have received a copy of the GNU General Public License along with this program.
% If not, see <https://www.gnu.org/licenses/>.
%
% This software is for research purposes only and is not intended to diagnose or treat any disease.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function changeGUIfont(handles)
for field = fieldnames(handles)'
field = field{1};
try
set(handles.(field),'FontSize',get(handles.(field),'FontSize')*1.26); % Increase font size by 26% across GUI
end
% Increase dropdown size
switch field
case {'wavelet_type' , 'wavelet_type_lf'}
v = get(handles.(field),'Position');
x = [135 v(2) 70 v(4)];
set(handles.(field),'Position',x);
case 'tend_method_dropdown'
v = get(handles.(field),'Position');
x = [5 v(2) 90 v(4)];
set(handles.(field),'Position',x);
case {'wavelet_level_selection' , 'wavelet_level_selection_lf'}
v = get(handles.(field),'Position');
x = [245 v(2) 45 v(4)];
set(handles.(field),'Position',x);
case 'ecg_source'
v = get(handles.(field),'Position');
x = [5 v(2) 115 v(4)];
set(handles.(field),'Position',x);
case 'transform_mat_dropdown'
v = get(handles.(field),'Position');
x = [5 v(2) 90 v(4)];
set(handles.(field),'Position',x);
case 'preset_fidpts'
v = get(handles.(field),'Position');
x = [4 v(2) 98 v(4)];
set(handles.(field),'Position',x);
case 'align_dropdown'
v = get(handles.(field),'Position');
x = [7 0 85 30.6];
set(handles.(field),'Position',x);
case {'text752' , 'text753' , 'text570'}
v = get(handles.(field),'Position');
x = [3 v(2) v(3) v(4)];
set(handles.(field),'Position',x);
case {'corr_x_txt' , 'corr_y_txt' , 'corr_z_txt'}
v = get(handles.(field),'Position');
x = [4 v(2) v(3) v(4)];
set(handles.(field),'Position',x);
case 'test52'
v = get(handles.(field),'Position');
x = [-16 v(2) v(3) v(4)];
set(handles.(field),'Position',x);
case 'medianreanno_popup'
v = get(handles.(field),'Position');
x = [12 v(2) 110 v(4)];
set(handles.(field),'Position',x);
case 'accel_box'
v = get(handles.(field),'Position');
x = [78 v(2) 110 v(4)];
set(handles.(field),'Position',x);
case 'export_file_fmt_dropdown'
v = get(handles.(field),'Position');
x = [315 v(2) 55 v(4)];
set(handles.(field),'Position',x);
case 'text51'
v = get(handles.(field),'Position');
x = [-1 v(2) v(3) v(4)];
set(handles.(field),'Position',x);
case 'grid_popup'
v = get(handles.(field),'Position');
x = [162 v(2) 70 v(4)];
set(handles.(field),'Position',x);
case 'text29'
v = get(handles.(field),'Position');
x = [0 v(2) v(3) v(4)];
set(handles.(field),'Position',x);
case 'text30'
v = get(handles.(field),'Position');
x = [6 v(2) v(3) v(4)];
set(handles.(field),'Position',x);
case 'text63'
v = get(handles.(field),'Position');
x = [v(1) v(2) v(3) v(4)+3];
set(handles.(field),'Position',x);
case 'text576'
v = get(handles.(field),'Position');
x = [v(1) 53 v(3) v(4)+3];
set(handles.(field),'Position',x);
end
end
A = findobj;
for i = 1:length(A)
try
if strcmp(A(i).Style,'pushbutton')
A(i).BackgroundColor = '[0.93 0.93 0.93]';
end
end
end
end