Changeset 33039
- Timestamp:
- 02/15/15 15:30:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/titan/skinadjust.h
r33015 r33039 5 5 { 6 6 int rcret = 0, oleftoffset = 0, orightoffset = 0, otopoffset = 0, obottomoffset = 0, reboot = 0; 7 char* tmpstr = NULL; 7 8 struct skin* skinadjust = getscreen("skinadjust"); 8 9 struct skin* listbox = getscreennode(skinadjust, "listbox"); … … 18 19 struct skin* tithek_selectcol = getscreennode(skinadjust, "tithek_selectcol"); 19 20 struct skin* filelistselect = getscreennode(skinadjust, "filelistselect"); 20 struct skin* b ordercolselect = getscreennode(skinadjust, "bordercolselect");21 struct skin* buttonbar_bgcol2 = getscreennode(skinadjust, "buttonbar_bgcol2"); 21 22 struct skin* bgcol = getscreennode(skinadjust, "bgcol"); 22 23 struct skin* bgcol2 = getscreennode(skinadjust, "bgcol2"); … … 129 130 setchoiceboxselection(showrecfreesize, getconfig("showrecfreesize", NULL)); 130 131 131 addchoicebox(listboxselect, "0", _("press red")); 132 addchoicebox(tithek_selectcol, "1", _("press green")); 133 addchoicebox(filelistselect, "2", _("press yellow")); 134 addchoicebox(bordercolselect, "2", _("press blue")); 132 133 // addchoicebox(listboxselect, "0", _("press red")); 134 135 addchoicebox(listboxselect, "0", getskinconfig("markcol", NULL)); 136 addchoicebox(tithek_selectcol, "1", getskinconfig("tithek_selectcol", NULL)); 137 addchoicebox(filelistselect, "2", getskinconfig("filelistselect", NULL)); 138 addchoicebox(buttonbar_bgcol2, "3", getskinconfig("buttonbar_bgcol2", NULL)); 139 addchoicebox(bgcol, "3", getskinconfig("bgcol", NULL)); 140 addchoicebox(bgcol2, "4", getskinconfig("bgcol2", NULL)); 141 addchoicebox(fontcol, "5", getskinconfig("fontcol", NULL)); 142 addchoicebox(bordercol, "6", getskinconfig("bordercol", NULL)); 143 addchoicebox(progresscol, "7", getskinconfig("progresscol", NULL)); 144 addchoicebox(titlebgcol, "8", getskinconfig("titlebgcol", NULL)); 145 addchoicebox(markcol, "9", getskinconfig("markcol", NULL)); 135 146 136 147 b4->hidden = YES; … … 173 184 if((rcret == getrcconfigint("rcleft", NULL) || rcret == getrcconfigint("rcright", NULL)) && checkbox("ATEMIO-NEMESIS") == 1 && listbox->select != NULL && ostrcmp(listbox->select->name, "oled_sel") == 0) 174 185 { 175 char* tmpstr = NULL;176 186 tmpstr = ostrcat(tmpstr, oled_sel->ret, 0, 0); 177 187 struct skin* OLED_nemesis = getscreen(tmpstr); … … 197 207 break; 198 208 } 199 209 200 210 if(rcret == getrcconfigint("rcred", NULL)) 201 211 { … … 203 213 { 204 214 long oldlistboxselectcol = convertcol("listboxselect"); 205 char*tmpstr = screencolorpicker(getskinconfig("listboxselect", NULL), 0, 0, 0);215 tmpstr = screencolorpicker(getskinconfig("listboxselect", NULL), 0, 0, 0); 206 216 if(tmpstr != NULL) 207 217 addskinconfigtmp("listboxselect", tmpstr); 208 218 if(oldlistboxselectcol != convertcol("listboxselect")) reboot = 1; 209 drawscreen(skinadjust, 0, 0);210 219 } 211 220 … … 213 222 { 214 223 long oldtithek_selectcol = convertcol("tithek_selectcol"); 215 char*tmpstr = screencolorpicker(getskinconfig("tithek_selectcol", NULL), 0, 0, 0);224 tmpstr = screencolorpicker(getskinconfig("tithek_selectcol", NULL), 0, 0, 0); 216 225 if(tmpstr != NULL) 217 226 addskinconfigtmp("tithek_selectcol", tmpstr); 218 227 if(oldtithek_selectcol != convertcol("tithek_selectcol")) reboot = 1; 219 drawscreen(skinadjust, 0, 0);220 228 } 221 229 … … 223 231 { 224 232 long oldfilelistselect = convertcol("filelistselect"); 225 char*tmpstr = screencolorpicker(getskinconfig("filelistselect", NULL), 0, 0, 0);233 tmpstr = screencolorpicker(getskinconfig("filelistselect", NULL), 0, 0, 0); 226 234 if(tmpstr != NULL) 227 235 addskinconfigtmp("filelistselect", tmpstr); 228 236 if(oldfilelistselect != convertcol("filelistselect")) reboot = 1; 229 drawscreen(skinadjust, 0, 0); 230 } 231 232 if(listbox->select != NULL && ostrcmp(listbox->select->name, "bordercolselect") == 0) 233 { 234 long oldbordercolselect = convertcol("bordercolselect"); 235 char* tmpstr = screencolorpicker(getskinconfig("bordercolselect", NULL), 0, 0, 0); 236 if(tmpstr != NULL) 237 addskinconfigtmp("bordercolselect", tmpstr); 238 if(oldbordercolselect != convertcol("bordercolselect")) reboot = 1; 239 drawscreen(skinadjust, 0, 0); 237 } 238 239 if(listbox->select != NULL && ostrcmp(listbox->select->name, "buttonbar_bgcol2") == 0) 240 { 241 long oldbuttonbar_bgcol2 = convertcol("buttonbar_bgcol2"); 242 tmpstr = screencolorpicker(getskinconfig("buttonbar_bgcol2", NULL), 0, 0, 0); 243 if(tmpstr != NULL) 244 addskinconfigtmp("buttonbar_bgcol2", tmpstr); 245 if(oldbuttonbar_bgcol2 != convertcol("buttonbar_bgcol2")) reboot = 1; 240 246 } 241 247 … … 243 249 { 244 250 long oldbgcol = convertcol("bgcol"); 245 char*tmpstr = screencolorpicker(getskinconfig("bgcol", NULL), 0, 0, 0);251 tmpstr = screencolorpicker(getskinconfig("bgcol", NULL), 0, 0, 0); 246 252 if(tmpstr != NULL) 247 253 addskinconfigtmp("bgcol", tmpstr); 248 254 if(oldbgcol != convertcol("bgcol")) reboot = 1; 249 drawscreen(skinadjust, 0, 0);250 255 } 251 256 … … 253 258 { 254 259 long oldbgcol2 = convertcol("bgcol2"); 255 char*tmpstr = screencolorpicker(getskinconfig("bgcol2", NULL), 0, 0, 0);260 tmpstr = screencolorpicker(getskinconfig("bgcol2", NULL), 0, 0, 0); 256 261 if(tmpstr != NULL) 257 262 addskinconfigtmp("bgcol2", tmpstr); 258 263 if(oldbgcol2 != convertcol("bgcol2")) reboot = 1; 259 drawscreen(skinadjust, 0, 0);260 264 } 261 265 … … 263 267 { 264 268 long oldfontcol = convertcol("fontcol"); 265 char*tmpstr = screencolorpicker(getskinconfig("fontcol", NULL), 0, 0, 0);269 tmpstr = screencolorpicker(getskinconfig("fontcol", NULL), 0, 0, 0); 266 270 if(tmpstr != NULL) 267 271 addskinconfigtmp("fontcol", tmpstr); 268 272 if(oldfontcol != convertcol("fontcol")) reboot = 1; 269 drawscreen(skinadjust, 0, 0);270 273 } 271 274 … … 273 276 { 274 277 long oldbordercol = convertcol("bordercol"); 275 char*tmpstr = screencolorpicker(getskinconfig("bordercol", NULL), 0, 0, 0);278 tmpstr = screencolorpicker(getskinconfig("bordercol", NULL), 0, 0, 0); 276 279 if(tmpstr != NULL) 277 280 addskinconfigtmp("bordercol", tmpstr); 278 281 if(oldbordercol != convertcol("bordercol")) reboot = 1; 279 drawscreen(skinadjust, 0, 0);280 282 } 281 283 … … 283 285 { 284 286 long oldprogresscol = convertcol("progresscol"); 285 char*tmpstr = screencolorpicker(getskinconfig("progresscol", NULL), 0, 0, 0);287 tmpstr = screencolorpicker(getskinconfig("progresscol", NULL), 0, 0, 0); 286 288 if(tmpstr != NULL) 287 289 addskinconfigtmp("progresscol", tmpstr); 288 290 if(oldprogresscol != convertcol("progresscol")) reboot = 1; 289 drawscreen(skinadjust, 0, 0);290 291 } 291 292 … … 293 294 { 294 295 long oldtitlebgcol = convertcol("titlebgcol"); 295 char*tmpstr = screencolorpicker(getskinconfig("titlebgcol", NULL), 0, 0, 0);296 tmpstr = screencolorpicker(getskinconfig("titlebgcol", NULL), 0, 0, 0); 296 297 if(tmpstr != NULL) 297 298 addskinconfigtmp("titlebgcol", tmpstr); 298 299 if(oldtitlebgcol != convertcol("titlebgcol")) reboot = 1; 299 drawscreen(skinadjust, 0, 0);300 300 } 301 301 … … 303 303 { 304 304 long oldmarkcol = convertcol("markcol"); 305 char*tmpstr = screencolorpicker(getskinconfig("markcol", NULL), 0, 0, 0);305 tmpstr = screencolorpicker(getskinconfig("markcol", NULL), 0, 0, 0); 306 306 if(tmpstr != NULL) 307 307 addskinconfigtmp("markcol", tmpstr); 308 308 if(oldmarkcol != convertcol("markcol")) reboot = 1; 309 drawscreen(skinadjust, 0, 0); 310 } 311 309 } 310 311 drawscreen(skinadjust, 0, 0); 312 313 debug(10, "%s set %s", listbox->select->name, tmpstr); 314 free(tmpstr), tmpstr = NULL; 312 315 continue; 313 316 } … … 322 325 addskinconfigscreencheck("listboxselecttype", listboxselecttype, "0"); 323 326 status.listboxselecttype = getskinconfigint("listboxselecttype", NULL); 327 324 328 addskinconfigscreencheck("osdtransparent", osdtransparent, "0"); 325 329 setosdtransparent(getskinconfigint("osdtransparent", NULL)); … … 356 360 else if(ostrcmp(listbox->select->name, "filelistselect") == 0) 357 361 b4->hidden = NO; 358 else if(ostrcmp(listbox->select->name, "b ordercolselect") == 0)362 else if(ostrcmp(listbox->select->name, "buttonbar_bgcol2") == 0) 359 363 b4->hidden = NO; 360 364 else if(ostrcmp(listbox->select->name, "bgcol") == 0)
Note: See TracChangeset
for help on using the changeset viewer.