Don't draw carets when inactive, todo update
This commit is contained in:
@@ -180,9 +180,13 @@ int CompileNewPlatform() {
|
||||
return result;
|
||||
}
|
||||
|
||||
char *ToColor(const char *value) {
|
||||
S8_String f = Fmt("{0x%.*s, 0x%.*s, 0x%.*s, 0x%.*s}", 2, value + 2, 2, value + 4, 2, value + 6, 2, value + 8);
|
||||
return f.str;
|
||||
char *C(const char *value) {
|
||||
if (value[0] == '0' && value[1] == 'x') {
|
||||
S8_String f = Fmt("{0x%.*s, 0x%.*s, 0x%.*s, 0x%.*s}", 2, value + 2, 2, value + 4, 2, value + 6, 2, value + 8);
|
||||
return f.str;
|
||||
} else {
|
||||
return (char *)value;
|
||||
}
|
||||
}
|
||||
|
||||
S8_String LuaScript = R"==(
|
||||
@@ -354,12 +358,10 @@ void GenerateConfig() {
|
||||
gruvbox.add({"GruvboxFadedAqua" , "0x427b58ff"});
|
||||
gruvbox.add({"GruvboxFadedOrange" , "0xaf3a03ff"});
|
||||
|
||||
gruvbox.add({"_InactiveWindowColor" , "0x0000000F"});
|
||||
|
||||
Array<Color> colors = {};
|
||||
colors.add({"Text" , "GruvboxDark0Hard"});
|
||||
colors.add({"Background" , "GruvboxLight0Hard"});
|
||||
colors.add({"InactiveWindow" , "_InactiveWindowColor"});
|
||||
colors.add({"InactiveWindow" , "0x0000000F"});
|
||||
// colors.add({"TabText" , "GruvboxDark0Hard"});
|
||||
// colors.add({"TabBackground" , "GruvboxLight0Hard"});
|
||||
// colors.add({"TabBackgroundInactive" , "GruvboxLight2"});
|
||||
@@ -379,8 +381,8 @@ void GenerateConfig() {
|
||||
MA_Scratch scratch;
|
||||
Array<S8_String> sb = {MA_GetAllocator(scratch)};
|
||||
{
|
||||
For(gruvbox) sb.add(Fmt("Color %s = %s;", it.name, ToColor(it.value)));
|
||||
For(colors) sb.add(Fmt("Color Color%s = %s;", it.name, it.value));
|
||||
For(gruvbox) sb.add(Fmt("Color %s = %s;", it.name, C(it.value)));
|
||||
For(colors) sb.add(Fmt("Color Color%s = %s;", it.name, C(it.value)));
|
||||
}
|
||||
sb.add("String BaseLuaConfig = R\"==(");
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user