summaryrefslogtreecommitdiffstats
path: root/src/detection/terminaltheme/terminaltheme.h
blob: a2808dc1ad26ead3a11c454a331b9e7c9fd44254 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#pragma once

#include "fastfetch.h"
#include "modules/terminaltheme/option.h"

typedef struct FFTerminalThemeColor {
    uint16_t r;
    uint16_t g;
    uint16_t b;
    bool dark;
} FFTerminalThemeColor;

typedef struct FFTerminalThemeResult {
    FFTerminalThemeColor fg;
    FFTerminalThemeColor bg;
} FFTerminalThemeResult;

bool ffDetectTerminalTheme(FFTerminalThemeResult* result, bool forceEnv);