[9119] | 1 | #ifndef SKINADJUST_H |
---|
| 2 | #define SKINADJUST_H |
---|
| 3 | |
---|
| 4 | void screenskinadjust() |
---|
| 5 | { |
---|
[22387] | 6 | int rcret = 0, oleftoffset = 0, orightoffset = 0, otopoffset = 0, obottomoffset = 0, reboot = 0; |
---|
[33039] | 7 | char* tmpstr = NULL; |
---|
[9119] | 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"); |
---|
[9121] | 12 | struct skin* osdtransparent = getscreennode(skinadjust, "osdtransparent"); |
---|
[35553] | 13 | struct skin* blinkoff = getscreennode(skinadjust, "blinkoff"); |
---|
[28340] | 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"); |
---|
[20822] | 18 | struct skin* showrecfreesize = getscreennode(skinadjust, "showrecfreesize"); |
---|
[22355] | 19 | struct skin* listboxselect = getscreennode(skinadjust, "listboxselect"); |
---|
[30972] | 20 | struct skin* tithek_selectcol = getscreennode(skinadjust, "tithek_selectcol"); |
---|
| 21 | struct skin* filelistselect = getscreennode(skinadjust, "filelistselect"); |
---|
[33160] | 22 | struct skin* buttonbar_bgcol = getscreennode(skinadjust, "buttonbar_bgcol"); |
---|
[33039] | 23 | struct skin* buttonbar_bgcol2 = getscreennode(skinadjust, "buttonbar_bgcol2"); |
---|
[33160] | 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"); |
---|
[33015] | 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"); |
---|
[33213] | 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"); |
---|
[33214] | 44 | struct skin* mvmode_bgcol = getscreennode(skinadjust, "mvmode_bgcol"); |
---|
[33213] | 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"); |
---|
[33831] | 54 | struct skin* favcol = getscreennode(skinadjust, "favcol"); |
---|
[38473] | 55 | struct skin* minitv = getscreennode(skinadjust, "choiceminitv"); |
---|
[32298] | 56 | |
---|
| 57 | struct skin* infobar_sel = getscreennode(skinadjust, "infobar_sel"); |
---|
[32302] | 58 | struct skin* infobar2_sel = getscreennode(skinadjust, "infobar2_sel"); |
---|
[38291] | 59 | struct skin* channellist_sel = getscreennode(skinadjust, "channellist_sel"); |
---|
[38281] | 60 | |
---|
| 61 | struct skin* filelist = getscreennode(skinadjust, "filelist"); |
---|
| 62 | struct skin* skinstyle_sel = getscreennode(skinadjust, "skinstyle_sel"); |
---|
| 63 | struct skin* node = NULL; |
---|
| 64 | |
---|
[33632] | 65 | // struct skin* pic1 = getscreennode(skinadjust, "pic1"); |
---|
| 66 | // struct skin* pic2 = getscreennode(skinadjust, "pic2"); |
---|
[33160] | 67 | struct skin* b5 = getscreennode(skinadjust, "b5"); |
---|
[33007] | 68 | |
---|
[9119] | 69 | struct skin* tmp = NULL; |
---|
| 70 | |
---|
[38437] | 71 | 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"); |
---|
[9119] | 72 | setchoiceboxselection(fontsizeadjust, getskinconfig("fontsizeadjust", NULL)); |
---|
| 73 | |
---|
| 74 | addchoicebox(listboxselecttype, "0", _("border")); |
---|
| 75 | addchoicebox(listboxselecttype, "1", _("bar")); |
---|
[9812] | 76 | addchoicebox(listboxselecttype, "2", _("text")); |
---|
[15152] | 77 | addchoicebox(listboxselecttype, "3", _("picture")); |
---|
[9119] | 78 | setchoiceboxselection(listboxselecttype, getskinconfig("listboxselecttype", NULL)); |
---|
[32298] | 79 | |
---|
[9231] | 80 | changeinput(osdtransparent, "0\n5\n10\n15\n20\n25\n30\n35\n40\n45\n50\n55\n60\n65\n70"); |
---|
[9121] | 81 | setchoiceboxselection(osdtransparent, getskinconfig("osdtransparent", NULL)); |
---|
[35553] | 82 | |
---|
[35574] | 83 | addchoicebox(blinkoff, "0", _("on")); |
---|
| 84 | addchoicebox(blinkoff, "1", _("off")); |
---|
| 85 | setchoiceboxselection(blinkoff, getconfig("skinblinkoff", NULL)); |
---|
[9121] | 86 | |
---|
[28991] | 87 | #ifdef MIPSEL |
---|
| 88 | changeinput(leftoffset, "0\n1\n2\n3\n4\n5\n6\n7\n8\n9\n10\n11\n12\n13\n14\n15\n16\n17\n18\n19\n20"); |
---|
| 89 | setchoiceboxselection(leftoffset, getconfig("fbleftoffset", NULL)); |
---|
| 90 | |
---|
| 91 | changeinput(rightoffset, "0\n1\n2\n3\n4\n5\n6\n7\n8\n9\n10\n11\n12\n13\n14\n15\n16\n17\n18\n19\n20"); |
---|
| 92 | setchoiceboxselection(rightoffset, getconfig("fbrightoffset", NULL)); |
---|
| 93 | |
---|
| 94 | changeinput(topoffset, "0\n1\n2\n3\n4\n5\n6\n7\n8\n9\n10\n11\n12\n13\n14\n15\n16\n17\n18\n19\n20"); |
---|
| 95 | setchoiceboxselection(topoffset, getconfig("fbtopoffset", NULL)); |
---|
| 96 | |
---|
| 97 | changeinput(bottomoffset, "0\n1\n2\n3\n4\n5\n6\n7\n8\n9\n10\n11\n12\n13\n14\n15\n16\n17\n18\n19\n20"); |
---|
| 98 | setchoiceboxselection(bottomoffset, getconfig("fbbottomoffset", NULL)); |
---|
| 99 | #else |
---|
[9299] | 100 | changeinput(leftoffset, "0\n10\n20\n30\n40\n50\n60\n70\n80\n90\n100"); |
---|
| 101 | setchoiceboxselection(leftoffset, getconfig("fbleftoffset", NULL)); |
---|
| 102 | |
---|
| 103 | changeinput(rightoffset, "0\n10\n20\n30\n40\n50\n60\n70\n80\n90\n100"); |
---|
| 104 | setchoiceboxselection(rightoffset, getconfig("fbrightoffset", NULL)); |
---|
| 105 | |
---|
| 106 | changeinput(topoffset, "0\n10\n20\n30\n40\n50\n60\n70\n80\n90\n100"); |
---|
| 107 | setchoiceboxselection(topoffset, getconfig("fbtopoffset", NULL)); |
---|
| 108 | |
---|
| 109 | changeinput(bottomoffset, "0\n10\n20\n30\n40\n50\n60\n70\n80\n90\n100"); |
---|
| 110 | setchoiceboxselection(bottomoffset, getconfig("fbbottomoffset", NULL)); |
---|
[28991] | 111 | #endif |
---|
[14340] | 112 | oleftoffset = getconfigint("fbleftoffset", NULL); |
---|
| 113 | orightoffset = getconfigint("fbrightoffset", NULL); |
---|
| 114 | otopoffset = getconfigint("fbtopoffset", NULL); |
---|
| 115 | obottomoffset = getconfigint("fbbottomoffset", NULL); |
---|
[28347] | 116 | |
---|
[32298] | 117 | if(checkscreen("infobar") != status.skinerr) |
---|
| 118 | addchoicebox(infobar_sel, "infobar", "v1"); |
---|
| 119 | if(checkscreen("infobar_v2") != status.skinerr) |
---|
| 120 | addchoicebox(infobar_sel, "infobar_v2","v2"); |
---|
| 121 | if(checkscreen("infobar_v3") != status.skinerr) |
---|
| 122 | addchoicebox(infobar_sel, "infobar_v3","v3"); |
---|
[38294] | 123 | if(checkscreen("infobar_v4") != status.skinerr) |
---|
| 124 | addchoicebox(infobar_sel, "infobar_v4","v4"); |
---|
| 125 | if(checkscreen("infobar_v5") != status.skinerr) |
---|
| 126 | addchoicebox(infobar_sel, "infobar_v5","v5"); |
---|
[32300] | 127 | setchoiceboxselection(infobar_sel, getskinconfig("infobar_selection", NULL)); |
---|
[32298] | 128 | |
---|
[32302] | 129 | if(checkscreen("infobar2") != status.skinerr) |
---|
| 130 | addchoicebox(infobar2_sel, "infobar2", "v1"); |
---|
| 131 | if(checkscreen("infobar2_v2") != status.skinerr) |
---|
| 132 | addchoicebox(infobar2_sel, "infobar2_v2","v2"); |
---|
| 133 | if(checkscreen("infobar2_v3") != status.skinerr) |
---|
| 134 | addchoicebox(infobar2_sel, "infobar2_v3","v3"); |
---|
[38294] | 135 | if(checkscreen("infobar2_v4") != status.skinerr) |
---|
| 136 | addchoicebox(infobar2_sel, "infobar2_v4","v4"); |
---|
| 137 | if(checkscreen("infobar2_v5") != status.skinerr) |
---|
| 138 | addchoicebox(infobar2_sel, "infobar2_v5","v5"); |
---|
[32302] | 139 | setchoiceboxselection(infobar2_sel, getskinconfig("infobar2_selection", NULL)); |
---|
| 140 | |
---|
[38291] | 141 | if(checkscreen("channellist") != status.skinerr) |
---|
| 142 | addchoicebox(channellist_sel, "channellist", "v1"); |
---|
| 143 | if(checkscreen("channellist_v2") != status.skinerr) |
---|
| 144 | addchoicebox(channellist_sel, "channellist_v2","v2"); |
---|
| 145 | if(checkscreen("channellist_v3") != status.skinerr) |
---|
| 146 | addchoicebox(channellist_sel, "channellist_v3","v3"); |
---|
[38294] | 147 | if(checkscreen("channellist_v4") != status.skinerr) |
---|
| 148 | addchoicebox(channellist_sel, "channellist_v4","v4"); |
---|
| 149 | if(checkscreen("channellist_v5") != status.skinerr) |
---|
| 150 | addchoicebox(channellist_sel, "channellist_v5","v5"); |
---|
[38291] | 151 | setchoiceboxselection(channellist_sel, getskinconfig("channellist_selection", NULL)); |
---|
| 152 | |
---|
[38281] | 153 | if(file_exist(getconfig("skinpath", NULL))) |
---|
| 154 | { |
---|
| 155 | delmarkedscreennodes(skinadjust, FILELISTDELMARK); |
---|
| 156 | changeinput(filelist, getconfig("skinpath", NULL)); |
---|
| 157 | changemask(filelist, "*"); |
---|
| 158 | createfilelist(skinadjust, filelist, 0); |
---|
| 159 | |
---|
| 160 | node = filelist; |
---|
| 161 | while(node != NULL) |
---|
| 162 | { |
---|
| 163 | if(node->del == FILELISTDELMARK && node->text != NULL && ostrcmp(node->text, "..") != 0) |
---|
| 164 | { |
---|
| 165 | if(!ostrncmp("skinconfig.", node->text, 11)) |
---|
| 166 | { |
---|
| 167 | tmpstr = string_replace("skinconfig.", "", node->text, 0); |
---|
| 168 | addchoicebox(skinstyle_sel, node->text, tmpstr); |
---|
| 169 | free(tmpstr), tmpstr = NULL; |
---|
| 170 | } |
---|
| 171 | } |
---|
| 172 | node = node->next; |
---|
| 173 | } |
---|
| 174 | setchoiceboxselection(skinstyle_sel, getconfig("skinstyle", NULL)); |
---|
| 175 | } |
---|
| 176 | |
---|
[34906] | 177 | addchoicebox(showrecfreesize, "0", _("No")); |
---|
| 178 | addchoicebox(showrecfreesize, "1", _("%")); |
---|
| 179 | addchoicebox(showrecfreesize, "2", _("GB")); |
---|
[20822] | 180 | setchoiceboxselection(showrecfreesize, getconfig("showrecfreesize", NULL)); |
---|
[32298] | 181 | |
---|
[38473] | 182 | addchoicebox(minitv, "0", _("no")); |
---|
| 183 | addchoicebox(minitv, "1", _("yes")); |
---|
| 184 | setchoiceboxselection(minitv, getskinconfig("minitv", NULL)); |
---|
| 185 | |
---|
[34028] | 186 | addchoicebox(listboxselect, "0", getskinconfig("listboxselect", NULL)); |
---|
[33039] | 187 | addchoicebox(tithek_selectcol, "1", getskinconfig("tithek_selectcol", NULL)); |
---|
| 188 | addchoicebox(filelistselect, "2", getskinconfig("filelistselect", NULL)); |
---|
[33160] | 189 | addchoicebox(buttonbar_bgcol, "3", getskinconfig("buttonbar_bgcol", NULL)); |
---|
| 190 | addchoicebox(buttonbar_bgcol2, "4", getskinconfig("buttonbar_bgcol2", NULL)); |
---|
| 191 | addchoicebox(buttonbar_bordercol, "5", getskinconfig("buttonbar_bordercol", NULL)); |
---|
| 192 | addchoicebox(buttonbar_fontcol, "6", getskinconfig("buttonbar_fontcol", NULL)); |
---|
| 193 | addchoicebox(titlebar_bgcol, "7", getskinconfig("titlebar_bgcol", NULL)); |
---|
| 194 | addchoicebox(titlebar_bgcol2, "8", getskinconfig("titlebar_bgcol2", NULL)); |
---|
| 195 | addchoicebox(titlebar_bordercol, "9", getskinconfig("titlebar_bordercol", NULL)); |
---|
| 196 | addchoicebox(titlebar_fontcol, "10", getskinconfig("titlebar_fontcol", NULL)); |
---|
[33201] | 197 | addchoicebox(okcol, "11", getskinconfig("okcol", NULL)); |
---|
| 198 | addchoicebox(exitcol, "12", getskinconfig("exitcol", NULL)); |
---|
| 199 | addchoicebox(deaktivcol, "13", getskinconfig("deaktivcol", NULL)); |
---|
| 200 | addchoicebox(bgcol, "14", getskinconfig("bgcol", NULL)); |
---|
| 201 | addchoicebox(bgcol2, "15", getskinconfig("bgcol2", NULL)); |
---|
| 202 | addchoicebox(fontcol, "16", getskinconfig("fontcol", NULL)); |
---|
| 203 | addchoicebox(bordercol, "17", getskinconfig("bordercol", NULL)); |
---|
| 204 | addchoicebox(progresscol, "18", getskinconfig("progresscol", NULL)); |
---|
| 205 | addchoicebox(titlebgcol, "19", getskinconfig("titlebgcol", NULL)); |
---|
| 206 | addchoicebox(markcol, "20", getskinconfig("markcol", NULL)); |
---|
| 207 | addchoicebox(cpmode_bgcol, "21", getskinconfig("cpmode_bgcol", NULL)); |
---|
| 208 | addchoicebox(cpmode_fontcol, "22", getskinconfig("cpmode_fontcol", NULL)); |
---|
| 209 | addchoicebox(editmode_bgcol, "23", getskinconfig("editmode_bgcol", NULL)); |
---|
| 210 | addchoicebox(editmode_fontcol, "24", getskinconfig("editmode_fontcol", NULL)); |
---|
| 211 | addchoicebox(mvmode_fontcol, "25", getskinconfig("mvmode_fontcol", NULL)); |
---|
| 212 | addchoicebox(protectmode_bgcol, "26", getskinconfig("protectmode_bgcol", NULL)); |
---|
| 213 | addchoicebox(protectmode_fontcol, "27", getskinconfig("protectmode_fontcol", NULL)); |
---|
| 214 | addchoicebox(rec_progress, "28", getskinconfig("rec_progress", NULL)); |
---|
| 215 | addchoicebox(epgcol1, "29", getskinconfig("epgcol1", NULL)); |
---|
| 216 | addchoicebox(epgcol2, "30", getskinconfig("epgcol2", NULL)); |
---|
| 217 | addchoicebox(epgcol3, "31", getskinconfig("epgcol3", NULL)); |
---|
| 218 | addchoicebox(emuaktivecol, "32", getskinconfig("emuaktivecol", NULL)); |
---|
| 219 | addchoicebox(emurunningcol, "33", getskinconfig("emurunningcol", NULL)); |
---|
[33831] | 220 | addchoicebox(favcol, "34", getskinconfig("favcol", NULL)); |
---|
[33039] | 221 | |
---|
[33201] | 222 | listboxselect->fontcol2 = convertcol(getskinconfig("listboxselect", NULL)); |
---|
| 223 | tithek_selectcol->fontcol2 = convertcol(getskinconfig("tithek_selectcol", NULL)); |
---|
| 224 | filelistselect->fontcol2 = convertcol(getskinconfig("filelistselect", NULL)); |
---|
| 225 | buttonbar_bgcol->fontcol2 = convertcol(getskinconfig("buttonbar_bgcol", NULL)); |
---|
| 226 | buttonbar_bgcol2->fontcol2 = convertcol(getskinconfig("buttonbar_bgcol2", NULL)); |
---|
| 227 | buttonbar_bordercol->fontcol2 = convertcol(getskinconfig("buttonbar_bordercol", NULL)); |
---|
| 228 | buttonbar_fontcol->fontcol2 = convertcol(getskinconfig("buttonbar_fontcol", NULL)); |
---|
| 229 | titlebar_bgcol->fontcol2 = convertcol(getskinconfig("titlebar_bgcol", NULL)); |
---|
| 230 | titlebar_bgcol2->fontcol2 = convertcol(getskinconfig("titlebar_bgcol2", NULL)); |
---|
| 231 | titlebar_bordercol->fontcol2 = convertcol(getskinconfig("titlebar_bordercol", NULL)); |
---|
| 232 | titlebar_fontcol->fontcol2 = convertcol(getskinconfig("titlebar_fontcol", NULL)); |
---|
| 233 | okcol->fontcol2 = convertcol(getskinconfig("okcol", NULL)); |
---|
| 234 | exitcol->fontcol2 = convertcol(getskinconfig("exitcol", NULL)); |
---|
| 235 | deaktivcol->fontcol2 = convertcol(getskinconfig("deaktivcol", NULL)); |
---|
| 236 | bgcol->fontcol2 = convertcol(getskinconfig("bgcol", NULL)); |
---|
| 237 | bgcol2->fontcol2 = convertcol(getskinconfig("bgcol2", NULL)); |
---|
| 238 | fontcol->fontcol2 = convertcol(getskinconfig("fontcol", NULL)); |
---|
| 239 | bordercol->fontcol2 = convertcol(getskinconfig("bordercol", NULL)); |
---|
| 240 | progresscol->fontcol2 = convertcol(getskinconfig("progresscol", NULL)); |
---|
| 241 | titlebgcol->fontcol2 = convertcol(getskinconfig("titlebgcol", NULL)); |
---|
| 242 | markcol->fontcol2 = convertcol(getskinconfig("markcol", NULL)); |
---|
| 243 | rec_progress->fontcol2 = convertcol(getskinconfig("rec_progress", NULL)); |
---|
| 244 | cpmode_bgcol->fontcol2 = convertcol(getskinconfig("cpmode_bgcol", NULL)); |
---|
| 245 | cpmode_fontcol->fontcol2 = convertcol(getskinconfig("cpmode_fontcol", NULL)); |
---|
| 246 | editmode_bgcol->fontcol2 = convertcol(getskinconfig("editmode_bgcol", NULL)); |
---|
| 247 | editmode_fontcol->fontcol2 = convertcol(getskinconfig("editmode_fontcol", NULL)); |
---|
| 248 | mvmode_bgcol->fontcol2 = convertcol(getskinconfig("mvmode_bgcol", NULL)); |
---|
| 249 | mvmode_fontcol->fontcol2 = convertcol(getskinconfig("mvmode_fontcol", NULL)); |
---|
| 250 | protectmode_bgcol->fontcol2 = convertcol(getskinconfig("protectmode_bgcol", NULL)); |
---|
| 251 | protectmode_fontcol->fontcol2 = convertcol(getskinconfig("protectmode_fontcol", NULL)); |
---|
| 252 | epgcol1->fontcol2 = convertcol(getskinconfig("epgcol1", NULL)); |
---|
| 253 | epgcol2->fontcol2 = convertcol(getskinconfig("epgcol2", NULL)); |
---|
| 254 | epgcol3->fontcol2 = convertcol(getskinconfig("epgcol3", NULL)); |
---|
| 255 | emuaktivecol->fontcol2 = convertcol(getskinconfig("emuaktivecol", NULL)); |
---|
| 256 | emurunningcol->fontcol2 = convertcol(getskinconfig("emurunningcol", NULL)); |
---|
[33831] | 257 | favcol->fontcol2 = convertcol(getskinconfig("favcol", NULL)); |
---|
[33201] | 258 | |
---|
[33938] | 259 | if(status.expertmodus < 10) |
---|
| 260 | { |
---|
| 261 | // listboxselect->hidden = YES; |
---|
| 262 | // tithek_selectcol->hidden = YES; |
---|
| 263 | // filelistselect->hidden = YES; |
---|
| 264 | buttonbar_bgcol->hidden = YES; |
---|
| 265 | buttonbar_bgcol2->hidden = YES; |
---|
| 266 | buttonbar_bordercol->hidden = YES; |
---|
| 267 | buttonbar_fontcol->hidden = YES; |
---|
| 268 | titlebar_bgcol->hidden = YES; |
---|
| 269 | titlebar_bgcol2->hidden = YES; |
---|
| 270 | titlebar_bordercol->hidden = YES; |
---|
| 271 | titlebar_fontcol->hidden = YES; |
---|
| 272 | okcol->hidden = YES; |
---|
| 273 | exitcol->hidden = YES; |
---|
| 274 | deaktivcol->hidden = YES; |
---|
[38502] | 275 | // bgcol->hidden = YES; |
---|
| 276 | // bgcol2->hidden = YES; |
---|
[33938] | 277 | fontcol->hidden = YES; |
---|
| 278 | bordercol->hidden = YES; |
---|
| 279 | progresscol->hidden = YES; |
---|
| 280 | titlebgcol->hidden = YES; |
---|
| 281 | markcol->hidden = YES; |
---|
| 282 | rec_progress->hidden = YES; |
---|
| 283 | cpmode_bgcol->hidden = YES; |
---|
| 284 | cpmode_fontcol->hidden = YES; |
---|
| 285 | editmode_bgcol->hidden = YES; |
---|
| 286 | editmode_fontcol->hidden = YES; |
---|
| 287 | mvmode_bgcol->hidden = YES; |
---|
| 288 | mvmode_fontcol->hidden = YES; |
---|
| 289 | protectmode_bgcol->hidden = YES; |
---|
| 290 | protectmode_fontcol->hidden = YES; |
---|
| 291 | epgcol1->hidden = YES; |
---|
| 292 | epgcol2->hidden = YES; |
---|
| 293 | epgcol3->hidden = YES; |
---|
| 294 | emuaktivecol->hidden = YES; |
---|
| 295 | emurunningcol->hidden = YES; |
---|
| 296 | favcol->hidden = YES; |
---|
| 297 | } |
---|
| 298 | |
---|
[33213] | 299 | if(status.security == 0 || checkemu() == 0) |
---|
| 300 | { |
---|
| 301 | emuaktivecol->hidden = YES; |
---|
| 302 | emurunningcol->hidden = YES; |
---|
| 303 | } |
---|
| 304 | else |
---|
| 305 | { |
---|
| 306 | emuaktivecol->hidden = NO; |
---|
| 307 | emurunningcol->hidden = NO; |
---|
| 308 | } |
---|
[33007] | 309 | |
---|
[16511] | 310 | drawscreen(skinadjust, 0, 0); |
---|
[9119] | 311 | addscreenrc(skinadjust, listbox); |
---|
| 312 | |
---|
| 313 | tmp = listbox->select; |
---|
| 314 | while(1) |
---|
| 315 | { |
---|
[22349] | 316 | int offsetchange = 0; |
---|
[9119] | 317 | addscreenrc(skinadjust, tmp); |
---|
[35754] | 318 | |
---|
| 319 | if(listbox->select != NULL && ostrcmp(listbox->select->name, "listboxselect") == 0) |
---|
| 320 | b5->hidden = NO; |
---|
| 321 | else if(listbox->select != NULL && ostrcmp(listbox->select->name, "tithek_selectcol") == 0) |
---|
| 322 | b5->hidden = NO; |
---|
| 323 | else if(listbox->select != NULL && ostrcmp(listbox->select->name, "filelistselect") == 0) |
---|
| 324 | b5->hidden = NO; |
---|
| 325 | else if(listbox->select != NULL && ostrcmp(listbox->select->name, "buttonbar_bgcol") == 0) |
---|
| 326 | b5->hidden = NO; |
---|
| 327 | else if(listbox->select != NULL && ostrcmp(listbox->select->name, "buttonbar_bgcol2") == 0) |
---|
| 328 | b5->hidden = NO; |
---|
| 329 | else if(listbox->select != NULL && ostrcmp(listbox->select->name, "buttonbar_bordercol") == 0) |
---|
| 330 | b5->hidden = NO; |
---|
| 331 | else if(listbox->select != NULL && ostrcmp(listbox->select->name, "buttonbar_fontcol") == 0) |
---|
| 332 | b5->hidden = NO; |
---|
| 333 | else if(listbox->select != NULL && ostrcmp(listbox->select->name, "titlebar_bgcol") == 0) |
---|
| 334 | b5->hidden = NO; |
---|
| 335 | else if(listbox->select != NULL && ostrcmp(listbox->select->name, "titlebar_bgcol2") == 0) |
---|
| 336 | b5->hidden = NO; |
---|
| 337 | else if(listbox->select != NULL && ostrcmp(listbox->select->name, "titlebar_bordercol") == 0) |
---|
| 338 | b5->hidden = NO; |
---|
| 339 | else if(listbox->select != NULL && ostrcmp(listbox->select->name, "titlebar_fontcol") == 0) |
---|
| 340 | b5->hidden = NO; |
---|
| 341 | else if(listbox->select != NULL && ostrcmp(listbox->select->name, "okcol") == 0) |
---|
| 342 | b5->hidden = NO; |
---|
| 343 | else if(listbox->select != NULL && ostrcmp(listbox->select->name, "exitcol") == 0) |
---|
| 344 | b5->hidden = NO; |
---|
| 345 | else if(listbox->select != NULL && ostrcmp(listbox->select->name, "deaktivcol") == 0) |
---|
| 346 | b5->hidden = NO; |
---|
| 347 | else if(listbox->select != NULL && ostrcmp(listbox->select->name, "bgcol") == 0) |
---|
| 348 | b5->hidden = NO; |
---|
| 349 | else if(listbox->select != NULL && ostrcmp(listbox->select->name, "bgcol2") == 0) |
---|
| 350 | b5->hidden = NO; |
---|
| 351 | else if(listbox->select != NULL && ostrcmp(listbox->select->name, "fontcol") == 0) |
---|
| 352 | b5->hidden = NO; |
---|
| 353 | else if(listbox->select != NULL && ostrcmp(listbox->select->name, "bordercol") == 0) |
---|
| 354 | b5->hidden = NO; |
---|
| 355 | else if(listbox->select != NULL && ostrcmp(listbox->select->name, "titlebgcol") == 0) |
---|
| 356 | b5->hidden = NO; |
---|
| 357 | else if(listbox->select != NULL && ostrcmp(listbox->select->name, "progresscol") == 0) |
---|
| 358 | b5->hidden = NO; |
---|
| 359 | else if(listbox->select != NULL && ostrcmp(listbox->select->name, "markcol") == 0) |
---|
| 360 | b5->hidden = NO; |
---|
| 361 | else if(listbox->select != NULL && ostrcmp(listbox->select->name, "cpmode_bgcol") == 0) |
---|
| 362 | b5->hidden = NO; |
---|
| 363 | else if(listbox->select != NULL && ostrcmp(listbox->select->name, "cpmode_fontcol") == 0) |
---|
| 364 | b5->hidden = NO; |
---|
| 365 | else if(listbox->select != NULL && ostrcmp(listbox->select->name, "editmode_bgcol") == 0) |
---|
| 366 | b5->hidden = NO; |
---|
| 367 | else if(listbox->select != NULL && ostrcmp(listbox->select->name, "editmode_fontcol") == 0) |
---|
| 368 | b5->hidden = NO; |
---|
| 369 | else if(listbox->select != NULL && ostrcmp(listbox->select->name, "mvmode_bgcol") == 0) |
---|
| 370 | b5->hidden = NO; |
---|
| 371 | else if(listbox->select != NULL && ostrcmp(listbox->select->name, "mvmode_fontcol") == 0) |
---|
| 372 | b5->hidden = NO; |
---|
| 373 | else if(listbox->select != NULL && ostrcmp(listbox->select->name, "protectmode_bgcol") == 0) |
---|
| 374 | b5->hidden = NO; |
---|
| 375 | else if(listbox->select != NULL && ostrcmp(listbox->select->name, "protectmode_fontcol") == 0) |
---|
| 376 | b5->hidden = NO; |
---|
| 377 | else if(listbox->select != NULL && ostrcmp(listbox->select->name, "rec_progress") == 0) |
---|
| 378 | b5->hidden = NO; |
---|
| 379 | else if(listbox->select != NULL && ostrcmp(listbox->select->name, "epgcol1") == 0) |
---|
| 380 | b5->hidden = NO; |
---|
| 381 | else if(listbox->select != NULL && ostrcmp(listbox->select->name, "epgcol2") == 0) |
---|
| 382 | b5->hidden = NO; |
---|
| 383 | else if(listbox->select != NULL && ostrcmp(listbox->select->name, "epgcol3") == 0) |
---|
| 384 | b5->hidden = NO; |
---|
| 385 | else if(listbox->select != NULL && ostrcmp(listbox->select->name, "emuaktivecol") == 0) |
---|
| 386 | b5->hidden = NO; |
---|
| 387 | else if(listbox->select != NULL && ostrcmp(listbox->select->name, "emurunningcol") == 0) |
---|
| 388 | b5->hidden = NO; |
---|
| 389 | else if(listbox->select != NULL && ostrcmp(listbox->select->name, "favcol") == 0) |
---|
| 390 | b5->hidden = NO; |
---|
| 391 | else |
---|
| 392 | b5->hidden = YES; |
---|
| 393 | |
---|
| 394 | drawscreen(skinadjust, 0, 0); |
---|
| 395 | |
---|
[9119] | 396 | rcret = waitrc(skinadjust, 0, 0); |
---|
| 397 | tmp = listbox->select; |
---|
[28347] | 398 | |
---|
| 399 | addconfigscreencheck("fbleftoffset", leftoffset, "0"); |
---|
| 400 | if(status.leftoffset != getconfigint("fbleftoffset", NULL)) offsetchange = 1; |
---|
| 401 | status.leftoffset = getconfigint("fbleftoffset", NULL); |
---|
[32298] | 402 | |
---|
[28347] | 403 | addconfigscreencheck("fbrightoffset", rightoffset, "0"); |
---|
| 404 | if(status.rightoffset != getconfigint("fbrightoffset", NULL)) offsetchange = 1; |
---|
| 405 | status.rightoffset = getconfigint("fbrightoffset", NULL); |
---|
[32298] | 406 | |
---|
[28347] | 407 | addconfigscreencheck("fbtopoffset", topoffset, "0"); |
---|
| 408 | if(status.topoffset != getconfigint("fbtopoffset", NULL)) offsetchange = 1; |
---|
| 409 | status.topoffset = getconfigint("fbtopoffset", NULL); |
---|
[32298] | 410 | |
---|
[28347] | 411 | addconfigscreencheck("fbbottomoffset", bottomoffset, "0"); |
---|
| 412 | if(status.bottomoffset != getconfigint("fbbottomoffset", NULL)) offsetchange = 1; |
---|
| 413 | status.bottomoffset = getconfigint("fbbottomoffset", NULL); |
---|
[32298] | 414 | |
---|
[28347] | 415 | if(offsetchange == 1 && (ostrcmp(getconfig("av_mode3d", NULL), "sbs") == 0 || ostrcmp(getconfig("av_mode3d", NULL), "tab") == 0)) clearfball(); |
---|
| 416 | |
---|
| 417 | drawscreen(skinadjust, 0, 0); |
---|
| 418 | |
---|
[28991] | 419 | #ifdef MIPSEL |
---|
[36762] | 420 | if(checkbox("DM7020HD") == 0 && checkbox("DM7020HDV2") == 0) |
---|
| 421 | setfbosd(); |
---|
[28991] | 422 | #endif |
---|
[32298] | 423 | |
---|
[28347] | 424 | if(rcret == getrcconfigint("rcexit", NULL)) |
---|
[28339] | 425 | { |
---|
[28347] | 426 | addconfigint("fbleftoffset", oleftoffset); |
---|
[28339] | 427 | status.leftoffset = getconfigint("fbleftoffset", NULL); |
---|
[28347] | 428 | addconfigint("fbrightoffset", orightoffset); |
---|
[28339] | 429 | status.rightoffset = getconfigint("fbrightoffset", NULL); |
---|
[28347] | 430 | addconfigint("fbtopoffset", otopoffset); |
---|
[28339] | 431 | status.topoffset = getconfigint("fbtopoffset", NULL); |
---|
[28347] | 432 | addconfigint("fbbottomoffset", obottomoffset); |
---|
[28339] | 433 | status.bottomoffset = getconfigint("fbbottomoffset", NULL); |
---|
[28347] | 434 | clearfball(); |
---|
[14340] | 435 | break; |
---|
| 436 | } |
---|
[33039] | 437 | |
---|
[22382] | 438 | if(rcret == getrcconfigint("rcred", NULL)) |
---|
| 439 | { |
---|
[33161] | 440 | char* cmd = NULL; |
---|
[33815] | 441 | if(ostrcmp(getconfig("skinconfig", NULL), "/mnt/config/skinconfig") == 0) |
---|
[33160] | 442 | cmd = ostrcat("cp -a /etc/titan.restore/mnt/config/skinconfig ", getconfig("skinconfig", NULL), 0, 0); |
---|
| 443 | else |
---|
| 444 | { |
---|
| 445 | cmd = ostrcat(cmd, "cp -a ", 1, 0); |
---|
| 446 | cmd = ostrcat(cmd, getconfig("skinconfig", NULL), 1, 0); |
---|
[33814] | 447 | cmd = ostrcat(cmd, ".default ", 1, 0); |
---|
| 448 | cmd = ostrcat(cmd, getconfig("skinconfig", NULL), 1, 0); |
---|
[33160] | 449 | } |
---|
[33162] | 450 | printf("cmd: %s\n", cmd); |
---|
[33160] | 451 | system(cmd); |
---|
| 452 | free(cmd); cmd = NULL; |
---|
| 453 | |
---|
[38463] | 454 | textbox(_("Message"), _("Titan will be restarted!"), _("OK"), getrcconfigint("rcok", NULL), NULL, 0, NULL, 0, NULL, 0, 1000, 200, 0, 0); |
---|
[33160] | 455 | oshutdown(3, 0); |
---|
| 456 | |
---|
| 457 | break; |
---|
| 458 | } |
---|
| 459 | |
---|
| 460 | if(rcret == getrcconfigint("rcgreen", NULL)) |
---|
| 461 | { |
---|
[38512] | 462 | setfbtransparent(255); |
---|
[22382] | 463 | if(listbox->select != NULL && ostrcmp(listbox->select->name, "listboxselect") == 0) |
---|
| 464 | { |
---|
[22387] | 465 | long oldlistboxselectcol = convertcol("listboxselect"); |
---|
[33039] | 466 | tmpstr = screencolorpicker(getskinconfig("listboxselect", NULL), 0, 0, 0); |
---|
[22382] | 467 | if(tmpstr != NULL) |
---|
[22384] | 468 | addskinconfigtmp("listboxselect", tmpstr); |
---|
[22387] | 469 | if(oldlistboxselectcol != convertcol("listboxselect")) reboot = 1; |
---|
[33201] | 470 | listboxselect->fontcol2 = convertcol(tmpstr); |
---|
[22382] | 471 | } |
---|
[32298] | 472 | |
---|
[30972] | 473 | if(listbox->select != NULL && ostrcmp(listbox->select->name, "tithek_selectcol") == 0) |
---|
| 474 | { |
---|
| 475 | long oldtithek_selectcol = convertcol("tithek_selectcol"); |
---|
[33039] | 476 | tmpstr = screencolorpicker(getskinconfig("tithek_selectcol", NULL), 0, 0, 0); |
---|
[30972] | 477 | if(tmpstr != NULL) |
---|
| 478 | addskinconfigtmp("tithek_selectcol", tmpstr); |
---|
| 479 | if(oldtithek_selectcol != convertcol("tithek_selectcol")) reboot = 1; |
---|
[33201] | 480 | tithek_selectcol->fontcol2 = convertcol(tmpstr); |
---|
[30972] | 481 | } |
---|
[32298] | 482 | |
---|
[30972] | 483 | if(listbox->select != NULL && ostrcmp(listbox->select->name, "filelistselect") == 0) |
---|
| 484 | { |
---|
| 485 | long oldfilelistselect = convertcol("filelistselect"); |
---|
[33039] | 486 | tmpstr = screencolorpicker(getskinconfig("filelistselect", NULL), 0, 0, 0); |
---|
[30972] | 487 | if(tmpstr != NULL) |
---|
| 488 | addskinconfigtmp("filelistselect", tmpstr); |
---|
| 489 | if(oldfilelistselect != convertcol("filelistselect")) reboot = 1; |
---|
[33201] | 490 | filelistselect->fontcol2 = convertcol(tmpstr); |
---|
[30972] | 491 | } |
---|
[32298] | 492 | |
---|
[33160] | 493 | if(listbox->select != NULL && ostrcmp(listbox->select->name, "buttonbar_bgcol") == 0) |
---|
| 494 | { |
---|
| 495 | long oldbuttonbar_bgcol = convertcol("buttonbar_bgcol"); |
---|
| 496 | tmpstr = screencolorpicker(getskinconfig("buttonbar_bgcol", NULL), 0, 0, 0); |
---|
| 497 | if(tmpstr != NULL) |
---|
| 498 | addskinconfigtmp("buttonbar_bgcol", tmpstr); |
---|
| 499 | if(oldbuttonbar_bgcol != convertcol("buttonbar_bgcol")) reboot = 1; |
---|
[33201] | 500 | buttonbar_bgcol->fontcol2 = convertcol(tmpstr); |
---|
[33160] | 501 | } |
---|
| 502 | |
---|
[33039] | 503 | if(listbox->select != NULL && ostrcmp(listbox->select->name, "buttonbar_bgcol2") == 0) |
---|
[33004] | 504 | { |
---|
[33039] | 505 | long oldbuttonbar_bgcol2 = convertcol("buttonbar_bgcol2"); |
---|
| 506 | tmpstr = screencolorpicker(getskinconfig("buttonbar_bgcol2", NULL), 0, 0, 0); |
---|
[33004] | 507 | if(tmpstr != NULL) |
---|
[33039] | 508 | addskinconfigtmp("buttonbar_bgcol2", tmpstr); |
---|
| 509 | if(oldbuttonbar_bgcol2 != convertcol("buttonbar_bgcol2")) reboot = 1; |
---|
[33201] | 510 | buttonbar_bgcol2->fontcol2 = convertcol(tmpstr); |
---|
[33004] | 511 | } |
---|
| 512 | |
---|
[33160] | 513 | if(listbox->select != NULL && ostrcmp(listbox->select->name, "buttonbar_bordercol") == 0) |
---|
| 514 | { |
---|
| 515 | long oldbuttonbar_bordercol = convertcol("buttonbar_bordercol"); |
---|
| 516 | tmpstr = screencolorpicker(getskinconfig("buttonbar_bordercol", NULL), 0, 0, 0); |
---|
| 517 | if(tmpstr != NULL) |
---|
| 518 | addskinconfigtmp("buttonbar_bordercol", tmpstr); |
---|
| 519 | if(oldbuttonbar_bordercol != convertcol("buttonbar_bordercol")) reboot = 1; |
---|
[33201] | 520 | buttonbar_bordercol->fontcol2 = convertcol(tmpstr); |
---|
[33160] | 521 | } |
---|
| 522 | |
---|
| 523 | if(listbox->select != NULL && ostrcmp(listbox->select->name, "buttonbar_fontcol") == 0) |
---|
| 524 | { |
---|
| 525 | long oldbuttonbar_fontcol = convertcol("buttonbar_fontcol"); |
---|
| 526 | tmpstr = screencolorpicker(getskinconfig("buttonbar_fontcol", NULL), 0, 0, 0); |
---|
| 527 | if(tmpstr != NULL) |
---|
| 528 | addskinconfigtmp("buttonbar_fontcol", tmpstr); |
---|
| 529 | if(oldbuttonbar_fontcol != convertcol("buttonbar_fontcol")) reboot = 1; |
---|
[33201] | 530 | buttonbar_fontcol->fontcol2 = convertcol(tmpstr); |
---|
[33160] | 531 | } |
---|
| 532 | |
---|
| 533 | if(listbox->select != NULL && ostrcmp(listbox->select->name, "titlebar_bgcol") == 0) |
---|
| 534 | { |
---|
| 535 | long oldtitlebar_bgcol = convertcol("titlebar_bgcol"); |
---|
| 536 | tmpstr = screencolorpicker(getskinconfig("titlebar_bgcol", NULL), 0, 0, 0); |
---|
| 537 | if(tmpstr != NULL) |
---|
| 538 | addskinconfigtmp("titlebar_bgcol", tmpstr); |
---|
| 539 | if(oldtitlebar_bgcol != convertcol("titlebar_bgcol")) reboot = 1; |
---|
[33201] | 540 | titlebar_bgcol->fontcol2 = convertcol(tmpstr); |
---|
[33160] | 541 | } |
---|
| 542 | |
---|
| 543 | if(listbox->select != NULL && ostrcmp(listbox->select->name, "titlebar_bgcol2") == 0) |
---|
| 544 | { |
---|
| 545 | long oldtitlebar_bgcol2 = convertcol("titlebar_bgcol2"); |
---|
| 546 | tmpstr = screencolorpicker(getskinconfig("titlebar_bgcol2", NULL), 0, 0, 0); |
---|
| 547 | if(tmpstr != NULL) |
---|
| 548 | addskinconfigtmp("titlebar_bgcol2", tmpstr); |
---|
| 549 | if(oldtitlebar_bgcol2 != convertcol("titlebar_bgcol2")) reboot = 1; |
---|
[33201] | 550 | titlebar_bgcol2->fontcol2 = convertcol(tmpstr); |
---|
[33160] | 551 | } |
---|
| 552 | |
---|
| 553 | if(listbox->select != NULL && ostrcmp(listbox->select->name, "titlebar_bordercol") == 0) |
---|
| 554 | { |
---|
| 555 | long oldtitlebar_bordercol = convertcol("titlebar_bordercol"); |
---|
| 556 | tmpstr = screencolorpicker(getskinconfig("titlebar_bordercol", NULL), 0, 0, 0); |
---|
| 557 | if(tmpstr != NULL) |
---|
| 558 | addskinconfigtmp("titlebar_bordercol", tmpstr); |
---|
| 559 | if(oldtitlebar_bordercol != convertcol("titlebar_bordercol")) reboot = 1; |
---|
[33201] | 560 | titlebar_bordercol->fontcol2 = convertcol(tmpstr); |
---|
[33160] | 561 | } |
---|
| 562 | |
---|
| 563 | if(listbox->select != NULL && ostrcmp(listbox->select->name, "titlebar_fontcol") == 0) |
---|
| 564 | { |
---|
| 565 | long oldtitlebar_fontcol = convertcol("titlebar_fontcol"); |
---|
| 566 | tmpstr = screencolorpicker(getskinconfig("titlebar_fontcol", NULL), 0, 0, 0); |
---|
| 567 | if(tmpstr != NULL) |
---|
| 568 | addskinconfigtmp("titlebar_fontcol", tmpstr); |
---|
| 569 | if(oldtitlebar_fontcol != convertcol("titlebar_fontcol")) reboot = 1; |
---|
[33201] | 570 | titlebar_fontcol->fontcol2 = convertcol(tmpstr); |
---|
[33160] | 571 | } |
---|
| 572 | |
---|
[33201] | 573 | if(listbox->select != NULL && ostrcmp(listbox->select->name, "okcol") == 0) |
---|
| 574 | { |
---|
| 575 | long oldokcol = convertcol("okcol"); |
---|
| 576 | tmpstr = screencolorpicker(getskinconfig("okcol", NULL), 0, 0, 0); |
---|
| 577 | if(tmpstr != NULL) |
---|
| 578 | addskinconfigtmp("okcol", tmpstr); |
---|
| 579 | if(oldokcol != convertcol("okcol")) reboot = 1; |
---|
| 580 | okcol->fontcol2 = convertcol(tmpstr); |
---|
| 581 | } |
---|
| 582 | |
---|
| 583 | if(listbox->select != NULL && ostrcmp(listbox->select->name, "exitcol") == 0) |
---|
| 584 | { |
---|
| 585 | long oldexitcol = convertcol("exitcol"); |
---|
| 586 | tmpstr = screencolorpicker(getskinconfig("exitcol", NULL), 0, 0, 0); |
---|
| 587 | if(tmpstr != NULL) |
---|
| 588 | addskinconfigtmp("exitcol", tmpstr); |
---|
| 589 | if(oldexitcol != convertcol("exitcol")) reboot = 1; |
---|
| 590 | okcol->fontcol2 = convertcol(tmpstr); |
---|
| 591 | } |
---|
| 592 | |
---|
| 593 | if(listbox->select != NULL && ostrcmp(listbox->select->name, "deaktivcol") == 0) |
---|
| 594 | { |
---|
| 595 | long olddeaktivcol = convertcol("deaktivcol"); |
---|
| 596 | tmpstr = screencolorpicker(getskinconfig("deaktivcol", NULL), 0, 0, 0); |
---|
| 597 | if(tmpstr != NULL) |
---|
| 598 | addskinconfigtmp("deaktivcol", tmpstr); |
---|
| 599 | if(olddeaktivcol != convertcol("deaktivcol")) reboot = 1; |
---|
| 600 | deaktivcol->fontcol2 = convertcol(tmpstr); |
---|
| 601 | } |
---|
| 602 | |
---|
[33015] | 603 | if(listbox->select != NULL && ostrcmp(listbox->select->name, "bgcol") == 0) |
---|
| 604 | { |
---|
| 605 | long oldbgcol = convertcol("bgcol"); |
---|
[33039] | 606 | tmpstr = screencolorpicker(getskinconfig("bgcol", NULL), 0, 0, 0); |
---|
[33015] | 607 | if(tmpstr != NULL) |
---|
| 608 | addskinconfigtmp("bgcol", tmpstr); |
---|
| 609 | if(oldbgcol != convertcol("bgcol")) reboot = 1; |
---|
[33201] | 610 | bgcol->fontcol2 = convertcol(tmpstr); |
---|
[33015] | 611 | } |
---|
| 612 | |
---|
| 613 | if(listbox->select != NULL && ostrcmp(listbox->select->name, "bgcol2") == 0) |
---|
| 614 | { |
---|
| 615 | long oldbgcol2 = convertcol("bgcol2"); |
---|
[33039] | 616 | tmpstr = screencolorpicker(getskinconfig("bgcol2", NULL), 0, 0, 0); |
---|
[33015] | 617 | if(tmpstr != NULL) |
---|
| 618 | addskinconfigtmp("bgcol2", tmpstr); |
---|
| 619 | if(oldbgcol2 != convertcol("bgcol2")) reboot = 1; |
---|
[33201] | 620 | bgcol2->fontcol2 = convertcol(tmpstr); |
---|
[33015] | 621 | } |
---|
| 622 | |
---|
| 623 | if(listbox->select != NULL && ostrcmp(listbox->select->name, "fontcol") == 0) |
---|
| 624 | { |
---|
| 625 | long oldfontcol = convertcol("fontcol"); |
---|
[33039] | 626 | tmpstr = screencolorpicker(getskinconfig("fontcol", NULL), 0, 0, 0); |
---|
[33015] | 627 | if(tmpstr != NULL) |
---|
| 628 | addskinconfigtmp("fontcol", tmpstr); |
---|
| 629 | if(oldfontcol != convertcol("fontcol")) reboot = 1; |
---|
[33201] | 630 | fontcol->fontcol2 = convertcol(tmpstr); |
---|
[33015] | 631 | } |
---|
| 632 | |
---|
| 633 | if(listbox->select != NULL && ostrcmp(listbox->select->name, "bordercol") == 0) |
---|
| 634 | { |
---|
| 635 | long oldbordercol = convertcol("bordercol"); |
---|
[33039] | 636 | tmpstr = screencolorpicker(getskinconfig("bordercol", NULL), 0, 0, 0); |
---|
[33015] | 637 | if(tmpstr != NULL) |
---|
| 638 | addskinconfigtmp("bordercol", tmpstr); |
---|
| 639 | if(oldbordercol != convertcol("bordercol")) reboot = 1; |
---|
[33201] | 640 | bordercol->fontcol2 = convertcol(tmpstr); |
---|
[33015] | 641 | } |
---|
| 642 | |
---|
| 643 | if(listbox->select != NULL && ostrcmp(listbox->select->name, "progresscol") == 0) |
---|
| 644 | { |
---|
| 645 | long oldprogresscol = convertcol("progresscol"); |
---|
[33039] | 646 | tmpstr = screencolorpicker(getskinconfig("progresscol", NULL), 0, 0, 0); |
---|
[33015] | 647 | if(tmpstr != NULL) |
---|
| 648 | addskinconfigtmp("progresscol", tmpstr); |
---|
| 649 | if(oldprogresscol != convertcol("progresscol")) reboot = 1; |
---|
[33201] | 650 | progresscol->fontcol2 = convertcol(tmpstr); |
---|
[33015] | 651 | } |
---|
| 652 | |
---|
| 653 | if(listbox->select != NULL && ostrcmp(listbox->select->name, "titlebgcol") == 0) |
---|
| 654 | { |
---|
| 655 | long oldtitlebgcol = convertcol("titlebgcol"); |
---|
[33039] | 656 | tmpstr = screencolorpicker(getskinconfig("titlebgcol", NULL), 0, 0, 0); |
---|
[33015] | 657 | if(tmpstr != NULL) |
---|
| 658 | addskinconfigtmp("titlebgcol", tmpstr); |
---|
| 659 | if(oldtitlebgcol != convertcol("titlebgcol")) reboot = 1; |
---|
[33201] | 660 | titlebgcol->fontcol2 = convertcol(tmpstr); |
---|
[33015] | 661 | } |
---|
| 662 | |
---|
| 663 | if(listbox->select != NULL && ostrcmp(listbox->select->name, "markcol") == 0) |
---|
| 664 | { |
---|
| 665 | long oldmarkcol = convertcol("markcol"); |
---|
[33039] | 666 | tmpstr = screencolorpicker(getskinconfig("markcol", NULL), 0, 0, 0); |
---|
[33015] | 667 | if(tmpstr != NULL) |
---|
| 668 | addskinconfigtmp("markcol", tmpstr); |
---|
| 669 | if(oldmarkcol != convertcol("markcol")) reboot = 1; |
---|
[33201] | 670 | markcol->fontcol2 = convertcol(tmpstr); |
---|
[33015] | 671 | } |
---|
| 672 | |
---|
[33201] | 673 | if(listbox->select != NULL && ostrcmp(listbox->select->name, "cpmode_bgcol") == 0) |
---|
| 674 | { |
---|
| 675 | long oldcpmode_bgcol = convertcol("cpmode_bgcol"); |
---|
| 676 | tmpstr = screencolorpicker(getskinconfig("cpmode_bgcol", NULL), 0, 0, 0); |
---|
| 677 | if(tmpstr != NULL) |
---|
| 678 | addskinconfigtmp("cpmode_bgcol", tmpstr); |
---|
| 679 | if(oldcpmode_bgcol != convertcol("cpmode_bgcol")) reboot = 1; |
---|
| 680 | cpmode_bgcol->fontcol2 = convertcol(tmpstr); |
---|
| 681 | } |
---|
| 682 | |
---|
| 683 | if(listbox->select != NULL && ostrcmp(listbox->select->name, "cpmode_fontcol") == 0) |
---|
| 684 | { |
---|
| 685 | long oldcpmode_fontcol = convertcol("cpmode_fontcol"); |
---|
| 686 | tmpstr = screencolorpicker(getskinconfig("cpmode_fontcol", NULL), 0, 0, 0); |
---|
| 687 | if(tmpstr != NULL) |
---|
| 688 | addskinconfigtmp("cpmode_fontcol", tmpstr); |
---|
| 689 | if(oldcpmode_fontcol != convertcol("cpmode_fontcol")) reboot = 1; |
---|
| 690 | cpmode_fontcol->fontcol2 = convertcol(tmpstr); |
---|
| 691 | } |
---|
| 692 | |
---|
| 693 | if(listbox->select != NULL && ostrcmp(listbox->select->name, "editmode_bgcol") == 0) |
---|
| 694 | { |
---|
| 695 | long oldeditmode_bgcol = convertcol("editmode_bgcol"); |
---|
| 696 | tmpstr = screencolorpicker(getskinconfig("editmode_bgcol", NULL), 0, 0, 0); |
---|
| 697 | if(tmpstr != NULL) |
---|
| 698 | addskinconfigtmp("editmode_bgcol", tmpstr); |
---|
| 699 | if(oldeditmode_bgcol != convertcol("editmode_bgcol")) reboot = 1; |
---|
| 700 | editmode_bgcol->fontcol2 = convertcol(tmpstr); |
---|
| 701 | } |
---|
| 702 | |
---|
| 703 | if(listbox->select != NULL && ostrcmp(listbox->select->name, "editmode_fontcol") == 0) |
---|
| 704 | { |
---|
| 705 | long oldeditmode_fontcol = convertcol("editmode_fontcol"); |
---|
| 706 | tmpstr = screencolorpicker(getskinconfig("editmode_fontcol", NULL), 0, 0, 0); |
---|
| 707 | if(tmpstr != NULL) |
---|
| 708 | addskinconfigtmp("editmode_fontcol", tmpstr); |
---|
| 709 | if(oldeditmode_fontcol != convertcol("editmode_fontcol")) reboot = 1; |
---|
| 710 | editmode_fontcol->fontcol2 = convertcol(tmpstr); |
---|
| 711 | } |
---|
| 712 | |
---|
| 713 | if(listbox->select != NULL && ostrcmp(listbox->select->name, "mvmode_bgcol") == 0) |
---|
| 714 | { |
---|
| 715 | long oldmvmode_bgcol = convertcol("mvmode_bgcol"); |
---|
| 716 | tmpstr = screencolorpicker(getskinconfig("mvmode_bgcol", NULL), 0, 0, 0); |
---|
| 717 | if(tmpstr != NULL) |
---|
| 718 | addskinconfigtmp("mvmode_bgcol", tmpstr); |
---|
| 719 | if(oldmvmode_bgcol != convertcol("mvmode_bgcol")) reboot = 1; |
---|
| 720 | mvmode_bgcol->fontcol2 = convertcol(tmpstr); |
---|
| 721 | } |
---|
| 722 | |
---|
| 723 | if(listbox->select != NULL && ostrcmp(listbox->select->name, "mvmode_fontcol") == 0) |
---|
| 724 | { |
---|
| 725 | long oldmvmode_fontcol = convertcol("mvmode_fontcol"); |
---|
| 726 | tmpstr = screencolorpicker(getskinconfig("mvmode_fontcol", NULL), 0, 0, 0); |
---|
| 727 | if(tmpstr != NULL) |
---|
| 728 | addskinconfigtmp("mvmode_fontcol", tmpstr); |
---|
| 729 | if(oldmvmode_fontcol != convertcol("mvmode_fontcol")) reboot = 1; |
---|
| 730 | mvmode_fontcol->fontcol2 = convertcol(tmpstr); |
---|
| 731 | } |
---|
| 732 | |
---|
| 733 | if(listbox->select != NULL && ostrcmp(listbox->select->name, "protectmode_bgcol") == 0) |
---|
| 734 | { |
---|
| 735 | long oldprotectmode_bgcol = convertcol("protectmode_bgcol"); |
---|
| 736 | tmpstr = screencolorpicker(getskinconfig("protectmode_bgcol", NULL), 0, 0, 0); |
---|
| 737 | if(tmpstr != NULL) |
---|
| 738 | addskinconfigtmp("protectmode_bgcol", tmpstr); |
---|
| 739 | if(oldprotectmode_bgcol != convertcol("protectmode_bgcol")) reboot = 1; |
---|
| 740 | protectmode_bgcol->fontcol2 = convertcol(tmpstr); |
---|
| 741 | } |
---|
| 742 | |
---|
| 743 | if(listbox->select != NULL && ostrcmp(listbox->select->name, "protectmode_fontcol") == 0) |
---|
| 744 | { |
---|
| 745 | long oldprotectmode_fontcol = convertcol("protectmode_fontcol"); |
---|
| 746 | tmpstr = screencolorpicker(getskinconfig("protectmode_fontcol", NULL), 0, 0, 0); |
---|
| 747 | if(tmpstr != NULL) |
---|
| 748 | addskinconfigtmp("protectmode_fontcol", tmpstr); |
---|
| 749 | if(oldprotectmode_fontcol != convertcol("protectmode_fontcol")) reboot = 1; |
---|
| 750 | protectmode_fontcol->fontcol2 = convertcol(tmpstr); |
---|
| 751 | } |
---|
| 752 | |
---|
| 753 | if(listbox->select != NULL && ostrcmp(listbox->select->name, "rec_progress") == 0) |
---|
| 754 | { |
---|
| 755 | long oldrec_progress = convertcol("rec_progress"); |
---|
| 756 | tmpstr = screencolorpicker(getskinconfig("rec_progress", NULL), 0, 0, 0); |
---|
| 757 | if(tmpstr != NULL) |
---|
| 758 | addskinconfigtmp("rec_progress", tmpstr); |
---|
| 759 | if(oldrec_progress != convertcol("rec_progress")) reboot = 1; |
---|
| 760 | rec_progress->fontcol2 = convertcol(tmpstr); |
---|
| 761 | } |
---|
| 762 | |
---|
| 763 | if(listbox->select != NULL && ostrcmp(listbox->select->name, "epgcol1") == 0) |
---|
| 764 | { |
---|
| 765 | long oldepgcol1 = convertcol("epgcol1"); |
---|
| 766 | tmpstr = screencolorpicker(getskinconfig("epgcol1", NULL), 0, 0, 0); |
---|
| 767 | if(tmpstr != NULL) |
---|
| 768 | addskinconfigtmp("epgcol1", tmpstr); |
---|
| 769 | if(oldepgcol1 != convertcol("epgcol1")) reboot = 1; |
---|
| 770 | epgcol1->fontcol2 = convertcol(tmpstr); |
---|
| 771 | } |
---|
| 772 | |
---|
| 773 | if(listbox->select != NULL && ostrcmp(listbox->select->name, "epgcol2") == 0) |
---|
| 774 | { |
---|
| 775 | long oldepgcol2 = convertcol("epgcol2"); |
---|
| 776 | tmpstr = screencolorpicker(getskinconfig("epgcol2", NULL), 0, 0, 0); |
---|
| 777 | if(tmpstr != NULL) |
---|
| 778 | addskinconfigtmp("epgcol2", tmpstr); |
---|
| 779 | if(oldepgcol2 != convertcol("epgcol2")) reboot = 1; |
---|
| 780 | epgcol2->fontcol2 = convertcol(tmpstr); |
---|
| 781 | } |
---|
| 782 | |
---|
| 783 | if(listbox->select != NULL && ostrcmp(listbox->select->name, "epgcol3") == 0) |
---|
| 784 | { |
---|
| 785 | long oldepgcol3 = convertcol("epgcol3"); |
---|
| 786 | tmpstr = screencolorpicker(getskinconfig("epgcol3", NULL), 0, 0, 0); |
---|
| 787 | if(tmpstr != NULL) |
---|
| 788 | addskinconfigtmp("epgcol3", tmpstr); |
---|
| 789 | if(oldepgcol3 != convertcol("epgcol3")) reboot = 1; |
---|
| 790 | epgcol3->fontcol2 = convertcol(tmpstr); |
---|
| 791 | } |
---|
| 792 | |
---|
| 793 | if(listbox->select != NULL && ostrcmp(listbox->select->name, "emuaktivecol") == 0) |
---|
| 794 | { |
---|
| 795 | long oldemuaktivecol = convertcol("emuaktivecol"); |
---|
| 796 | tmpstr = screencolorpicker(getskinconfig("emuaktivecol", NULL), 0, 0, 0); |
---|
| 797 | if(tmpstr != NULL) |
---|
| 798 | addskinconfigtmp("emuaktivecol", tmpstr); |
---|
| 799 | if(oldemuaktivecol != convertcol("emuaktivecol")) reboot = 1; |
---|
| 800 | emuaktivecol->fontcol2 = convertcol(tmpstr); |
---|
| 801 | } |
---|
| 802 | |
---|
| 803 | if(listbox->select != NULL && ostrcmp(listbox->select->name, "emurunningcol") == 0) |
---|
| 804 | { |
---|
| 805 | long oldemurunningcol = convertcol("emurunningcol"); |
---|
| 806 | tmpstr = screencolorpicker(getskinconfig("emurunningcol", NULL), 0, 0, 0); |
---|
| 807 | if(tmpstr != NULL) |
---|
| 808 | addskinconfigtmp("emurunningcol", tmpstr); |
---|
| 809 | if(oldemurunningcol != convertcol("emurunningcol")) reboot = 1; |
---|
| 810 | emurunningcol->fontcol2 = convertcol(tmpstr); |
---|
| 811 | } |
---|
| 812 | |
---|
[33831] | 813 | if(listbox->select != NULL && ostrcmp(listbox->select->name, "favcol") == 0) |
---|
| 814 | { |
---|
| 815 | long oldfavcol = convertcol("favcol"); |
---|
| 816 | tmpstr = screencolorpicker(getskinconfig("favcol", NULL), 0, 0, 0); |
---|
| 817 | if(tmpstr != NULL) |
---|
| 818 | addskinconfigtmp("favcol", tmpstr); |
---|
| 819 | if(oldfavcol != convertcol("favcol")) reboot = 1; |
---|
| 820 | favcol->fontcol2 = convertcol(tmpstr); |
---|
| 821 | } |
---|
[38508] | 822 | setosdtransparent(getskinconfigint("osdtransparent", NULL)); |
---|
[33039] | 823 | drawscreen(skinadjust, 0, 0); |
---|
| 824 | |
---|
| 825 | debug(10, "%s set %s", listbox->select->name, tmpstr); |
---|
| 826 | free(tmpstr), tmpstr = NULL; |
---|
[33004] | 827 | continue; |
---|
| 828 | } |
---|
| 829 | |
---|
[9119] | 830 | if(rcret == getrcconfigint("rcok", NULL)) |
---|
| 831 | { |
---|
[38281] | 832 | char* oldskinstyle_sel = getconfig("skinstyle", NULL); |
---|
| 833 | addconfigscreencheck("skinstyle", skinstyle_sel, "0"); |
---|
| 834 | if(ostrcmp(oldskinstyle_sel,getconfig("skinstyle", NULL)) != 0) |
---|
| 835 | { |
---|
| 836 | writeconfigtmp(); |
---|
| 837 | |
---|
| 838 | char* cmd = NULL; |
---|
| 839 | cmd = ostrcat(cmd, "cp -a ", 1, 0); |
---|
| 840 | cmd = ostrcat(cmd, getconfig("skinpath", NULL), 1, 0); |
---|
| 841 | cmd = ostrcat(cmd, "/", 1, 0); |
---|
| 842 | cmd = ostrcat(cmd, skinstyle_sel->ret, 1, 0); |
---|
| 843 | cmd = ostrcat(cmd, " ", 1, 0); |
---|
| 844 | cmd = ostrcat(cmd, getconfig("skinconfig", NULL), 1, 0); |
---|
| 845 | printf("cmd: %s\n", cmd); |
---|
| 846 | system(cmd); |
---|
| 847 | free(cmd); cmd = NULL; |
---|
| 848 | |
---|
[38463] | 849 | textbox(_("Message"), _("Titan will be restarted!"), _("OK"), getrcconfigint("rcok", NULL), NULL, 0, NULL, 0, NULL, 0, 1000, 200, 0, 0); |
---|
[38281] | 850 | oshutdown(3, 0); |
---|
| 851 | } |
---|
[38473] | 852 | |
---|
| 853 | if(ostrcmp(minitv->ret, "1") == 0) resettvpic(); |
---|
| 854 | addskinconfigscreencheck("minitv", minitv, "0"); |
---|
| 855 | |
---|
[22387] | 856 | int oldfontsizeadjust = getskinconfigint("fontsizeadjust", NULL); |
---|
[9119] | 857 | addskinconfigscreencheck("fontsizeadjust", fontsizeadjust, "0"); |
---|
[23983] | 858 | if(oldfontsizeadjust != getskinconfigint("fontsizeadjust", NULL)) reboot = 1; |
---|
[32298] | 859 | status.fontsizeadjust = getskinconfigint("fontsizeadjust", NULL); |
---|
| 860 | |
---|
[9119] | 861 | addskinconfigscreencheck("listboxselecttype", listboxselecttype, "0"); |
---|
| 862 | status.listboxselecttype = getskinconfigint("listboxselecttype", NULL); |
---|
[33039] | 863 | |
---|
[9121] | 864 | addskinconfigscreencheck("osdtransparent", osdtransparent, "0"); |
---|
[9136] | 865 | setosdtransparent(getskinconfigint("osdtransparent", NULL)); |
---|
[20822] | 866 | addconfigscreencheck("showrecfreesize", showrecfreesize, "0"); |
---|
| 867 | status.showrecfreesize = getconfigint("showrecfreesize", NULL); |
---|
[9554] | 868 | |
---|
[32300] | 869 | char* oldinfobar_sel = getskinconfig("infobar_selection", NULL); |
---|
| 870 | addskinconfigscreencheck("infobar_selection", infobar_sel, "0"); |
---|
| 871 | if(ostrcmp(oldinfobar_sel,getskinconfig("infobar_selection", NULL)) != 0) reboot = 1; |
---|
[32307] | 872 | //free(oldinfobar_sel); oldinfobar_sel=NULL; |
---|
[32298] | 873 | |
---|
[32302] | 874 | char* oldinfobar2_sel = getskinconfig("infobar2_selection", NULL); |
---|
| 875 | addskinconfigscreencheck("infobar2_selection", infobar2_sel, "0"); |
---|
| 876 | if(ostrcmp(oldinfobar2_sel,getskinconfig("infobar2_selection", NULL)) != 0) reboot = 1; |
---|
[32307] | 877 | //free(oldinfobar2_sel); oldinfobar2_sel=NULL; |
---|
[38291] | 878 | |
---|
| 879 | char* oldchannellist_sel = getskinconfig("channellist_selection", NULL); |
---|
| 880 | addskinconfigscreencheck("channellist_selection", channellist_sel, "0"); |
---|
| 881 | if(ostrcmp(oldchannellist_sel,getskinconfig("channellist_selection", NULL)) != 0) reboot = 1; |
---|
| 882 | //free(oldchannellist_sel); oldchannellist_sel=NULL; |
---|
| 883 | |
---|
[35555] | 884 | addconfig("skinblinkoff", blinkoff->ret); |
---|
[32302] | 885 | |
---|
[27763] | 886 | writeskinconfigtmp(); |
---|
[38281] | 887 | |
---|
[27763] | 888 | if(reboot == 1) |
---|
[22387] | 889 | { |
---|
[38463] | 890 | textbox(_("Message"), _("Titan will be restarted!"), _("OK"), getrcconfigint("rcok", NULL), NULL, 0, NULL, 0, NULL, 0, 1000, 200, 0, 0); |
---|
[22387] | 891 | oshutdown(3, 0); |
---|
| 892 | } |
---|
[32298] | 893 | |
---|
[9119] | 894 | break; |
---|
| 895 | } |
---|
| 896 | } |
---|
| 897 | |
---|
[27763] | 898 | delskinconfigtmpall(); |
---|
[9119] | 899 | delownerrc(skinadjust); |
---|
| 900 | clearscreen(skinadjust); |
---|
| 901 | } |
---|
| 902 | |
---|
| 903 | #endif |
---|