mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:57:35 +00:00
LibGfx: Add Paths to themes
Paths allows themes to specify directories/files where custom resources are located.
This commit is contained in:
parent
044b4cc090
commit
41aacdf815
4 changed files with 45 additions and 0 deletions
|
@ -27,6 +27,7 @@
|
|||
#pragma once
|
||||
|
||||
#include <AK/Forward.h>
|
||||
#include <AK/String.h>
|
||||
#include <AK/Types.h>
|
||||
#include <LibGfx/Color.h>
|
||||
|
||||
|
@ -105,9 +106,16 @@ enum class MetricRole {
|
|||
__Count,
|
||||
};
|
||||
|
||||
enum class PathRole {
|
||||
NoRole,
|
||||
TitleButtonIcons,
|
||||
__Count,
|
||||
};
|
||||
|
||||
struct SystemTheme {
|
||||
Color color[(int)ColorRole::__Count];
|
||||
int metric[(int)MetricRole::__Count];
|
||||
String path[(int)PathRole::__Count];
|
||||
};
|
||||
|
||||
const SystemTheme& current_system_theme();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue