Changeset 75357c5 in mainline for uspace/app/nav/types/panel.h


Ignore:
Timestamp:
2021-10-16T21:51:33Z (3 years ago)
Author:
Jiri Svoboda <jiri@…>
Children:
516c160
Parents:
fd6dc08
Message:

Different color for service-special files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/nav/types/panel.h

    rfd6dc08 r75357c5  
    4040#include <gfx/color.h>
    4141#include <gfx/coord.h>
     42#include <ipc/loc.h>
    4243#include <ui/window.h>
    4344#include <stdint.h>
     45
     46/** Panel entry attributes */
     47typedef struct {
     48        /** File name */
     49        const char *name;
     50        /** File size */
     51        uint64_t size;
     52        /** @c true iff entry is a directory */
     53        bool isdir;
     54        /** Service number for service special entries */
     55        service_id_t svc;
     56} panel_entry_attr_t;
    4457
    4558/** Panel entry */
     
    5568        /** @c true iff entry is a directory */
    5669        bool isdir;
     70        /** Service number for service special entries */
     71        service_id_t svc;
    5772} panel_entry_t;
    5873
     
    8297        /** Directory-type entry color */
    8398        gfx_color_t *dir_color;
     99
     100        /** Service-type entry color */
     101        gfx_color_t *svc_color;
    84102
    85103        /** Panel entries (list of panel_entry_t) */
Note: See TracChangeset for help on using the changeset viewer.