Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/gui/window.c

    r34cb6c8 r21eeb653  
    6666
    6767static pixel_t border_color = PIXEL(255, 0, 0, 0);
    68 static pixel_t header_bg_focus_color = PIXEL(255, 88, 106, 196);
     68static pixel_t header_bg_focus_color = PIXEL(255, 25, 25, 112);
    6969static pixel_t header_fg_focus_color = PIXEL(255, 255, 255, 255);
    70 static pixel_t header_bg_unfocus_color = PIXEL(255, 12, 57, 92);
     70static pixel_t header_bg_unfocus_color = PIXEL(255, 70, 130, 180);
    7171static pixel_t header_fg_unfocus_color = PIXEL(255, 255, 255, 255);
    7272
     
    137137{
    138138        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);
    140141                        child->rearrange(child,
    141142                            widget->hpos + border_thickness,
     
    145146                }
    146147        } 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);
    148150                        child->rearrange(child, widget->hpos, widget->vpos,
    149151                            widget->width, widget->height);
     
    158160        if (widget->window->is_decorated) {
    159161                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);
    161164                        child->rearrange(child,
    162165                            hpos + border_thickness,
     
    166169                }
    167170        } 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);
    169173                        child->rearrange(child, hpos, vpos, width, height);
    170174                }
     
    177181                paint_internal(widget);
    178182        }
    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);
    180185                child->repaint(child);
    181186        }
     
    263268                        win_grab(widget->window->osess, event.pos_id, flags);
    264269                } 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);
    266272                                child->handle_position_event(child, event);
    267273                        }
    268274                }
    269275        } 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);
    271278                        child->handle_position_event(child, event);
    272279                }
     
    529536}
    530537
    531 window_t *window_open(const char *winreg, bool is_main, bool is_decorated,
     538window_t *window_open(char *winreg, bool is_main, bool is_decorated,
    532539    const char *caption, sysarg_t x_offset, sysarg_t y_offset)
    533540{
Note: See TracChangeset for help on using the changeset viewer.