Changeset d8ddf7a in mainline for uspace/app/launcher/launcher.c


Ignore:
Timestamp:
2020-11-22T17:52:37Z (4 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2d879f7
Parents:
4f64b7b8
Message:

UI demo should demonstrate image and entry controls

We also add the ability to draw a frame around image control, use
in UI demo and in launcher.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/launcher/launcher.c

    r4f64b7b8 rd8ddf7a  
    228228        }
    229229
    230         off.x = 5;
     230        off.x = 6;
    231231        off.y = 32;
    232232        gfx_rect_translate(&off, &logo_rect, &rect);
     233
     234        /* Adjust for frame width (2 x 1 pixel) */
     235        rect.p1.x += 2;
     236        rect.p1.y += 2;
    233237        ui_image_set_rect(launcher.image, &rect);
     238        ui_image_set_flags(launcher.image, ui_imgf_frame);
    234239
    235240        rc = ui_fixed_add(launcher.fixed, ui_image_ctl(launcher.image));
     
    238243                return rc;
    239244        }
     245
    240246        rc = ui_label_create(ui_res, "Launch application", &launcher.label);
    241247        if (rc != EOK) {
Note: See TracChangeset for help on using the changeset viewer.