| 288 | |
| 289 | |
| 290 | void XTheme::FillByEmbedded() |
| 291 | { |
| 292 | embedded = true; |
| 293 | Theme.takeValueFrom("embedded"); |
| 294 | SelectionColor = 0xA0A0A080; |
| 295 | SelectionBackgroundPixel = { 0xa0, 0xa0, 0xa0, 0x80 }; |
| 296 | |
| 297 | Icons.setEmpty(); |
| 298 | for (INTN i = 0; i < BUILTIN_ICON_COUNT; ++i) { //this is embedded icon count |
| 299 | XIcon* NewIcon = new XIcon(i, true); |
| 300 | Icons.AddReference(NewIcon, true); |
| 301 | } |
| 302 | |
| 303 | BigBack.setEmpty(); |
| 304 | Background = XImage(UGAWidth, UGAHeight); |
| 305 | |
| 306 | if (Daylight) { |
| 307 | Banner.FromPNG(ACCESS_EMB_DATA(emb_logo), emb_logo_size); |
| 308 | } else { |
| 309 | Banner.FromPNG(ACCESS_EMB_DATA(emb_dark_logo), emb_dark_logo_size); |
| 310 | } |
| 311 | |
| 312 | //and buttons |
| 313 | Buttons[0].FromPNG(ACCESS_EMB_DATA(emb_radio_button), ACCESS_EMB_SIZE(emb_radio_button)); |
| 314 | Buttons[1].FromPNG(ACCESS_EMB_DATA(emb_radio_button_selected), ACCESS_EMB_SIZE(emb_radio_button_selected)); |
| 315 | Buttons[2].FromPNG(ACCESS_EMB_DATA(emb_checkbox), ACCESS_EMB_SIZE(emb_checkbox)); |
| 316 | Buttons[3].FromPNG(ACCESS_EMB_DATA(emb_checkbox_checked), ACCESS_EMB_SIZE(emb_checkbox_checked)); |
| 317 | |
| 318 | if (Daylight) { |
| 319 | SelectionImages[0].FromPNG(ACCESS_EMB_DATA(emb_selection_big), ACCESS_EMB_SIZE(emb_selection_big)); |
| 320 | SelectionImages[2].FromPNG(ACCESS_EMB_DATA(emb_selection_small), ACCESS_EMB_SIZE(emb_selection_small)); |
| 321 | } else { |
| 322 | SelectionImages[0].FromPNG(ACCESS_EMB_DATA(emb_dark_selection_big), ACCESS_EMB_SIZE(emb_dark_selection_big)); |
| 323 | SelectionImages[2].FromPNG(ACCESS_EMB_DATA(emb_dark_selection_small), ACCESS_EMB_SIZE(emb_dark_selection_small)); |
| 324 | } |
| 325 | |
| 326 | SelectionImages[4].FromPNG(ACCESS_EMB_DATA(emb_selection_indicator), ACCESS_EMB_SIZE(emb_selection_indicator)); |
| 327 | } |
| 328 | |
| 329 | void XTheme::ClearScreen() //and restore background and banner |
| 330 | { |
no test coverage detected