mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-24 11:21:34 +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
Notes:
sideshowbarker
2024-07-19 04:26:16 +09:00
Author: https://github.com/thankyouverycool
Commit: 41aacdf815
Pull-request: https://github.com/SerenityOS/serenity/pull/2923
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