1 | #ifndef SKINADJUST_H |
---|
2 | #define SKINADJUST_H |
---|
3 | |
---|
4 | void screenskinadjust() |
---|
5 | { |
---|
6 | int rcret = 0, oleftoffset = 0, orightoffset = 0, otopoffset = 0, obottomoffset = 0, reboot = 0; |
---|
7 | char* tmpstr = NULL; |
---|
8 | struct skin* skinadjust = getscreen("skinadjust"); |
---|
9 | struct skin* listbox = getscreennode(skinadjust, "listbox"); |
---|
10 | struct skin* fontsizeadjust = getscreennode(skinadjust, "fontsizeadjust"); |
---|
11 | struct skin* listboxselecttype = getscreennode(skinadjust, "listboxselecttype"); |
---|
12 | struct skin* osdtransparent = getscreennode(skinadjust, "osdtransparent"); |
---|
13 | struct skin* blinkoff = getscreennode(skinadjust, "blinkoff"); |
---|
14 | struct skin* leftoffset = getscreennode(skinadjust, "leftoffset"); |
---|
15 | struct skin* rightoffset = getscreennode(skinadjust, "rightoffset"); |
---|
16 | struct skin* topoffset = getscreennode(skinadjust, "topoffset"); |
---|
17 | struct skin* bottomoffset = getscreennode(skinadjust, "bottomoffset"); |
---|
18 | struct skin* showrecfreesize = getscreennode(skinadjust, "showrecfreesize"); |
---|
19 | struct skin* listboxselect = getscreennode(skinadjust, "listboxselect"); |
---|
20 | struct skin* tithek_selectcol = getscreennode(skinadjust, "tithek_selectcol"); |
---|
21 | struct skin* filelistselect = getscreennode(skinadjust, "filelistselect"); |
---|
22 | struct skin* buttonbar_bgcol = getscreennode(skinadjust, "buttonbar_bgcol"); |
---|
23 | struct skin* buttonbar_bgcol2 = getscreennode(skinadjust, "buttonbar_bgcol2"); |
---|
24 | struct skin* buttonbar_bordercol = getscreennode(skinadjust, "buttonbar_bordercol"); |
---|
25 | struct skin* buttonbar_fontcol = getscreennode(skinadjust, "buttonbar_fontcol"); |
---|
26 | struct skin* titlebar_bgcol = getscreennode(skinadjust, "titlebar_bgcol"); |
---|
27 | struct skin* titlebar_bgcol2 = getscreennode(skinadjust, "titlebar_bgcol2"); |
---|
28 | struct skin* titlebar_bordercol = getscreennode(skinadjust, "titlebar_bordercol"); |
---|
29 | struct skin* titlebar_fontcol = getscreennode(skinadjust, "titlebar_fontcol"); |
---|
30 | struct skin* bgcol = getscreennode(skinadjust, "bgcol"); |
---|
31 | struct skin* bgcol2 = getscreennode(skinadjust, "bgcol2"); |
---|
32 | struct skin* fontcol = getscreennode(skinadjust, "fontcol"); |
---|
33 | struct skin* bordercol = getscreennode(skinadjust, "bordercol"); |
---|
34 | struct skin* progresscol = getscreennode(skinadjust, "progresscol"); |
---|
35 | struct skin* titlebgcol = getscreennode(skinadjust, "titlebgcol"); |
---|
36 | struct skin* markcol = getscreennode(skinadjust, "markcol"); |
---|
37 | struct skin* okcol = getscreennode(skinadjust, "okcol"); |
---|
38 | struct skin* exitcol = getscreennode(skinadjust, "exitcol"); |
---|
39 | struct skin* deaktivcol = getscreennode(skinadjust, "deaktivcol"); |
---|
40 | struct skin* cpmode_bgcol = getscreennode(skinadjust, "cpmode_bgcol"); |
---|
41 | struct skin* cpmode_fontcol = getscreennode(skinadjust, "cpmode_fontcol"); |
---|
42 | struct skin* editmode_bgcol = getscreennode(skinadjust, "editmode_bgcol"); |
---|
43 | struct skin* editmode_fontcol = getscreennode(skinadjust, "editmode_fontcol"); |
---|
44 | struct skin* mvmode_bgcol = getscreennode(skinadjust, "mvmode_bgcol"); |
---|
45 | struct skin* mvmode_fontcol = getscreennode(skinadjust, "mvmode_fontcol"); |
---|
46 | struct skin* protectmode_bgcol = getscreennode(skinadjust, "protectmode_bgcol"); |
---|
47 | struct skin* protectmode_fontcol = getscreennode(skinadjust, "protectmode_fontcol"); |
---|
48 | struct skin* rec_progress = getscreennode(skinadjust, "rec_progress"); |
---|
49 | struct skin* epgcol1 = getscreennode(skinadjust, "epgcol1"); |
---|
50 | struct skin* epgcol2 = getscreennode(skinadjust, "epgcol2"); |
---|
51 | struct skin* epgcol3 = getscreennode(skinadjust, "epgcol3"); |
---|
52 | struct skin* emuaktivecol = getscreennode(skinadjust, "emuaktivecol"); |
---|
53 | struct skin* emurunningcol = getscreennode(skinadjust, "emurunningcol"); |
---|
54 | struct skin* favcol = getscreennode(skinadjust, "favcol"); |
---|
55 | struct skin* minitv = getscreennode(skinadjust, "choiceminitv"); |
---|
56 | |
---|
57 | struct skin* infobar_sel = getscreennode(skinadjust, "infobar_sel"); |
---|
58 | struct skin* infobar2_sel = getscreennode(skinadjust, "infobar2_sel"); |
---|
59 | struct skin* channellist_sel = getscreennode(skinadjust, "channellist_sel"); |
---|
60 | struct skin* gmultiepg_sel = getscreennode(skinadjust, "gmultiepg_sel"); |
---|
61 | |
---|
62 | struct skin* filelist = getscreennode(skinadjust, "filelist"); |
---|
63 | struct skin* skinstyle_sel = getscreennode(skinadjust, "skinstyle_sel"); |
---|
64 | struct skin* node = NULL; |
---|
65 | |
---|
66 | // struct skin* pic1 = getscreennode(skinadjust, "pic1"); |
---|
67 | // struct skin* pic2 = getscreennode(skinadjust, "pic2"); |
---|
68 | struct skin* b7 = getscreennode(skinadjust, "b7"); |
---|
69 | struct skin* load = getscreen("loading"); |
---|
70 | |
---|
71 | struct skin* preview = getscreennode(skinadjust, "preview"); |
---|
72 | preview->hidden = YES; |
---|
73 | |
---|
74 | struct skin* tmp = NULL; |
---|
75 | |
---|
76 | start: |
---|
77 | |
---|
78 | changeinput(fontsizeadjust, "0\n1\n2\n3\n4\n5\n6\n7\n8\n9\n10\n11\n12\n13\n14\n15\n16\n17\n18\n19\n20\n21\n22\n23\n24\n25\n26\n27\n28\n29\n30\n-15\n-14\n-13\n-12\n-11\n-10\n-9\n-8\n-7\n-6\n-5\n-4\n-3\n-2\n-1"); |
---|
79 | setchoiceboxselection(fontsizeadjust, getskinconfig("fontsizeadjust", NULL)); |
---|
80 | |
---|
81 | addchoicebox(listboxselecttype, "0", _("border")); |
---|
82 | addchoicebox(listboxselecttype, "1", _("bar")); |
---|
83 | addchoicebox(listboxselecttype, "2", _("text")); |
---|
84 | addchoicebox(listboxselecttype, "3", _("picture")); |
---|
85 | setchoiceboxselection(listboxselecttype, getskinconfig("listboxselecttype", NULL)); |
---|
86 | |
---|
87 | changeinput(osdtransparent, "0\n5\n10\n15\n20\n25\n30\n35\n40\n45\n50\n55\n60\n65\n70"); |
---|
88 | setchoiceboxselection(osdtransparent, getskinconfig("osdtransparent", NULL)); |
---|
89 | |
---|
90 | addchoicebox(blinkoff, "0", _("on")); |
---|
91 | addchoicebox(blinkoff, "1", _("off")); |
---|
92 | setchoiceboxselection(blinkoff, getconfig("skinblinkoff", NULL)); |
---|
93 | |
---|
94 | #ifdef MIPSEL |
---|
95 | changeinput(leftoffset, "0\n1\n2\n3\n4\n5\n6\n7\n8\n9\n10\n11\n12\n13\n14\n15\n16\n17\n18\n19\n20"); |
---|
96 | setchoiceboxselection(leftoffset, getconfig("fbleftoffset", NULL)); |
---|
97 | |
---|
98 | changeinput(rightoffset, "0\n1\n2\n3\n4\n5\n6\n7\n8\n9\n10\n11\n12\n13\n14\n15\n16\n17\n18\n19\n20"); |
---|
99 | setchoiceboxselection(rightoffset, getconfig("fbrightoffset", NULL)); |
---|
100 | |
---|
101 | changeinput(topoffset, "0\n1\n2\n3\n4\n5\n6\n7\n8\n9\n10\n11\n12\n13\n14\n15\n16\n17\n18\n19\n20"); |
---|
102 | setchoiceboxselection(topoffset, getconfig("fbtopoffset", NULL)); |
---|
103 | |
---|
104 | changeinput(bottomoffset, "0\n1\n2\n3\n4\n5\n6\n7\n8\n9\n10\n11\n12\n13\n14\n15\n16\n17\n18\n19\n20"); |
---|
105 | setchoiceboxselection(bottomoffset, getconfig("fbbottomoffset", NULL)); |
---|
106 | #else |
---|
107 | changeinput(leftoffset, "0\n10\n20\n30\n40\n50\n60\n70\n80\n90\n100"); |
---|
108 | setchoiceboxselection(leftoffset, getconfig("fbleftoffset", NULL)); |
---|
109 | |
---|
110 | changeinput(rightoffset, "0\n10\n20\n30\n40\n50\n60\n70\n80\n90\n100"); |
---|
111 | setchoiceboxselection(rightoffset, getconfig("fbrightoffset", NULL)); |
---|
112 | |
---|
113 | changeinput(topoffset, "0\n10\n20\n30\n40\n50\n60\n70\n80\n90\n100"); |
---|
114 | setchoiceboxselection(topoffset, getconfig("fbtopoffset", NULL)); |
---|
115 | |
---|
116 | changeinput(bottomoffset, "0\n10\n20\n30\n40\n50\n60\n70\n80\n90\n100"); |
---|
117 | setchoiceboxselection(bottomoffset, getconfig("fbbottomoffset", NULL)); |
---|
118 | #endif |
---|
119 | oleftoffset = getconfigint("fbleftoffset", NULL); |
---|
120 | orightoffset = getconfigint("fbrightoffset", NULL); |
---|
121 | otopoffset = getconfigint("fbtopoffset", NULL); |
---|
122 | obottomoffset = getconfigint("fbbottomoffset", NULL); |
---|
123 | |
---|
124 | if(checkscreen("infobar") != status.skinerr) |
---|
125 | addchoicebox(infobar_sel, "infobar", "default"); |
---|
126 | if(checkscreen("infobar_v2") != status.skinerr) |
---|
127 | addchoicebox(infobar_sel, "infobar_v2","v2"); |
---|
128 | if(checkscreen("infobar_v3") != status.skinerr) |
---|
129 | addchoicebox(infobar_sel, "infobar_v3","v3"); |
---|
130 | if(checkscreen("infobar_v4") != status.skinerr) |
---|
131 | addchoicebox(infobar_sel, "infobar_v4","v4"); |
---|
132 | if(checkscreen("infobar_v5") != status.skinerr) |
---|
133 | addchoicebox(infobar_sel, "infobar_v5","v5"); |
---|
134 | if(checkscreen("infobar_v6") != status.skinerr) |
---|
135 | addchoicebox(infobar_sel, "infobar_v6","v6"); |
---|
136 | if(checkscreen("infobar_v7") != status.skinerr) |
---|
137 | addchoicebox(infobar_sel, "infobar_v7","v7"); |
---|
138 | if(checkscreen("infobar_v8") != status.skinerr) |
---|
139 | addchoicebox(infobar_sel, "infobar_v8","v8"); |
---|
140 | if(checkscreen("infobar_v9") != status.skinerr) |
---|
141 | addchoicebox(infobar_sel, "infobar_v9","v9"); |
---|
142 | setchoiceboxselection(infobar_sel, getskinconfig("infobar_selection", NULL)); |
---|
143 | |
---|
144 | if(checkscreen("infobar2") != status.skinerr) |
---|
145 | addchoicebox(infobar2_sel, "infobar2", "default"); |
---|
146 | if(checkscreen("infobar2_v2") != status.skinerr) |
---|
147 | addchoicebox(infobar2_sel, "infobar2_v2","v2"); |
---|
148 | if(checkscreen("infobar2_v3") != status.skinerr) |
---|
149 | addchoicebox(infobar2_sel, "infobar2_v3","v3"); |
---|
150 | if(checkscreen("infobar2_v4") != status.skinerr) |
---|
151 | addchoicebox(infobar2_sel, "infobar2_v4","v4"); |
---|
152 | if(checkscreen("infobar2_v5") != status.skinerr) |
---|
153 | addchoicebox(infobar2_sel, "infobar2_v5","v5"); |
---|
154 | if(checkscreen("infobar2_v6") != status.skinerr) |
---|
155 | addchoicebox(infobar2_sel, "infobar2_v6","v6"); |
---|
156 | if(checkscreen("infobar2_v7") != status.skinerr) |
---|
157 | addchoicebox(infobar2_sel, "infobar2_v7","v7"); |
---|
158 | if(checkscreen("infobar2_v8") != status.skinerr) |
---|
159 | addchoicebox(infobar2_sel, "infobar2_v8","v8"); |
---|
160 | if(checkscreen("infobar2_v9") != status.skinerr) |
---|
161 | addchoicebox(infobar2_sel, "infobar2_v9","v9"); |
---|
162 | setchoiceboxselection(infobar2_sel, getskinconfig("infobar2_selection", NULL)); |
---|
163 | |
---|
164 | if(checkscreen("channellist") != status.skinerr) |
---|
165 | addchoicebox(channellist_sel, "channellist", "default"); |
---|
166 | if(checkscreen("channellist_v2") != status.skinerr) |
---|
167 | addchoicebox(channellist_sel, "channellist_v2","v2"); |
---|
168 | if(checkscreen("channellist_v3") != status.skinerr) |
---|
169 | addchoicebox(channellist_sel, "channellist_v3","v3"); |
---|
170 | if(checkscreen("channellist_v4") != status.skinerr) |
---|
171 | addchoicebox(channellist_sel, "channellist_v4","v4"); |
---|
172 | if(checkscreen("channellist_v5") != status.skinerr) |
---|
173 | addchoicebox(channellist_sel, "channellist_v5","v5"); |
---|
174 | if(checkscreen("channellist_v6") != status.skinerr) |
---|
175 | addchoicebox(channellist_sel, "channellist_v6","v6"); |
---|
176 | if(checkscreen("channellist_v7") != status.skinerr) |
---|
177 | addchoicebox(channellist_sel, "channellist_v7","v7"); |
---|
178 | if(checkscreen("channellist_v8") != status.skinerr) |
---|
179 | addchoicebox(channellist_sel, "channellist_v8","v8"); |
---|
180 | if(checkscreen("channellist_v9") != status.skinerr) |
---|
181 | addchoicebox(channellist_sel, "channellist_v9","v9"); |
---|
182 | setchoiceboxselection(channellist_sel, getskinconfig("channellist_selection", NULL)); |
---|
183 | |
---|
184 | if(checkscreen("gmultiepg") != status.skinerr) |
---|
185 | addchoicebox(gmultiepg_sel, "gmultiepg", "default"); |
---|
186 | if(checkscreen("gmultiepg_v2") != status.skinerr) |
---|
187 | addchoicebox(gmultiepg_sel, "gmultiepg_v2","v2"); |
---|
188 | if(checkscreen("gmultiepg_v3") != status.skinerr) |
---|
189 | addchoicebox(gmultiepg_sel, "gmultiepg_v3","v3"); |
---|
190 | if(checkscreen("gmultiepg_v4") != status.skinerr) |
---|
191 | addchoicebox(gmultiepg_sel, "gmultiepg_v4","v4"); |
---|
192 | if(checkscreen("gmultiepg_v5") != status.skinerr) |
---|
193 | addchoicebox(gmultiepg_sel, "gmultiepg_v5","v5"); |
---|
194 | if(checkscreen("gmultiepg_v6") != status.skinerr) |
---|
195 | addchoicebox(gmultiepg_sel, "gmultiepg_v6","v6"); |
---|
196 | if(checkscreen("gmultiepg_v7") != status.skinerr) |
---|
197 | addchoicebox(gmultiepg_sel, "gmultiepg_v7","v7"); |
---|
198 | if(checkscreen("gmultiepg_v8") != status.skinerr) |
---|
199 | addchoicebox(gmultiepg_sel, "gmultiepg_v8","v8"); |
---|
200 | if(checkscreen("gmultiepg_v9") != status.skinerr) |
---|
201 | addchoicebox(gmultiepg_sel, "gmultiepg_v9","v9"); |
---|
202 | setchoiceboxselection(gmultiepg_sel, getskinconfig("gmultiepg_selection", NULL)); |
---|
203 | |
---|
204 | char* skinpath = NULL; |
---|
205 | if(ostrcmp(getconfig("skinpath", NULL), "/var/usr/local/share/titan/skin/default") == 0) |
---|
206 | { |
---|
207 | skinpath = ostrcat("/mnt/config", NULL, 0, 0); |
---|
208 | if(!file_exist("/mnt/config/skinconfig.default")) |
---|
209 | { |
---|
210 | char* cmd = NULL; |
---|
211 | cmd = ostrcat(cmd, "cp -a /var/usr/local/share/titan/skin/default/skinconfig.* /mnt/config", 1, 0); |
---|
212 | printf("cmd: %s\n", cmd); |
---|
213 | system(cmd); |
---|
214 | free(cmd); cmd = NULL; |
---|
215 | } |
---|
216 | } |
---|
217 | else |
---|
218 | skinpath = ostrcat(getconfig("skinpath", NULL), NULL, 0, 0); |
---|
219 | |
---|
220 | if(file_exist(skinpath)) |
---|
221 | { |
---|
222 | delmarkedscreennodes(skinadjust, FILELISTDELMARK); |
---|
223 | changeinput(filelist, skinpath); |
---|
224 | changemask(filelist, "*"); |
---|
225 | createfilelist(skinadjust, filelist, 0); |
---|
226 | |
---|
227 | node = filelist; |
---|
228 | while(node != NULL) |
---|
229 | { |
---|
230 | if(node->del == FILELISTDELMARK && node->text != NULL && ostrcmp(node->text, "..") != 0) |
---|
231 | { |
---|
232 | if(!ostrncmp("skinconfig.", node->text, 11)) |
---|
233 | { |
---|
234 | tmpstr = string_replace("skinconfig.", "", node->text, 0); |
---|
235 | addchoicebox(skinstyle_sel, node->text, tmpstr); |
---|
236 | free(tmpstr), tmpstr = NULL; |
---|
237 | } |
---|
238 | } |
---|
239 | node = node->next; |
---|
240 | } |
---|
241 | setchoiceboxselection(skinstyle_sel, getconfig("skinstyle", NULL)); |
---|
242 | } |
---|
243 | |
---|
244 | addchoicebox(showrecfreesize, "0", _("No")); |
---|
245 | addchoicebox(showrecfreesize, "1", _("%")); |
---|
246 | addchoicebox(showrecfreesize, "2", _("GB")); |
---|
247 | setchoiceboxselection(showrecfreesize, getconfig("showrecfreesize", NULL)); |
---|
248 | |
---|
249 | addchoicebox(minitv, "0", _("no")); |
---|
250 | addchoicebox(minitv, "1", _("yes")); |
---|
251 | setchoiceboxselection(minitv, getskinconfig("minitv", NULL)); |
---|
252 | |
---|
253 | addchoicebox(listboxselect, "0", getskinconfig("listboxselect", NULL)); |
---|
254 | addchoicebox(tithek_selectcol, "1", getskinconfig("tithek_selectcol", NULL)); |
---|
255 | addchoicebox(filelistselect, "2", getskinconfig("filelistselect", NULL)); |
---|
256 | addchoicebox(buttonbar_bgcol, "3", getskinconfig("buttonbar_bgcol", NULL)); |
---|
257 | addchoicebox(buttonbar_bgcol2, "4", getskinconfig("buttonbar_bgcol2", NULL)); |
---|
258 | addchoicebox(buttonbar_bordercol, "5", getskinconfig("buttonbar_bordercol", NULL)); |
---|
259 | addchoicebox(buttonbar_fontcol, "6", getskinconfig("buttonbar_fontcol", NULL)); |
---|
260 | addchoicebox(titlebar_bgcol, "7", getskinconfig("titlebar_bgcol", NULL)); |
---|
261 | addchoicebox(titlebar_bgcol2, "8", getskinconfig("titlebar_bgcol2", NULL)); |
---|
262 | addchoicebox(titlebar_bordercol, "9", getskinconfig("titlebar_bordercol", NULL)); |
---|
263 | addchoicebox(titlebar_fontcol, "10", getskinconfig("titlebar_fontcol", NULL)); |
---|
264 | addchoicebox(okcol, "11", getskinconfig("okcol", NULL)); |
---|
265 | addchoicebox(exitcol, "12", getskinconfig("exitcol", NULL)); |
---|
266 | addchoicebox(deaktivcol, "13", getskinconfig("deaktivcol", NULL)); |
---|
267 | addchoicebox(bgcol, "14", getskinconfig("bgcol", NULL)); |
---|
268 | addchoicebox(bgcol2, "15", getskinconfig("bgcol2", NULL)); |
---|
269 | addchoicebox(fontcol, "16", getskinconfig("fontcol", NULL)); |
---|
270 | addchoicebox(bordercol, "17", getskinconfig("bordercol", NULL)); |
---|
271 | addchoicebox(progresscol, "18", getskinconfig("progresscol", NULL)); |
---|
272 | addchoicebox(titlebgcol, "19", getskinconfig("titlebgcol", NULL)); |
---|
273 | addchoicebox(markcol, "20", getskinconfig("markcol", NULL)); |
---|
274 | addchoicebox(cpmode_bgcol, "21", getskinconfig("cpmode_bgcol", NULL)); |
---|
275 | addchoicebox(cpmode_fontcol, "22", getskinconfig("cpmode_fontcol", NULL)); |
---|
276 | addchoicebox(editmode_bgcol, "23", getskinconfig("editmode_bgcol", NULL)); |
---|
277 | addchoicebox(editmode_fontcol, "24", getskinconfig("editmode_fontcol", NULL)); |
---|
278 | addchoicebox(mvmode_fontcol, "25", getskinconfig("mvmode_fontcol", NULL)); |
---|
279 | addchoicebox(protectmode_bgcol, "26", getskinconfig("protectmode_bgcol", NULL)); |
---|
280 | addchoicebox(protectmode_fontcol, "27", getskinconfig("protectmode_fontcol", NULL)); |
---|
281 | addchoicebox(rec_progress, "28", getskinconfig("rec_progress", NULL)); |
---|
282 | addchoicebox(epgcol1, "29", getskinconfig("epgcol1", NULL)); |
---|
283 | addchoicebox(epgcol2, "30", getskinconfig("epgcol2", NULL)); |
---|
284 | addchoicebox(epgcol3, "31", getskinconfig("epgcol3", NULL)); |
---|
285 | addchoicebox(emuaktivecol, "32", getskinconfig("emuaktivecol", NULL)); |
---|
286 | addchoicebox(emurunningcol, "33", getskinconfig("emurunningcol", NULL)); |
---|
287 | addchoicebox(favcol, "34", getskinconfig("favcol", NULL)); |
---|
288 | |
---|
289 | listboxselect->fontcol2 = convertcol(getskinconfig("listboxselect", NULL)); |
---|
290 | tithek_selectcol->fontcol2 = convertcol(getskinconfig("tithek_selectcol", NULL)); |
---|
291 | filelistselect->fontcol2 = convertcol(getskinconfig("filelistselect", NULL)); |
---|
292 | buttonbar_bgcol->fontcol2 = convertcol(getskinconfig("buttonbar_bgcol", NULL)); |
---|
293 | buttonbar_bgcol2->fontcol2 = convertcol(getskinconfig("buttonbar_bgcol2", NULL)); |
---|
294 | buttonbar_bordercol->fontcol2 = convertcol(getskinconfig("buttonbar_bordercol", NULL)); |
---|
295 | buttonbar_fontcol->fontcol2 = convertcol(getskinconfig("buttonbar_fontcol", NULL)); |
---|
296 | titlebar_bgcol->fontcol2 = convertcol(getskinconfig("titlebar_bgcol", NULL)); |
---|
297 | titlebar_bgcol2->fontcol2 = convertcol(getskinconfig("titlebar_bgcol2", NULL)); |
---|
298 | titlebar_bordercol->fontcol2 = convertcol(getskinconfig("titlebar_bordercol", NULL)); |
---|
299 | titlebar_fontcol->fontcol2 = convertcol(getskinconfig("titlebar_fontcol", NULL)); |
---|
300 | okcol->fontcol2 = convertcol(getskinconfig("okcol", NULL)); |
---|
301 | exitcol->fontcol2 = convertcol(getskinconfig("exitcol", NULL)); |
---|
302 | deaktivcol->fontcol2 = convertcol(getskinconfig("deaktivcol", NULL)); |
---|
303 | bgcol->fontcol2 = convertcol(getskinconfig("bgcol", NULL)); |
---|
304 | bgcol2->fontcol2 = convertcol(getskinconfig("bgcol2", NULL)); |
---|
305 | fontcol->fontcol2 = convertcol(getskinconfig("fontcol", NULL)); |
---|
306 | bordercol->fontcol2 = convertcol(getskinconfig("bordercol", NULL)); |
---|
307 | progresscol->fontcol2 = convertcol(getskinconfig("progresscol", NULL)); |
---|
308 | titlebgcol->fontcol2 = convertcol(getskinconfig("titlebgcol", NULL)); |
---|
309 | markcol->fontcol2 = convertcol(getskinconfig("markcol", NULL)); |
---|
310 | rec_progress->fontcol2 = convertcol(getskinconfig("rec_progress", NULL)); |
---|
311 | cpmode_bgcol->fontcol2 = convertcol(getskinconfig("cpmode_bgcol", NULL)); |
---|
312 | cpmode_fontcol->fontcol2 = convertcol(getskinconfig("cpmode_fontcol", NULL)); |
---|
313 | editmode_bgcol->fontcol2 = convertcol(getskinconfig("editmode_bgcol", NULL)); |
---|
314 | editmode_fontcol->fontcol2 = convertcol(getskinconfig("editmode_fontcol", NULL)); |
---|
315 | mvmode_bgcol->fontcol2 = convertcol(getskinconfig("mvmode_bgcol", NULL)); |
---|
316 | mvmode_fontcol->fontcol2 = convertcol(getskinconfig("mvmode_fontcol", NULL)); |
---|
317 | protectmode_bgcol->fontcol2 = convertcol(getskinconfig("protectmode_bgcol", NULL)); |
---|
318 | protectmode_fontcol->fontcol2 = convertcol(getskinconfig("protectmode_fontcol", NULL)); |
---|
319 | epgcol1->fontcol2 = convertcol(getskinconfig("epgcol1", NULL)); |
---|
320 | epgcol2->fontcol2 = convertcol(getskinconfig("epgcol2", NULL)); |
---|
321 | epgcol3->fontcol2 = convertcol(getskinconfig("epgcol3", NULL)); |
---|
322 | emuaktivecol->fontcol2 = convertcol(getskinconfig("emuaktivecol", NULL)); |
---|
323 | emurunningcol->fontcol2 = convertcol(getskinconfig("emurunningcol", NULL)); |
---|
324 | favcol->fontcol2 = convertcol(getskinconfig("favcol", NULL)); |
---|
325 | |
---|
326 | if(status.expertmodus < 10) |
---|
327 | { |
---|
328 | // listboxselect->hidden = YES; |
---|
329 | // tithek_selectcol->hidden = YES; |
---|
330 | // filelistselect->hidden = YES; |
---|
331 | buttonbar_bgcol->hidden = YES; |
---|
332 | buttonbar_bgcol2->hidden = YES; |
---|
333 | buttonbar_bordercol->hidden = YES; |
---|
334 | buttonbar_fontcol->hidden = YES; |
---|
335 | titlebar_bgcol->hidden = YES; |
---|
336 | titlebar_bgcol2->hidden = YES; |
---|
337 | titlebar_bordercol->hidden = YES; |
---|
338 | titlebar_fontcol->hidden = YES; |
---|
339 | okcol->hidden = YES; |
---|
340 | exitcol->hidden = YES; |
---|
341 | deaktivcol->hidden = YES; |
---|
342 | // bgcol->hidden = YES; |
---|
343 | // bgcol2->hidden = YES; |
---|
344 | fontcol->hidden = YES; |
---|
345 | bordercol->hidden = YES; |
---|
346 | progresscol->hidden = YES; |
---|
347 | titlebgcol->hidden = YES; |
---|
348 | markcol->hidden = YES; |
---|
349 | rec_progress->hidden = YES; |
---|
350 | cpmode_bgcol->hidden = YES; |
---|
351 | cpmode_fontcol->hidden = YES; |
---|
352 | editmode_bgcol->hidden = YES; |
---|
353 | editmode_fontcol->hidden = YES; |
---|
354 | mvmode_bgcol->hidden = YES; |
---|
355 | mvmode_fontcol->hidden = YES; |
---|
356 | protectmode_bgcol->hidden = YES; |
---|
357 | protectmode_fontcol->hidden = YES; |
---|
358 | epgcol1->hidden = YES; |
---|
359 | epgcol2->hidden = YES; |
---|
360 | epgcol3->hidden = YES; |
---|
361 | emuaktivecol->hidden = YES; |
---|
362 | emurunningcol->hidden = YES; |
---|
363 | favcol->hidden = YES; |
---|
364 | } |
---|
365 | |
---|
366 | if(status.security == 0 || checkemu() == 0) |
---|
367 | { |
---|
368 | emuaktivecol->hidden = YES; |
---|
369 | emurunningcol->hidden = YES; |
---|
370 | } |
---|
371 | else |
---|
372 | { |
---|
373 | emuaktivecol->hidden = NO; |
---|
374 | emurunningcol->hidden = NO; |
---|
375 | } |
---|
376 | |
---|
377 | setfbtransparent(255); |
---|
378 | |
---|
379 | drawscreen(skinadjust, 0, 0); |
---|
380 | addscreenrc(skinadjust, listbox); |
---|
381 | |
---|
382 | tmp = listbox->select; |
---|
383 | while(1) |
---|
384 | { |
---|
385 | int offsetchange = 0; |
---|
386 | addscreenrc(skinadjust, tmp); |
---|
387 | |
---|
388 | if(listbox->select != NULL && ostrcmp(listbox->select->name, "listboxselect") == 0) |
---|
389 | b7->hidden = NO; |
---|
390 | else if(listbox->select != NULL && ostrcmp(listbox->select->name, "tithek_selectcol") == 0) |
---|
391 | b7->hidden = NO; |
---|
392 | else if(listbox->select != NULL && ostrcmp(listbox->select->name, "filelistselect") == 0) |
---|
393 | b7->hidden = NO; |
---|
394 | else if(listbox->select != NULL && ostrcmp(listbox->select->name, "buttonbar_bgcol") == 0) |
---|
395 | b7->hidden = NO; |
---|
396 | else if(listbox->select != NULL && ostrcmp(listbox->select->name, "buttonbar_bgcol2") == 0) |
---|
397 | b7->hidden = NO; |
---|
398 | else if(listbox->select != NULL && ostrcmp(listbox->select->name, "buttonbar_bordercol") == 0) |
---|
399 | b7->hidden = NO; |
---|
400 | else if(listbox->select != NULL && ostrcmp(listbox->select->name, "buttonbar_fontcol") == 0) |
---|
401 | b7->hidden = NO; |
---|
402 | else if(listbox->select != NULL && ostrcmp(listbox->select->name, "titlebar_bgcol") == 0) |
---|
403 | b7->hidden = NO; |
---|
404 | else if(listbox->select != NULL && ostrcmp(listbox->select->name, "titlebar_bgcol2") == 0) |
---|
405 | b7->hidden = NO; |
---|
406 | else if(listbox->select != NULL && ostrcmp(listbox->select->name, "titlebar_bordercol") == 0) |
---|
407 | b7->hidden = NO; |
---|
408 | else if(listbox->select != NULL && ostrcmp(listbox->select->name, "titlebar_fontcol") == 0) |
---|
409 | b7->hidden = NO; |
---|
410 | else if(listbox->select != NULL && ostrcmp(listbox->select->name, "okcol") == 0) |
---|
411 | b7->hidden = NO; |
---|
412 | else if(listbox->select != NULL && ostrcmp(listbox->select->name, "exitcol") == 0) |
---|
413 | b7->hidden = NO; |
---|
414 | else if(listbox->select != NULL && ostrcmp(listbox->select->name, "deaktivcol") == 0) |
---|
415 | b7->hidden = NO; |
---|
416 | else if(listbox->select != NULL && ostrcmp(listbox->select->name, "bgcol") == 0) |
---|
417 | b7->hidden = NO; |
---|
418 | else if(listbox->select != NULL && ostrcmp(listbox->select->name, "bgcol2") == 0) |
---|
419 | b7->hidden = NO; |
---|
420 | else if(listbox->select != NULL && ostrcmp(listbox->select->name, "fontcol") == 0) |
---|
421 | b7->hidden = NO; |
---|
422 | else if(listbox->select != NULL && ostrcmp(listbox->select->name, "bordercol") == 0) |
---|
423 | b7->hidden = NO; |
---|
424 | else if(listbox->select != NULL && ostrcmp(listbox->select->name, "titlebgcol") == 0) |
---|
425 | b7->hidden = NO; |
---|
426 | else if(listbox->select != NULL && ostrcmp(listbox->select->name, "progresscol") == 0) |
---|
427 | b7->hidden = NO; |
---|
428 | else if(listbox->select != NULL && ostrcmp(listbox->select->name, "markcol") == 0) |
---|
429 | b7->hidden = NO; |
---|
430 | else if(listbox->select != NULL && ostrcmp(listbox->select->name, "cpmode_bgcol") == 0) |
---|
431 | b7->hidden = NO; |
---|
432 | else if(listbox->select != NULL && ostrcmp(listbox->select->name, "cpmode_fontcol") == 0) |
---|
433 | b7->hidden = NO; |
---|
434 | else if(listbox->select != NULL && ostrcmp(listbox->select->name, "editmode_bgcol") == 0) |
---|
435 | b7->hidden = NO; |
---|
436 | else if(listbox->select != NULL && ostrcmp(listbox->select->name, "editmode_fontcol") == 0) |
---|
437 | b7->hidden = NO; |
---|
438 | else if(listbox->select != NULL && ostrcmp(listbox->select->name, "mvmode_bgcol") == 0) |
---|
439 | b7->hidden = NO; |
---|
440 | else if(listbox->select != NULL && ostrcmp(listbox->select->name, "mvmode_fontcol") == 0) |
---|
441 | b7->hidden = NO; |
---|
442 | else if(listbox->select != NULL && ostrcmp(listbox->select->name, "protectmode_bgcol") == 0) |
---|
443 | b7->hidden = NO; |
---|
444 | else if(listbox->select != NULL && ostrcmp(listbox->select->name, "protectmode_fontcol") == 0) |
---|
445 | b7->hidden = NO; |
---|
446 | else if(listbox->select != NULL && ostrcmp(listbox->select->name, "rec_progress") == 0) |
---|
447 | b7->hidden = NO; |
---|
448 | else if(listbox->select != NULL && ostrcmp(listbox->select->name, "epgcol1") == 0) |
---|
449 | b7->hidden = NO; |
---|
450 | else if(listbox->select != NULL && ostrcmp(listbox->select->name, "epgcol2") == 0) |
---|
451 | b7->hidden = NO; |
---|
452 | else if(listbox->select != NULL && ostrcmp(listbox->select->name, "epgcol3") == 0) |
---|
453 | b7->hidden = NO; |
---|
454 | else if(listbox->select != NULL && ostrcmp(listbox->select->name, "emuaktivecol") == 0) |
---|
455 | b7->hidden = NO; |
---|
456 | else if(listbox->select != NULL && ostrcmp(listbox->select->name, "emurunningcol") == 0) |
---|
457 | b7->hidden = NO; |
---|
458 | else if(listbox->select != NULL && ostrcmp(listbox->select->name, "favcol") == 0) |
---|
459 | b7->hidden = NO; |
---|
460 | else |
---|
461 | b7->hidden = YES; |
---|
462 | |
---|
463 | preview->hidden = YES; |
---|
464 | |
---|
465 | drawscreen(skinadjust, 0, 0); |
---|
466 | |
---|
467 | ////////////// |
---|
468 | if(listbox->select != NULL && ostrcmp(listbox->select->name, "infobar_sel") == 0) |
---|
469 | { |
---|
470 | tmpstr = ostrcat(tmpstr, getconfig("skinpath", NULL), 1, 0); |
---|
471 | tmpstr = ostrcat(tmpstr, "/preview/", 1, 0); |
---|
472 | tmpstr = ostrcat(tmpstr, infobar_sel->ret, 1, 0); |
---|
473 | tmpstr = ostrcat(tmpstr, "_preview.png", 0, 0); |
---|
474 | printf("preview pic: %s\n", tmpstr); |
---|
475 | if(file_exist(tmpstr)) |
---|
476 | { |
---|
477 | changepic(preview, tmpstr); |
---|
478 | preview->hidden = NO; |
---|
479 | } |
---|
480 | free(tmpstr), tmpstr = NULL; |
---|
481 | drawscreen(preview, 0, 0); |
---|
482 | } |
---|
483 | else if(listbox->select != NULL && ostrcmp(listbox->select->name, "infobar2_sel") == 0) |
---|
484 | { |
---|
485 | tmpstr = ostrcat(tmpstr, getconfig("skinpath", NULL), 1, 0); |
---|
486 | tmpstr = ostrcat(tmpstr, "/preview/", 1, 0); |
---|
487 | tmpstr = ostrcat(tmpstr, infobar2_sel->ret, 1, 0); |
---|
488 | tmpstr = ostrcat(tmpstr, "_preview.png", 0, 0); |
---|
489 | printf("preview pic: %s\n", tmpstr); |
---|
490 | if(file_exist(tmpstr)) |
---|
491 | { |
---|
492 | changepic(preview, tmpstr); |
---|
493 | preview->hidden = NO; |
---|
494 | } |
---|
495 | free(tmpstr), tmpstr = NULL; |
---|
496 | drawscreen(preview, 0, 0); |
---|
497 | } |
---|
498 | else if(listbox->select != NULL && ostrcmp(listbox->select->name, "gmultiepg_sel") == 0) |
---|
499 | { |
---|
500 | tmpstr = ostrcat(tmpstr, getconfig("skinpath", NULL), 1, 0); |
---|
501 | tmpstr = ostrcat(tmpstr, "/preview/", 1, 0); |
---|
502 | tmpstr = ostrcat(tmpstr, gmultiepg_sel->ret, 1, 0); |
---|
503 | tmpstr = ostrcat(tmpstr, "_preview.png", 0, 0); |
---|
504 | printf("preview pic: %s\n", tmpstr); |
---|
505 | if(file_exist(tmpstr)) |
---|
506 | { |
---|
507 | changepic(preview, tmpstr); |
---|
508 | preview->hidden = NO; |
---|
509 | } |
---|
510 | free(tmpstr), tmpstr = NULL; |
---|
511 | drawscreen(preview, 0, 0); |
---|
512 | } |
---|
513 | else if(listbox->select != NULL && ostrcmp(listbox->select->name, "channellist_sel") == 0) |
---|
514 | { |
---|
515 | tmpstr = ostrcat(tmpstr, getconfig("skinpath", NULL), 1, 0); |
---|
516 | tmpstr = ostrcat(tmpstr, "/preview/", 1, 0); |
---|
517 | tmpstr = ostrcat(tmpstr, channellist_sel->ret, 1, 0); |
---|
518 | tmpstr = ostrcat(tmpstr, "_preview.png", 0, 0); |
---|
519 | printf("preview pic: %s\n", tmpstr); |
---|
520 | if(file_exist(tmpstr)) |
---|
521 | { |
---|
522 | changepic(preview, tmpstr); |
---|
523 | preview->hidden = NO; |
---|
524 | } |
---|
525 | free(tmpstr), tmpstr = NULL; |
---|
526 | drawscreen(preview, 0, 0); |
---|
527 | } |
---|
528 | else |
---|
529 | preview->hidden = YES; |
---|
530 | /////////////// |
---|
531 | |
---|
532 | rcret = waitrc(skinadjust, 0, 0); |
---|
533 | tmp = listbox->select; |
---|
534 | |
---|
535 | addconfigscreencheck("fbleftoffset", leftoffset, "0"); |
---|
536 | if(status.leftoffset != getconfigint("fbleftoffset", NULL)) offsetchange = 1; |
---|
537 | status.leftoffset = getconfigint("fbleftoffset", NULL); |
---|
538 | |
---|
539 | addconfigscreencheck("fbrightoffset", rightoffset, "0"); |
---|
540 | if(status.rightoffset != getconfigint("fbrightoffset", NULL)) offsetchange = 1; |
---|
541 | status.rightoffset = getconfigint("fbrightoffset", NULL); |
---|
542 | |
---|
543 | addconfigscreencheck("fbtopoffset", topoffset, "0"); |
---|
544 | if(status.topoffset != getconfigint("fbtopoffset", NULL)) offsetchange = 1; |
---|
545 | status.topoffset = getconfigint("fbtopoffset", NULL); |
---|
546 | |
---|
547 | addconfigscreencheck("fbbottomoffset", bottomoffset, "0"); |
---|
548 | if(status.bottomoffset != getconfigint("fbbottomoffset", NULL)) offsetchange = 1; |
---|
549 | status.bottomoffset = getconfigint("fbbottomoffset", NULL); |
---|
550 | |
---|
551 | if(offsetchange == 1 && (ostrcmp(getconfig("av_mode3d", NULL), "sbs") == 0 || ostrcmp(getconfig("av_mode3d", NULL), "tab") == 0)) clearfball(); |
---|
552 | |
---|
553 | drawscreen(skinadjust, 0, 0); |
---|
554 | |
---|
555 | #ifdef MIPSEL |
---|
556 | if(checkbox("DM7020HD") == 0 && checkbox("DM7020HDV2") == 0) |
---|
557 | setfbosd(); |
---|
558 | #endif |
---|
559 | |
---|
560 | if(rcret == getrcconfigint("rcexit", NULL)) |
---|
561 | { |
---|
562 | addconfigint("fbleftoffset", oleftoffset); |
---|
563 | status.leftoffset = getconfigint("fbleftoffset", NULL); |
---|
564 | addconfigint("fbrightoffset", orightoffset); |
---|
565 | status.rightoffset = getconfigint("fbrightoffset", NULL); |
---|
566 | addconfigint("fbtopoffset", otopoffset); |
---|
567 | status.topoffset = getconfigint("fbtopoffset", NULL); |
---|
568 | addconfigint("fbbottomoffset", obottomoffset); |
---|
569 | status.bottomoffset = getconfigint("fbbottomoffset", NULL); |
---|
570 | clearfball(); |
---|
571 | break; |
---|
572 | } |
---|
573 | |
---|
574 | if(rcret == getrcconfigint("rcred", NULL)) |
---|
575 | { |
---|
576 | if(textbox(_("Message"), _("Reset your Skin Settings ?"), _("OK"), getrcconfigint("rcok", NULL), _("EXIT"), getrcconfigint("rcexit", NULL), NULL, 0, NULL, 0, 800, 200, 0, 0) == 1) |
---|
577 | { |
---|
578 | char* cmd = NULL; |
---|
579 | if(ostrcmp(getconfig("skinconfig", NULL), "/mnt/config/skinconfig") == 0) |
---|
580 | cmd = ostrcat("cp -a /etc/titan.restore/mnt/config/skinconfig ", getconfig("skinconfig", NULL), 0, 0); |
---|
581 | else |
---|
582 | { |
---|
583 | cmd = ostrcat(cmd, "cp -a ", 1, 0); |
---|
584 | cmd = ostrcat(cmd, getconfig("skinconfig", NULL), 1, 0); |
---|
585 | cmd = ostrcat(cmd, ".default ", 1, 0); |
---|
586 | cmd = ostrcat(cmd, getconfig("skinconfig", NULL), 1, 0); |
---|
587 | } |
---|
588 | printf("cmd: %s\n", cmd); |
---|
589 | system(cmd); |
---|
590 | free(cmd); cmd = NULL; |
---|
591 | |
---|
592 | textbox(_("Message"), _("Titan will be restarted!"), _("OK"), getrcconfigint("rcok", NULL), NULL, 0, NULL, 0, NULL, 0, 1000, 200, 0, 0); |
---|
593 | oshutdown(3, 0); |
---|
594 | } |
---|
595 | break; |
---|
596 | } |
---|
597 | |
---|
598 | if(rcret == getrcconfigint("rcgreen", NULL)) |
---|
599 | { |
---|
600 | if(textbox(_("Message"), _("Create new Skinstyle ?"), _("OK"), getrcconfigint("rcok", NULL), _("EXIT"), getrcconfigint("rcexit", NULL), NULL, 0, NULL, 0, 800, 200, 0, 0) == 1) |
---|
601 | { |
---|
602 | char* search = NULL; |
---|
603 | search = textinputhist(_("Skinstyle Name"), " ", "searchhist"); |
---|
604 | strstrip(search); |
---|
605 | if(search != NULL) |
---|
606 | { |
---|
607 | drawscreen(load, 0, 0); |
---|
608 | char* cmd = NULL; |
---|
609 | cmd = ostrcat(cmd, "cp ", 1, 0); |
---|
610 | cmd = ostrcat(cmd, getconfig("skinconfig", NULL), 1, 0); |
---|
611 | cmd = ostrcat(cmd, " \"", 1, 0); |
---|
612 | cmd = ostrcat(cmd, skinpath, 1, 0); |
---|
613 | cmd = ostrcat(cmd, "/skinconfig.", 1, 0); |
---|
614 | cmd = ostrcat(cmd, search, 1, 0); |
---|
615 | cmd = ostrcat(cmd, "\"", 1, 0); |
---|
616 | printf("cmd: %s\n", cmd); |
---|
617 | system(cmd); |
---|
618 | free(cmd); cmd = NULL; |
---|
619 | |
---|
620 | delskinconfigtmpall(); |
---|
621 | delownerrc(skinadjust); |
---|
622 | clearscreen(skinadjust); |
---|
623 | |
---|
624 | goto start; |
---|
625 | } |
---|
626 | } |
---|
627 | break; |
---|
628 | } |
---|
629 | |
---|
630 | if(rcret == getrcconfigint("rcyellow", NULL)) |
---|
631 | { |
---|
632 | if(ostrcmp(skinstyle_sel->ret, "skinconfig.default") != 0) |
---|
633 | { |
---|
634 | tmpstr = string_replace("skinconfig.", "", skinstyle_sel->ret, 0); |
---|
635 | char* msg = ostrcat(_("Remove Skinstyle"), NULL, 0, 0); |
---|
636 | msg = ostrcat(msg, " '", 1, 0); |
---|
637 | msg = ostrcat(msg, tmpstr, 1, 0); |
---|
638 | msg = ostrcat(msg, "' ?", 1, 0); |
---|
639 | free(tmpstr), tmpstr = NULL; |
---|
640 | |
---|
641 | if(textbox(_("Message"), msg, _("OK"), getrcconfigint("rcok", NULL), _("EXIT"), getrcconfigint("rcexit", NULL), NULL, 0, NULL, 0, 800, 200, 0, 0) == 1) |
---|
642 | { |
---|
643 | char* cmd = NULL; |
---|
644 | cmd = ostrcat(cmd, "rm \"", 1, 0); |
---|
645 | cmd = ostrcat(cmd, skinpath, 1, 0); |
---|
646 | cmd = ostrcat(cmd, "/", 1, 0); |
---|
647 | cmd = ostrcat(cmd, skinstyle_sel->ret, 1, 0); |
---|
648 | cmd = ostrcat(cmd, "\"", 1, 0); |
---|
649 | printf("cmd: %s\n", cmd); |
---|
650 | system(cmd); |
---|
651 | free(cmd); cmd = NULL; |
---|
652 | |
---|
653 | // delskinconfigtmpall(); |
---|
654 | // delownerrc(skinadjust); |
---|
655 | // clearscreen(skinadjust); |
---|
656 | |
---|
657 | // goto start; |
---|
658 | textbox(_("Message"), _("Titan will be restarted!"), _("OK"), getrcconfigint("rcok", NULL), NULL, 0, NULL, 0, NULL, 0, 1000, 200, 0, 0); |
---|
659 | oshutdown(3, 0); |
---|
660 | } |
---|
661 | free(msg), msg = NULL; |
---|
662 | } |
---|
663 | } |
---|
664 | |
---|
665 | if(rcret == getrcconfigint("rcblue", NULL)) |
---|
666 | { |
---|
667 | setfbtransparent(255); |
---|
668 | if(listbox->select != NULL && ostrcmp(listbox->select->name, "listboxselect") == 0) |
---|
669 | { |
---|
670 | long oldlistboxselectcol = convertcol("listboxselect"); |
---|
671 | tmpstr = screencolorpicker(getskinconfig("listboxselect", NULL), 0, 0, 0); |
---|
672 | if(tmpstr != NULL) |
---|
673 | addskinconfigtmp("listboxselect", tmpstr); |
---|
674 | if(oldlistboxselectcol != convertcol("listboxselect")) reboot = 1; |
---|
675 | listboxselect->fontcol2 = convertcol(tmpstr); |
---|
676 | } |
---|
677 | |
---|
678 | if(listbox->select != NULL && ostrcmp(listbox->select->name, "tithek_selectcol") == 0) |
---|
679 | { |
---|
680 | long oldtithek_selectcol = convertcol("tithek_selectcol"); |
---|
681 | tmpstr = screencolorpicker(getskinconfig("tithek_selectcol", NULL), 0, 0, 0); |
---|
682 | if(tmpstr != NULL) |
---|
683 | addskinconfigtmp("tithek_selectcol", tmpstr); |
---|
684 | if(oldtithek_selectcol != convertcol("tithek_selectcol")) reboot = 1; |
---|
685 | tithek_selectcol->fontcol2 = convertcol(tmpstr); |
---|
686 | } |
---|
687 | |
---|
688 | if(listbox->select != NULL && ostrcmp(listbox->select->name, "filelistselect") == 0) |
---|
689 | { |
---|
690 | long oldfilelistselect = convertcol("filelistselect"); |
---|
691 | tmpstr = screencolorpicker(getskinconfig("filelistselect", NULL), 0, 0, 0); |
---|
692 | if(tmpstr != NULL) |
---|
693 | addskinconfigtmp("filelistselect", tmpstr); |
---|
694 | if(oldfilelistselect != convertcol("filelistselect")) reboot = 1; |
---|
695 | filelistselect->fontcol2 = convertcol(tmpstr); |
---|
696 | } |
---|
697 | |
---|
698 | if(listbox->select != NULL && ostrcmp(listbox->select->name, "buttonbar_bgcol") == 0) |
---|
699 | { |
---|
700 | long oldbuttonbar_bgcol = convertcol("buttonbar_bgcol"); |
---|
701 | tmpstr = screencolorpicker(getskinconfig("buttonbar_bgcol", NULL), 0, 0, 0); |
---|
702 | if(tmpstr != NULL) |
---|
703 | addskinconfigtmp("buttonbar_bgcol", tmpstr); |
---|
704 | if(oldbuttonbar_bgcol != convertcol("buttonbar_bgcol")) reboot = 1; |
---|
705 | buttonbar_bgcol->fontcol2 = convertcol(tmpstr); |
---|
706 | } |
---|
707 | |
---|
708 | if(listbox->select != NULL && ostrcmp(listbox->select->name, "buttonbar_bgcol2") == 0) |
---|
709 | { |
---|
710 | long oldbuttonbar_bgcol2 = convertcol("buttonbar_bgcol2"); |
---|
711 | tmpstr = screencolorpicker(getskinconfig("buttonbar_bgcol2", NULL), 0, 0, 0); |
---|
712 | if(tmpstr != NULL) |
---|
713 | addskinconfigtmp("buttonbar_bgcol2", tmpstr); |
---|
714 | if(oldbuttonbar_bgcol2 != convertcol("buttonbar_bgcol2")) reboot = 1; |
---|
715 | buttonbar_bgcol2->fontcol2 = convertcol(tmpstr); |
---|
716 | } |
---|
717 | |
---|
718 | if(listbox->select != NULL && ostrcmp(listbox->select->name, "buttonbar_bordercol") == 0) |
---|
719 | { |
---|
720 | long oldbuttonbar_bordercol = convertcol("buttonbar_bordercol"); |
---|
721 | tmpstr = screencolorpicker(getskinconfig("buttonbar_bordercol", NULL), 0, 0, 0); |
---|
722 | if(tmpstr != NULL) |
---|
723 | addskinconfigtmp("buttonbar_bordercol", tmpstr); |
---|
724 | if(oldbuttonbar_bordercol != convertcol("buttonbar_bordercol")) reboot = 1; |
---|
725 | buttonbar_bordercol->fontcol2 = convertcol(tmpstr); |
---|
726 | } |
---|
727 | |
---|
728 | if(listbox->select != NULL && ostrcmp(listbox->select->name, "buttonbar_fontcol") == 0) |
---|
729 | { |
---|
730 | long oldbuttonbar_fontcol = convertcol("buttonbar_fontcol"); |
---|
731 | tmpstr = screencolorpicker(getskinconfig("buttonbar_fontcol", NULL), 0, 0, 0); |
---|
732 | if(tmpstr != NULL) |
---|
733 | addskinconfigtmp("buttonbar_fontcol", tmpstr); |
---|
734 | if(oldbuttonbar_fontcol != convertcol("buttonbar_fontcol")) reboot = 1; |
---|
735 | buttonbar_fontcol->fontcol2 = convertcol(tmpstr); |
---|
736 | } |
---|
737 | |
---|
738 | if(listbox->select != NULL && ostrcmp(listbox->select->name, "titlebar_bgcol") == 0) |
---|
739 | { |
---|
740 | long oldtitlebar_bgcol = convertcol("titlebar_bgcol"); |
---|
741 | tmpstr = screencolorpicker(getskinconfig("titlebar_bgcol", NULL), 0, 0, 0); |
---|
742 | if(tmpstr != NULL) |
---|
743 | addskinconfigtmp("titlebar_bgcol", tmpstr); |
---|
744 | if(oldtitlebar_bgcol != convertcol("titlebar_bgcol")) reboot = 1; |
---|
745 | titlebar_bgcol->fontcol2 = convertcol(tmpstr); |
---|
746 | } |
---|
747 | |
---|
748 | if(listbox->select != NULL && ostrcmp(listbox->select->name, "titlebar_bgcol2") == 0) |
---|
749 | { |
---|
750 | long oldtitlebar_bgcol2 = convertcol("titlebar_bgcol2"); |
---|
751 | tmpstr = screencolorpicker(getskinconfig("titlebar_bgcol2", NULL), 0, 0, 0); |
---|
752 | if(tmpstr != NULL) |
---|
753 | addskinconfigtmp("titlebar_bgcol2", tmpstr); |
---|
754 | if(oldtitlebar_bgcol2 != convertcol("titlebar_bgcol2")) reboot = 1; |
---|
755 | titlebar_bgcol2->fontcol2 = convertcol(tmpstr); |
---|
756 | } |
---|
757 | |
---|
758 | if(listbox->select != NULL && ostrcmp(listbox->select->name, "titlebar_bordercol") == 0) |
---|
759 | { |
---|
760 | long oldtitlebar_bordercol = convertcol("titlebar_bordercol"); |
---|
761 | tmpstr = screencolorpicker(getskinconfig("titlebar_bordercol", NULL), 0, 0, 0); |
---|
762 | if(tmpstr != NULL) |
---|
763 | addskinconfigtmp("titlebar_bordercol", tmpstr); |
---|
764 | if(oldtitlebar_bordercol != convertcol("titlebar_bordercol")) reboot = 1; |
---|
765 | titlebar_bordercol->fontcol2 = convertcol(tmpstr); |
---|
766 | } |
---|
767 | |
---|
768 | if(listbox->select != NULL && ostrcmp(listbox->select->name, "titlebar_fontcol") == 0) |
---|
769 | { |
---|
770 | long oldtitlebar_fontcol = convertcol("titlebar_fontcol"); |
---|
771 | tmpstr = screencolorpicker(getskinconfig("titlebar_fontcol", NULL), 0, 0, 0); |
---|
772 | if(tmpstr != NULL) |
---|
773 | addskinconfigtmp("titlebar_fontcol", tmpstr); |
---|
774 | if(oldtitlebar_fontcol != convertcol("titlebar_fontcol")) reboot = 1; |
---|
775 | titlebar_fontcol->fontcol2 = convertcol(tmpstr); |
---|
776 | } |
---|
777 | |
---|
778 | if(listbox->select != NULL && ostrcmp(listbox->select->name, "okcol") == 0) |
---|
779 | { |
---|
780 | long oldokcol = convertcol("okcol"); |
---|
781 | tmpstr = screencolorpicker(getskinconfig("okcol", NULL), 0, 0, 0); |
---|
782 | if(tmpstr != NULL) |
---|
783 | addskinconfigtmp("okcol", tmpstr); |
---|
784 | if(oldokcol != convertcol("okcol")) reboot = 1; |
---|
785 | okcol->fontcol2 = convertcol(tmpstr); |
---|
786 | } |
---|
787 | |
---|
788 | if(listbox->select != NULL && ostrcmp(listbox->select->name, "exitcol") == 0) |
---|
789 | { |
---|
790 | long oldexitcol = convertcol("exitcol"); |
---|
791 | tmpstr = screencolorpicker(getskinconfig("exitcol", NULL), 0, 0, 0); |
---|
792 | if(tmpstr != NULL) |
---|
793 | addskinconfigtmp("exitcol", tmpstr); |
---|
794 | if(oldexitcol != convertcol("exitcol")) reboot = 1; |
---|
795 | okcol->fontcol2 = convertcol(tmpstr); |
---|
796 | } |
---|
797 | |
---|
798 | if(listbox->select != NULL && ostrcmp(listbox->select->name, "deaktivcol") == 0) |
---|
799 | { |
---|
800 | long olddeaktivcol = convertcol("deaktivcol"); |
---|
801 | tmpstr = screencolorpicker(getskinconfig("deaktivcol", NULL), 0, 0, 0); |
---|
802 | if(tmpstr != NULL) |
---|
803 | addskinconfigtmp("deaktivcol", tmpstr); |
---|
804 | if(olddeaktivcol != convertcol("deaktivcol")) reboot = 1; |
---|
805 | deaktivcol->fontcol2 = convertcol(tmpstr); |
---|
806 | } |
---|
807 | |
---|
808 | if(listbox->select != NULL && ostrcmp(listbox->select->name, "bgcol") == 0) |
---|
809 | { |
---|
810 | long oldbgcol = convertcol("bgcol"); |
---|
811 | tmpstr = screencolorpicker(getskinconfig("bgcol", NULL), 0, 0, 0); |
---|
812 | if(tmpstr != NULL) |
---|
813 | addskinconfigtmp("bgcol", tmpstr); |
---|
814 | if(oldbgcol != convertcol("bgcol")) reboot = 1; |
---|
815 | bgcol->fontcol2 = convertcol(tmpstr); |
---|
816 | } |
---|
817 | |
---|
818 | if(listbox->select != NULL && ostrcmp(listbox->select->name, "bgcol2") == 0) |
---|
819 | { |
---|
820 | long oldbgcol2 = convertcol("bgcol2"); |
---|
821 | tmpstr = screencolorpicker(getskinconfig("bgcol2", NULL), 0, 0, 0); |
---|
822 | if(tmpstr != NULL) |
---|
823 | addskinconfigtmp("bgcol2", tmpstr); |
---|
824 | if(oldbgcol2 != convertcol("bgcol2")) reboot = 1; |
---|
825 | bgcol2->fontcol2 = convertcol(tmpstr); |
---|
826 | } |
---|
827 | |
---|
828 | if(listbox->select != NULL && ostrcmp(listbox->select->name, "fontcol") == 0) |
---|
829 | { |
---|
830 | long oldfontcol = convertcol("fontcol"); |
---|
831 | tmpstr = screencolorpicker(getskinconfig("fontcol", NULL), 0, 0, 0); |
---|
832 | if(tmpstr != NULL) |
---|
833 | addskinconfigtmp("fontcol", tmpstr); |
---|
834 | if(oldfontcol != convertcol("fontcol")) reboot = 1; |
---|
835 | fontcol->fontcol2 = convertcol(tmpstr); |
---|
836 | } |
---|
837 | |
---|
838 | if(listbox->select != NULL && ostrcmp(listbox->select->name, "bordercol") == 0) |
---|
839 | { |
---|
840 | long oldbordercol = convertcol("bordercol"); |
---|
841 | tmpstr = screencolorpicker(getskinconfig("bordercol", NULL), 0, 0, 0); |
---|
842 | if(tmpstr != NULL) |
---|
843 | addskinconfigtmp("bordercol", tmpstr); |
---|
844 | if(oldbordercol != convertcol("bordercol")) reboot = 1; |
---|
845 | bordercol->fontcol2 = convertcol(tmpstr); |
---|
846 | } |
---|
847 | |
---|
848 | if(listbox->select != NULL && ostrcmp(listbox->select->name, "progresscol") == 0) |
---|
849 | { |
---|
850 | long oldprogresscol = convertcol("progresscol"); |
---|
851 | tmpstr = screencolorpicker(getskinconfig("progresscol", NULL), 0, 0, 0); |
---|
852 | if(tmpstr != NULL) |
---|
853 | addskinconfigtmp("progresscol", tmpstr); |
---|
854 | if(oldprogresscol != convertcol("progresscol")) reboot = 1; |
---|
855 | progresscol->fontcol2 = convertcol(tmpstr); |
---|
856 | } |
---|
857 | |
---|
858 | if(listbox->select != NULL && ostrcmp(listbox->select->name, "titlebgcol") == 0) |
---|
859 | { |
---|
860 | long oldtitlebgcol = convertcol("titlebgcol"); |
---|
861 | tmpstr = screencolorpicker(getskinconfig("titlebgcol", NULL), 0, 0, 0); |
---|
862 | if(tmpstr != NULL) |
---|
863 | addskinconfigtmp("titlebgcol", tmpstr); |
---|
864 | if(oldtitlebgcol != convertcol("titlebgcol")) reboot = 1; |
---|
865 | titlebgcol->fontcol2 = convertcol(tmpstr); |
---|
866 | } |
---|
867 | |
---|
868 | if(listbox->select != NULL && ostrcmp(listbox->select->name, "markcol") == 0) |
---|
869 | { |
---|
870 | long oldmarkcol = convertcol("markcol"); |
---|
871 | tmpstr = screencolorpicker(getskinconfig("markcol", NULL), 0, 0, 0); |
---|
872 | if(tmpstr != NULL) |
---|
873 | addskinconfigtmp("markcol", tmpstr); |
---|
874 | if(oldmarkcol != convertcol("markcol")) reboot = 1; |
---|
875 | markcol->fontcol2 = convertcol(tmpstr); |
---|
876 | } |
---|
877 | |
---|
878 | if(listbox->select != NULL && ostrcmp(listbox->select->name, "cpmode_bgcol") == 0) |
---|
879 | { |
---|
880 | long oldcpmode_bgcol = convertcol("cpmode_bgcol"); |
---|
881 | tmpstr = screencolorpicker(getskinconfig("cpmode_bgcol", NULL), 0, 0, 0); |
---|
882 | if(tmpstr != NULL) |
---|
883 | addskinconfigtmp("cpmode_bgcol", tmpstr); |
---|
884 | if(oldcpmode_bgcol != convertcol("cpmode_bgcol")) reboot = 1; |
---|
885 | cpmode_bgcol->fontcol2 = convertcol(tmpstr); |
---|
886 | } |
---|
887 | |
---|
888 | if(listbox->select != NULL && ostrcmp(listbox->select->name, "cpmode_fontcol") == 0) |
---|
889 | { |
---|
890 | long oldcpmode_fontcol = convertcol("cpmode_fontcol"); |
---|
891 | tmpstr = screencolorpicker(getskinconfig("cpmode_fontcol", NULL), 0, 0, 0); |
---|
892 | if(tmpstr != NULL) |
---|
893 | addskinconfigtmp("cpmode_fontcol", tmpstr); |
---|
894 | if(oldcpmode_fontcol != convertcol("cpmode_fontcol")) reboot = 1; |
---|
895 | cpmode_fontcol->fontcol2 = convertcol(tmpstr); |
---|
896 | } |
---|
897 | |
---|
898 | if(listbox->select != NULL && ostrcmp(listbox->select->name, "editmode_bgcol") == 0) |
---|
899 | { |
---|
900 | long oldeditmode_bgcol = convertcol("editmode_bgcol"); |
---|
901 | tmpstr = screencolorpicker(getskinconfig("editmode_bgcol", NULL), 0, 0, 0); |
---|
902 | if(tmpstr != NULL) |
---|
903 | addskinconfigtmp("editmode_bgcol", tmpstr); |
---|
904 | if(oldeditmode_bgcol != convertcol("editmode_bgcol")) reboot = 1; |
---|
905 | editmode_bgcol->fontcol2 = convertcol(tmpstr); |
---|
906 | } |
---|
907 | |
---|
908 | if(listbox->select != NULL && ostrcmp(listbox->select->name, "editmode_fontcol") == 0) |
---|
909 | { |
---|
910 | long oldeditmode_fontcol = convertcol("editmode_fontcol"); |
---|
911 | tmpstr = screencolorpicker(getskinconfig("editmode_fontcol", NULL), 0, 0, 0); |
---|
912 | if(tmpstr != NULL) |
---|
913 | addskinconfigtmp("editmode_fontcol", tmpstr); |
---|
914 | if(oldeditmode_fontcol != convertcol("editmode_fontcol")) reboot = 1; |
---|
915 | editmode_fontcol->fontcol2 = convertcol(tmpstr); |
---|
916 | } |
---|
917 | |
---|
918 | if(listbox->select != NULL && ostrcmp(listbox->select->name, "mvmode_bgcol") == 0) |
---|
919 | { |
---|
920 | long oldmvmode_bgcol = convertcol("mvmode_bgcol"); |
---|
921 | tmpstr = screencolorpicker(getskinconfig("mvmode_bgcol", NULL), 0, 0, 0); |
---|
922 | if(tmpstr != NULL) |
---|
923 | addskinconfigtmp("mvmode_bgcol", tmpstr); |
---|
924 | if(oldmvmode_bgcol != convertcol("mvmode_bgcol")) reboot = 1; |
---|
925 | mvmode_bgcol->fontcol2 = convertcol(tmpstr); |
---|
926 | } |
---|
927 | |
---|
928 | if(listbox->select != NULL && ostrcmp(listbox->select->name, "mvmode_fontcol") == 0) |
---|
929 | { |
---|
930 | long oldmvmode_fontcol = convertcol("mvmode_fontcol"); |
---|
931 | tmpstr = screencolorpicker(getskinconfig("mvmode_fontcol", NULL), 0, 0, 0); |
---|
932 | if(tmpstr != NULL) |
---|
933 | addskinconfigtmp("mvmode_fontcol", tmpstr); |
---|
934 | if(oldmvmode_fontcol != convertcol("mvmode_fontcol")) reboot = 1; |
---|
935 | mvmode_fontcol->fontcol2 = convertcol(tmpstr); |
---|
936 | } |
---|
937 | |
---|
938 | if(listbox->select != NULL && ostrcmp(listbox->select->name, "protectmode_bgcol") == 0) |
---|
939 | { |
---|
940 | long oldprotectmode_bgcol = convertcol("protectmode_bgcol"); |
---|
941 | tmpstr = screencolorpicker(getskinconfig("protectmode_bgcol", NULL), 0, 0, 0); |
---|
942 | if(tmpstr != NULL) |
---|
943 | addskinconfigtmp("protectmode_bgcol", tmpstr); |
---|
944 | if(oldprotectmode_bgcol != convertcol("protectmode_bgcol")) reboot = 1; |
---|
945 | protectmode_bgcol->fontcol2 = convertcol(tmpstr); |
---|
946 | } |
---|
947 | |
---|
948 | if(listbox->select != NULL && ostrcmp(listbox->select->name, "protectmode_fontcol") == 0) |
---|
949 | { |
---|
950 | long oldprotectmode_fontcol = convertcol("protectmode_fontcol"); |
---|
951 | tmpstr = screencolorpicker(getskinconfig("protectmode_fontcol", NULL), 0, 0, 0); |
---|
952 | if(tmpstr != NULL) |
---|
953 | addskinconfigtmp("protectmode_fontcol", tmpstr); |
---|
954 | if(oldprotectmode_fontcol != convertcol("protectmode_fontcol")) reboot = 1; |
---|
955 | protectmode_fontcol->fontcol2 = convertcol(tmpstr); |
---|
956 | } |
---|
957 | |
---|
958 | if(listbox->select != NULL && ostrcmp(listbox->select->name, "rec_progress") == 0) |
---|
959 | { |
---|
960 | long oldrec_progress = convertcol("rec_progress"); |
---|
961 | tmpstr = screencolorpicker(getskinconfig("rec_progress", NULL), 0, 0, 0); |
---|
962 | if(tmpstr != NULL) |
---|
963 | addskinconfigtmp("rec_progress", tmpstr); |
---|
964 | if(oldrec_progress != convertcol("rec_progress")) reboot = 1; |
---|
965 | rec_progress->fontcol2 = convertcol(tmpstr); |
---|
966 | } |
---|
967 | |
---|
968 | if(listbox->select != NULL && ostrcmp(listbox->select->name, "epgcol1") == 0) |
---|
969 | { |
---|
970 | long oldepgcol1 = convertcol("epgcol1"); |
---|
971 | tmpstr = screencolorpicker(getskinconfig("epgcol1", NULL), 0, 0, 0); |
---|
972 | if(tmpstr != NULL) |
---|
973 | addskinconfigtmp("epgcol1", tmpstr); |
---|
974 | if(oldepgcol1 != convertcol("epgcol1")) reboot = 1; |
---|
975 | epgcol1->fontcol2 = convertcol(tmpstr); |
---|
976 | } |
---|
977 | |
---|
978 | if(listbox->select != NULL && ostrcmp(listbox->select->name, "epgcol2") == 0) |
---|
979 | { |
---|
980 | long oldepgcol2 = convertcol("epgcol2"); |
---|
981 | tmpstr = screencolorpicker(getskinconfig("epgcol2", NULL), 0, 0, 0); |
---|
982 | if(tmpstr != NULL) |
---|
983 | addskinconfigtmp("epgcol2", tmpstr); |
---|
984 | if(oldepgcol2 != convertcol("epgcol2")) reboot = 1; |
---|
985 | epgcol2->fontcol2 = convertcol(tmpstr); |
---|
986 | } |
---|
987 | |
---|
988 | if(listbox->select != NULL && ostrcmp(listbox->select->name, "epgcol3") == 0) |
---|
989 | { |
---|
990 | long oldepgcol3 = convertcol("epgcol3"); |
---|
991 | tmpstr = screencolorpicker(getskinconfig("epgcol3", NULL), 0, 0, 0); |
---|
992 | if(tmpstr != NULL) |
---|
993 | addskinconfigtmp("epgcol3", tmpstr); |
---|
994 | if(oldepgcol3 != convertcol("epgcol3")) reboot = 1; |
---|
995 | epgcol3->fontcol2 = convertcol(tmpstr); |
---|
996 | } |
---|
997 | |
---|
998 | if(listbox->select != NULL && ostrcmp(listbox->select->name, "emuaktivecol") == 0) |
---|
999 | { |
---|
1000 | long oldemuaktivecol = convertcol("emuaktivecol"); |
---|
1001 | tmpstr = screencolorpicker(getskinconfig("emuaktivecol", NULL), 0, 0, 0); |
---|
1002 | if(tmpstr != NULL) |
---|
1003 | addskinconfigtmp("emuaktivecol", tmpstr); |
---|
1004 | if(oldemuaktivecol != convertcol("emuaktivecol")) reboot = 1; |
---|
1005 | emuaktivecol->fontcol2 = convertcol(tmpstr); |
---|
1006 | } |
---|
1007 | |
---|
1008 | if(listbox->select != NULL && ostrcmp(listbox->select->name, "emurunningcol") == 0) |
---|
1009 | { |
---|
1010 | long oldemurunningcol = convertcol("emurunningcol"); |
---|
1011 | tmpstr = screencolorpicker(getskinconfig("emurunningcol", NULL), 0, 0, 0); |
---|
1012 | if(tmpstr != NULL) |
---|
1013 | addskinconfigtmp("emurunningcol", tmpstr); |
---|
1014 | if(oldemurunningcol != convertcol("emurunningcol")) reboot = 1; |
---|
1015 | emurunningcol->fontcol2 = convertcol(tmpstr); |
---|
1016 | } |
---|
1017 | |
---|
1018 | if(listbox->select != NULL && ostrcmp(listbox->select->name, "favcol") == 0) |
---|
1019 | { |
---|
1020 | long oldfavcol = convertcol("favcol"); |
---|
1021 | tmpstr = screencolorpicker(getskinconfig("favcol", NULL), 0, 0, 0); |
---|
1022 | if(tmpstr != NULL) |
---|
1023 | addskinconfigtmp("favcol", tmpstr); |
---|
1024 | if(oldfavcol != convertcol("favcol")) reboot = 1; |
---|
1025 | favcol->fontcol2 = convertcol(tmpstr); |
---|
1026 | } |
---|
1027 | drawscreen(skinadjust, 0, 0); |
---|
1028 | |
---|
1029 | debug(10, "%s set %s", listbox->select->name, tmpstr); |
---|
1030 | free(tmpstr), tmpstr = NULL; |
---|
1031 | continue; |
---|
1032 | } |
---|
1033 | |
---|
1034 | if(rcret == getrcconfigint("rcok", NULL)) |
---|
1035 | { |
---|
1036 | char* oldskinstyle_sel = getconfig("skinstyle", NULL); |
---|
1037 | addconfigscreencheck("skinstyle", skinstyle_sel, "0"); |
---|
1038 | if(ostrcmp(oldskinstyle_sel,getconfig("skinstyle", NULL)) != 0) |
---|
1039 | { |
---|
1040 | writeconfigtmp(); |
---|
1041 | |
---|
1042 | char* cmd = NULL; |
---|
1043 | cmd = ostrcat(cmd, "cp -a ", 1, 0); |
---|
1044 | cmd = ostrcat(cmd, skinpath, 1, 0); |
---|
1045 | cmd = ostrcat(cmd, "/", 1, 0); |
---|
1046 | cmd = ostrcat(cmd, skinstyle_sel->ret, 1, 0); |
---|
1047 | cmd = ostrcat(cmd, " ", 1, 0); |
---|
1048 | cmd = ostrcat(cmd, getconfig("skinconfig", NULL), 1, 0); |
---|
1049 | printf("cmd: %s\n", cmd); |
---|
1050 | system(cmd); |
---|
1051 | free(cmd); cmd = NULL; |
---|
1052 | |
---|
1053 | textbox(_("Message"), _("Titan will be restarted!"), _("OK"), getrcconfigint("rcok", NULL), NULL, 0, NULL, 0, NULL, 0, 1000, 200, 0, 0); |
---|
1054 | oshutdown(3, 0); |
---|
1055 | } |
---|
1056 | |
---|
1057 | if(ostrcmp(minitv->ret, "1") == 0) resettvpic(); |
---|
1058 | int oldminitv = getskinconfigint("minitv", NULL); |
---|
1059 | addskinconfigscreencheck("minitv", minitv, "0"); |
---|
1060 | if(oldminitv != getskinconfigint("minitv", NULL)) reboot = 1; |
---|
1061 | |
---|
1062 | int oldfontsizeadjust = getskinconfigint("fontsizeadjust", NULL); |
---|
1063 | addskinconfigscreencheck("fontsizeadjust", fontsizeadjust, "0"); |
---|
1064 | if(oldfontsizeadjust != getskinconfigint("fontsizeadjust", NULL)) reboot = 1; |
---|
1065 | status.fontsizeadjust = getskinconfigint("fontsizeadjust", NULL); |
---|
1066 | |
---|
1067 | addskinconfigscreencheck("listboxselecttype", listboxselecttype, "0"); |
---|
1068 | status.listboxselecttype = getskinconfigint("listboxselecttype", NULL); |
---|
1069 | |
---|
1070 | addskinconfigscreencheck("osdtransparent", osdtransparent, "0"); |
---|
1071 | setosdtransparent(getskinconfigint("osdtransparent", NULL)); |
---|
1072 | addconfigscreencheck("showrecfreesize", showrecfreesize, "0"); |
---|
1073 | status.showrecfreesize = getconfigint("showrecfreesize", NULL); |
---|
1074 | |
---|
1075 | char* oldinfobar_sel = getskinconfig("infobar_selection", NULL); |
---|
1076 | addskinconfigscreencheck("infobar_selection", infobar_sel, "0"); |
---|
1077 | if(ostrcmp(oldinfobar_sel,getskinconfig("infobar_selection", NULL)) != 0) reboot = 1; |
---|
1078 | //free(oldinfobar_sel); oldinfobar_sel=NULL; |
---|
1079 | |
---|
1080 | char* oldinfobar2_sel = getskinconfig("infobar2_selection", NULL); |
---|
1081 | addskinconfigscreencheck("infobar2_selection", infobar2_sel, "0"); |
---|
1082 | if(ostrcmp(oldinfobar2_sel,getskinconfig("infobar2_selection", NULL)) != 0) reboot = 1; |
---|
1083 | //free(oldinfobar2_sel); oldinfobar2_sel=NULL; |
---|
1084 | |
---|
1085 | char* oldchannellist_sel = getskinconfig("channellist_selection", NULL); |
---|
1086 | addskinconfigscreencheck("channellist_selection", channellist_sel, "0"); |
---|
1087 | if(ostrcmp(oldchannellist_sel,getskinconfig("channellist_selection", NULL)) != 0) reboot = 1; |
---|
1088 | //free(oldchannellist_sel); oldchannellist_sel=NULL; |
---|
1089 | |
---|
1090 | char* oldgmultiepg_sel = getskinconfig("gmultiepg_selection", NULL); |
---|
1091 | addskinconfigscreencheck("gmultiepg_selection", gmultiepg_sel, "0"); |
---|
1092 | if(ostrcmp(oldgmultiepg_sel,getskinconfig("gmultiepg_selection", NULL)) != 0) reboot = 1; |
---|
1093 | //free(oldgmultiepg_sel); oldgmultiepg_sel=NULL; |
---|
1094 | |
---|
1095 | addconfig("skinblinkoff", blinkoff->ret); |
---|
1096 | |
---|
1097 | writeskinconfigtmp(); |
---|
1098 | |
---|
1099 | if(ostrcmp(skinstyle_sel->ret, "skinconfig.default") != 0) |
---|
1100 | { |
---|
1101 | char* cmd = NULL; |
---|
1102 | cmd = ostrcat(cmd, "cp -a ", 1, 0); |
---|
1103 | cmd = ostrcat(cmd, getconfig("skinconfig", NULL), 1, 0); |
---|
1104 | cmd = ostrcat(cmd, " ", 1, 0); |
---|
1105 | cmd = ostrcat(cmd, skinpath, 1, 0); |
---|
1106 | cmd = ostrcat(cmd, "/", 1, 0); |
---|
1107 | cmd = ostrcat(cmd, skinstyle_sel->ret, 1, 0); |
---|
1108 | printf("cmd: %s\n", cmd); |
---|
1109 | system(cmd); |
---|
1110 | free(cmd); cmd = NULL; |
---|
1111 | } |
---|
1112 | |
---|
1113 | if(reboot == 1) |
---|
1114 | { |
---|
1115 | textbox(_("Message"), _("Titan will be restarted!"), _("OK"), getrcconfigint("rcok", NULL), NULL, 0, NULL, 0, NULL, 0, 1000, 200, 0, 0); |
---|
1116 | oshutdown(3, 0); |
---|
1117 | } |
---|
1118 | |
---|
1119 | break; |
---|
1120 | } |
---|
1121 | } |
---|
1122 | |
---|
1123 | setosdtransparent(getskinconfigint("osdtransparent", NULL)); |
---|
1124 | |
---|
1125 | delskinconfigtmpall(); |
---|
1126 | delownerrc(skinadjust); |
---|
1127 | clearscreen(skinadjust); |
---|
1128 | } |
---|
1129 | |
---|
1130 | #endif |
---|