ladybird/Userland/Libraries/LibGUI/ModelRole.h
Andreas Kling 8ba47facf6 LibGUI: Add ModelRole::IconOpacity and support it in all views :^)
This role allows you to specify a custom opacity for icon painting.
Note that the opacity is not in effect when the item is either
selected and/or hovered.
2021-07-27 18:27:49 +02:00

26 lines
410 B
C++

/*
* Copyright (c) 2020, Andreas Kling <kling@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
namespace GUI {
enum class ModelRole {
Display,
Sort,
ForegroundColor,
BackgroundColor,
Icon,
IconOpacity,
Font,
MimeData,
TextAlignment,
Search,
Custom = 0x100, // Applications are free to use roles above this number as they please
};
}