Changes in uspace/lib/gui/window.c [fbb2d0d:21eeb653] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/gui/window.c
rfbb2d0d r21eeb653 66 66 67 67 static pixel_t border_color = PIXEL(255, 0, 0, 0); 68 static pixel_t header_bg_focus_color = PIXEL(255, 88, 106, 196);68 static pixel_t header_bg_focus_color = PIXEL(255, 25, 25, 112); 69 69 static pixel_t header_fg_focus_color = PIXEL(255, 255, 255, 255); 70 static pixel_t header_bg_unfocus_color = PIXEL(255, 12, 57, 92);70 static pixel_t header_bg_unfocus_color = PIXEL(255, 70, 130, 180); 71 71 static pixel_t header_fg_unfocus_color = PIXEL(255, 255, 255, 255); 72 72 … … 137 137 { 138 138 if (widget->window->is_decorated) { 139 list_foreach(widget->children, link, widget_t, child) { 139 list_foreach(widget->children, link) { 140 widget_t *child = list_get_instance(link, widget_t, link); 140 141 child->rearrange(child, 141 142 widget->hpos + border_thickness, … … 145 146 } 146 147 } else { 147 list_foreach(widget->children, link, widget_t, child) { 148 list_foreach(widget->children, link) { 149 widget_t *child = list_get_instance(link, widget_t, link); 148 150 child->rearrange(child, widget->hpos, widget->vpos, 149 151 widget->width, widget->height); … … 158 160 if (widget->window->is_decorated) { 159 161 paint_internal(widget); 160 list_foreach(widget->children, link, widget_t, child) { 162 list_foreach(widget->children, link) { 163 widget_t *child = list_get_instance(link, widget_t, link); 161 164 child->rearrange(child, 162 165 hpos + border_thickness, … … 166 169 } 167 170 } else { 168 list_foreach(widget->children, link, widget_t, child) { 171 list_foreach(widget->children, link) { 172 widget_t *child = list_get_instance(link, widget_t, link); 169 173 child->rearrange(child, hpos, vpos, width, height); 170 174 } … … 177 181 paint_internal(widget); 178 182 } 179 list_foreach(widget->children, link, widget_t, child) { 183 list_foreach(widget->children, link) { 184 widget_t *child = list_get_instance(link, widget_t, link); 180 185 child->repaint(child); 181 186 } … … 263 268 win_grab(widget->window->osess, event.pos_id, flags); 264 269 } else { 265 list_foreach(widget->children, link, widget_t, child) { 270 list_foreach(widget->children, link) { 271 widget_t *child = list_get_instance(link, widget_t, link); 266 272 child->handle_position_event(child, event); 267 273 } 268 274 } 269 275 } else { 270 list_foreach(widget->children, link, widget_t, child) { 276 list_foreach(widget->children, link) { 277 widget_t *child = list_get_instance(link, widget_t, link); 271 278 child->handle_position_event(child, event); 272 279 }
Note:
See TracChangeset
for help on using the changeset viewer.