Changeset a977e37 in mainline
- Timestamp:
- 2021-06-23T09:52:22Z (3 years ago)
- Branches:
- master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 37d0dd4, ec16831
- Parents:
- 7481ee19
- git-author:
- Jiri Svoboda <jiri@…> (2021-06-22 17:51:57)
- git-committer:
- Jiri Svoboda <jiri@…> (2021-06-23 09:52:22)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/uidemo/uidemo.c
r7481ee19 ra977e37 433 433 } 434 434 435 rect.p0.x = 15; 436 rect.p0.y = 53; 437 rect.p1.x = 205; 438 rect.p1.y = 78; 435 /* FIXME: Auto layout */ 436 if (ui_is_textmode(ui)) { 437 rect.p0.x = 20; 438 rect.p0.y = 4; 439 rect.p1.x = 60; 440 rect.p1.y = 5; 441 } else { 442 rect.p0.x = 15; 443 rect.p0.y = 53; 444 rect.p1.x = 205; 445 rect.p1.y = 78; 446 } 447 439 448 ui_entry_set_rect(demo.entry, &rect); 440 449 ui_entry_set_halign(demo.entry, gfx_halign_center); … … 452 461 } 453 462 454 rect.p0.x = 60; 455 rect.p0.y = 88; 456 rect.p1.x = 160; 457 rect.p1.y = 101; 463 /* FIXME: Auto layout */ 464 if (ui_is_textmode(ui)) { 465 rect.p0.x = 20; 466 rect.p0.y = 6; 467 rect.p1.x = 60; 468 rect.p1.y = 7; 469 } else { 470 rect.p0.x = 60; 471 rect.p0.y = 88; 472 rect.p1.x = 160; 473 rect.p1.y = 101; 474 } 475 458 476 ui_label_set_rect(demo.label, &rect); 459 477 ui_label_set_halign(demo.label, gfx_halign_center); … … 473 491 ui_pbutton_set_cb(demo.pb1, &pbutton_cb, (void *) &demo); 474 492 475 rect.p0.x = 15; 476 rect.p0.y = 111; 477 rect.p1.x = 105; 478 rect.p1.y = 139; 493 /* FIXME: Auto layout */ 494 if (ui_is_textmode(ui)) { 495 rect.p0.x = 20; 496 rect.p0.y = 8; 497 rect.p1.x = 30; 498 rect.p1.y = 9; 499 } else { 500 rect.p0.x = 15; 501 rect.p0.y = 111; 502 rect.p1.x = 105; 503 rect.p1.y = 139; 504 } 505 479 506 ui_pbutton_set_rect(demo.pb1, &rect); 480 507 … … 495 522 ui_pbutton_set_cb(demo.pb2, &pbutton_cb, (void *) &demo); 496 523 497 rect.p0.x = 115; 498 rect.p0.y = 111; 499 rect.p1.x = 205; 500 rect.p1.y = 139; 524 if (ui_is_textmode(ui)) { 525 rect.p0.x = 50; 526 rect.p0.y = 8; 527 rect.p1.x = 60; 528 rect.p1.y = 9; 529 } else { 530 rect.p0.x = 115; 531 rect.p0.y = 111; 532 rect.p1.x = 205; 533 rect.p1.y = 139; 534 } 535 501 536 ui_pbutton_set_rect(demo.pb2, &rect); 502 537
Note:
See TracChangeset
for help on using the changeset viewer.