Changeset 7aeb52cb in mainline for uspace/app/nav/types/panel.h


Ignore:
Timestamp:
2021-10-25T00:32:45Z (3 years ago)
Author:
jxsvoboda <5887334+jxsvoboda@…>
Branches:
master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
01e9991
Parents:
f783081
git-author:
Jiri Svoboda <jiri@…> (2021-10-16 21:51:33)
git-committer:
jxsvoboda <5887334+jxsvoboda@…> (2021-10-25 00:32:45)
Message:

Different color for service-special files

File:
1 edited

Legend:

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

    rf783081 r7aeb52cb  
    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.