summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGUI/FileIconProvider.h
blob: d799dcd023a9651ab07c40d67b83a31355b53afc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/*
 * Copyright (c) 2020, Andreas Kling <kling@serenityos.org>
 *
 * SPDX-License-Identifier: BSD-2-Clause
 */

#pragma once

#include <AK/Forward.h>
#include <LibGUI/Forward.h>
#include <sys/types.h>

namespace GUI {

class FileIconProvider {
public:
    static Icon icon_for_path(String const&, mode_t);
    static Icon icon_for_path(String const&);
    static Icon icon_for_executable(String const&);

    static Icon filetype_image_icon();
    static Icon directory_icon();
    static Icon directory_open_icon();
    static Icon home_directory_icon();
    static Icon home_directory_open_icon();
    static Icon git_directory_icon();
    static Icon git_directory_open_icon();
    static Icon desktop_directory_icon();
};

}