Changes in uspace/app/vlaunch/vlaunch.c [9e7898e:62fbb7e] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/vlaunch/vlaunch.c
r9e7898e r62fbb7e 115 115 116 116 winreg = argv[1]; 117 window_t *main_window = window_open(argv[1], true, true, "vlaunch" , 0, 0);117 window_t *main_window = window_open(argv[1], true, true, "vlaunch"); 118 118 if (!main_window) { 119 119 printf("Cannot open main window.\n"); … … 122 122 123 123 pixel_t grd_bg = PIXEL(255, 255, 255, 255); 124 pixel_t btn_bg = PIXEL(255, 0, 0, 0); 125 pixel_t btn_fg = PIXEL(255, 240, 240, 240); 124 125 pixel_t btn_bg = PIXEL(255, 255, 255, 255); 126 pixel_t btn_fg = PIXEL(255, 186, 186, 186); 127 pixel_t btn_text = PIXEL(255, 0, 0, 0); 128 126 129 pixel_t lbl_bg = PIXEL(255, 255, 255, 255); 127 pixel_t lbl_ fg= PIXEL(255, 0, 0, 0);130 pixel_t lbl_text = PIXEL(255, 0, 0, 0); 128 131 129 132 canvas_t *logo_canvas = create_canvas(NULL, LOGO_WIDTH, LOGO_HEIGHT, 130 133 logo); 131 134 label_t *lbl_caption = create_label(NULL, "Launch application:", 16, 132 lbl_bg, lbl_ fg);135 lbl_bg, lbl_text); 133 136 button_t *btn_vterm = create_button(NULL, "vterm", 16, btn_bg, 134 btn_fg );137 btn_fg, btn_text); 135 138 button_t *btn_vdemo = create_button(NULL, "vdemo", 16, btn_bg, 136 btn_fg );139 btn_fg, btn_text); 137 140 button_t *btn_vlaunch = create_button(NULL, "vlaunch", 16, btn_bg, 138 btn_fg );141 btn_fg, btn_text); 139 142 grid_t *grid = create_grid(window_root(main_window), 1, 5, grd_bg); 140 143 … … 156 159 grid->add(grid, &btn_vlaunch->widget, 0, 4, 1, 1); 157 160 158 window_resize(main_window, 210, 130 + LOGO_HEIGHT); 161 window_resize(main_window, 0, 0, 210, 130 + LOGO_HEIGHT, 162 WINDOW_PLACEMENT_RIGHT | WINDOW_PLACEMENT_TOP); 159 163 window_exec(main_window); 160 164
Note:
See TracChangeset
for help on using the changeset viewer.