Changeset 33004


Ignore:
Timestamp:
02/14/15 23:39:41 (9 years ago)
Author:
aafsvn
Message:

skinadjust add bordercolselect colorpicer

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/titan/skinadjust.h

    r32307 r33004  
    1818        struct skin* tithek_selectcol = getscreennode(skinadjust, "tithek_selectcol");
    1919        struct skin* filelistselect = getscreennode(skinadjust, "filelistselect");
     20        struct skin* bordercolselect = getscreennode(skinadjust, "bordercolselect");
    2021
    2122        struct skin* oled_sel = getscreennode(skinadjust, "oled_sel");
     
    123124        addchoicebox(tithek_selectcol, "1", _("press green"));
    124125        addchoicebox(filelistselect, "2", _("press yellow"));
     126        addchoicebox(bordercolselect, "2", _("press blue"));
    125127
    126128        drawscreen(skinadjust, 0, 0);
     
    231233                }
    232234
     235                if(rcret == getrcconfigint("rcblue", NULL))
     236                {
     237                        if(listbox->select != NULL && ostrcmp(listbox->select->name, "bordercolselect") == 0)
     238                        {
     239                                long oldbordercolselect = convertcol("bordercolselect");
     240                                char* tmpstr = screencolorpicker(getskinconfig("bordercolselect", NULL), 0, 0, 0);
     241                                if(tmpstr != NULL)
     242                                        addskinconfigtmp("bordercolselect", tmpstr);
     243                                if(oldbordercolselect != convertcol("bordercolselect")) reboot = 1;
     244                                drawscreen(skinadjust, 0, 0);
     245                        }
     246
     247                        continue;
     248                }
     249
    233250                if(rcret == getrcconfigint("rcok", NULL))
    234251                {
Note: See TracChangeset for help on using the changeset viewer.