Changeset 33015
- Timestamp:
- 02/15/15 02:46:02 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/titan/skinadjust.h
r33007 r33015 19 19 struct skin* filelistselect = getscreennode(skinadjust, "filelistselect"); 20 20 struct skin* bordercolselect = getscreennode(skinadjust, "bordercolselect"); 21 struct skin* bgcol = getscreennode(skinadjust, "bgcol"); 22 struct skin* bgcol2 = getscreennode(skinadjust, "bgcol2"); 23 struct skin* fontcol = getscreennode(skinadjust, "fontcol"); 24 struct skin* bordercol = getscreennode(skinadjust, "bordercol"); 25 struct skin* progresscol = getscreennode(skinadjust, "progresscol"); 26 struct skin* titlebgcol = getscreennode(skinadjust, "titlebgcol"); 27 struct skin* markcol = getscreennode(skinadjust, "markcol"); 21 28 22 29 struct skin* oled_sel = getscreennode(skinadjust, "oled_sel"); … … 25 32 struct skin* pic1 = getscreennode(skinadjust, "pic1"); 26 33 struct skin* pic2 = getscreennode(skinadjust, "pic2"); 27 28 34 struct skin* b4 = getscreennode(skinadjust, "b4"); 29 struct skin* b5 = getscreennode(skinadjust, "b5");30 struct skin* b6 = getscreennode(skinadjust, "b6");31 struct skin* b7 = getscreennode(skinadjust, "b7");32 35 33 36 struct skin* tmp = NULL; … … 132 135 133 136 b4->hidden = YES; 134 b5->hidden = YES;135 b6->hidden = YES;136 b7->hidden = YES;137 137 138 138 drawscreen(skinadjust, 0, 0); … … 210 210 } 211 211 212 continue;213 }214 215 if(rcret == getrcconfigint("rcgreen", NULL))216 {217 212 if(listbox->select != NULL && ostrcmp(listbox->select->name, "tithek_selectcol") == 0) 218 213 { … … 225 220 } 226 221 227 continue;228 }229 230 if(rcret == getrcconfigint("rcyellow", NULL))231 {232 222 if(listbox->select != NULL && ostrcmp(listbox->select->name, "filelistselect") == 0) 233 223 { … … 240 230 } 241 231 242 continue;243 }244 245 if(rcret == getrcconfigint("rcblue", NULL))246 {247 232 if(listbox->select != NULL && ostrcmp(listbox->select->name, "bordercolselect") == 0) 248 233 { … … 252 237 addskinconfigtmp("bordercolselect", tmpstr); 253 238 if(oldbordercolselect != convertcol("bordercolselect")) reboot = 1; 239 drawscreen(skinadjust, 0, 0); 240 } 241 242 if(listbox->select != NULL && ostrcmp(listbox->select->name, "bgcol") == 0) 243 { 244 long oldbgcol = convertcol("bgcol"); 245 char* tmpstr = screencolorpicker(getskinconfig("bgcol", NULL), 0, 0, 0); 246 if(tmpstr != NULL) 247 addskinconfigtmp("bgcol", tmpstr); 248 if(oldbgcol != convertcol("bgcol")) reboot = 1; 249 drawscreen(skinadjust, 0, 0); 250 } 251 252 if(listbox->select != NULL && ostrcmp(listbox->select->name, "bgcol2") == 0) 253 { 254 long oldbgcol2 = convertcol("bgcol2"); 255 char* tmpstr = screencolorpicker(getskinconfig("bgcol2", NULL), 0, 0, 0); 256 if(tmpstr != NULL) 257 addskinconfigtmp("bgcol2", tmpstr); 258 if(oldbgcol2 != convertcol("bgcol2")) reboot = 1; 259 drawscreen(skinadjust, 0, 0); 260 } 261 262 if(listbox->select != NULL && ostrcmp(listbox->select->name, "fontcol") == 0) 263 { 264 long oldfontcol = convertcol("fontcol"); 265 char* tmpstr = screencolorpicker(getskinconfig("fontcol", NULL), 0, 0, 0); 266 if(tmpstr != NULL) 267 addskinconfigtmp("fontcol", tmpstr); 268 if(oldfontcol != convertcol("fontcol")) reboot = 1; 269 drawscreen(skinadjust, 0, 0); 270 } 271 272 if(listbox->select != NULL && ostrcmp(listbox->select->name, "bordercol") == 0) 273 { 274 long oldbordercol = convertcol("bordercol"); 275 char* tmpstr = screencolorpicker(getskinconfig("bordercol", NULL), 0, 0, 0); 276 if(tmpstr != NULL) 277 addskinconfigtmp("bordercol", tmpstr); 278 if(oldbordercol != convertcol("bordercol")) reboot = 1; 279 drawscreen(skinadjust, 0, 0); 280 } 281 282 if(listbox->select != NULL && ostrcmp(listbox->select->name, "progresscol") == 0) 283 { 284 long oldprogresscol = convertcol("progresscol"); 285 char* tmpstr = screencolorpicker(getskinconfig("progresscol", NULL), 0, 0, 0); 286 if(tmpstr != NULL) 287 addskinconfigtmp("progresscol", tmpstr); 288 if(oldprogresscol != convertcol("progresscol")) reboot = 1; 289 drawscreen(skinadjust, 0, 0); 290 } 291 292 if(listbox->select != NULL && ostrcmp(listbox->select->name, "titlebgcol") == 0) 293 { 294 long oldtitlebgcol = convertcol("titlebgcol"); 295 char* tmpstr = screencolorpicker(getskinconfig("titlebgcol", NULL), 0, 0, 0); 296 if(tmpstr != NULL) 297 addskinconfigtmp("titlebgcol", tmpstr); 298 if(oldtitlebgcol != convertcol("titlebgcol")) reboot = 1; 299 drawscreen(skinadjust, 0, 0); 300 } 301 302 if(listbox->select != NULL && ostrcmp(listbox->select->name, "markcol") == 0) 303 { 304 long oldmarkcol = convertcol("markcol"); 305 char* tmpstr = screencolorpicker(getskinconfig("markcol", NULL), 0, 0, 0); 306 if(tmpstr != NULL) 307 addskinconfigtmp("markcol", tmpstr); 308 if(oldmarkcol != convertcol("markcol")) reboot = 1; 254 309 drawscreen(skinadjust, 0, 0); 255 310 } … … 297 352 if(ostrcmp(listbox->select->name, "listboxselect") == 0) 298 353 b4->hidden = NO; 354 else if(ostrcmp(listbox->select->name, "tithek_selectcol") == 0) 355 b4->hidden = NO; 356 else if(ostrcmp(listbox->select->name, "filelistselect") == 0) 357 b4->hidden = NO; 358 else if(ostrcmp(listbox->select->name, "bordercolselect") == 0) 359 b4->hidden = NO; 360 else if(ostrcmp(listbox->select->name, "bgcol") == 0) 361 b4->hidden = NO; 362 else if(ostrcmp(listbox->select->name, "bgcol2") == 0) 363 b4->hidden = NO; 364 else if(ostrcmp(listbox->select->name, "fontcol") == 0) 365 b4->hidden = NO; 366 else if(ostrcmp(listbox->select->name, "bordercol") == 0) 367 b4->hidden = NO; 368 else if(ostrcmp(listbox->select->name, "titlebgcol") == 0) 369 b4->hidden = NO; 370 else if(ostrcmp(listbox->select->name, "progresscol") == 0) 371 b4->hidden = NO; 372 else if(ostrcmp(listbox->select->name, "markcol") == 0) 373 b4->hidden = NO; 299 374 else 300 375 b4->hidden = YES; 301 302 if(ostrcmp(listbox->select->name, "tithek_selectcol") == 0) 303 b5->hidden = NO; 304 else 305 b5->hidden = YES; 306 307 if(ostrcmp(listbox->select->name, "filelistselect") == 0) 308 b6->hidden = NO; 309 else 310 b6->hidden = YES; 311 312 if(ostrcmp(listbox->select->name, "bordercolselect") == 0) 313 b7->hidden = NO; 314 else 315 b7->hidden = YES; 316 376 317 377 drawscreen(skinadjust, 0, 0); 318 378 }
Note: See TracChangeset
for help on using the changeset viewer.