1
0
mirror of https://github.com/deavmi/birchwood synced 2024-09-20 13:22:52 +02:00

Formatting

- Changed name of enum `simpleColor` to `SimpleColor` to adhere to D naming conventions
This commit is contained in:
Tristan B. Velloza Kildaire 2023-03-18 13:05:57 +02:00
parent 4f361f5044
commit 71d30039da

View File

@ -21,7 +21,7 @@ enum ascii_color_code = '\x03';
enum hex_color_code = '\x04'; enum hex_color_code = '\x04';
// Simple color codes // Simple color codes
enum simpleColor: string { enum SimpleColor: string {
WHITE = "00", WHITE = "00",
BLACK = "01", BLACK = "01",
BLUE = "02", BLUE = "02",
@ -84,13 +84,13 @@ string set_foreground_background(string fg, string bg) {
// Generates a string that changes the foreground color (except enum) // Generates a string that changes the foreground color (except enum)
pragma(inline) pragma(inline)
string set_foreground(simpleColor color) { string set_foreground(SimpleColor color) {
return ascii_color_code ~ color; return ascii_color_code ~ color;
} }
// Generate a string that sets the foreground and background color (except enum) // Generate a string that sets the foreground and background color (except enum)
pragma(inline) pragma(inline)
string set_foreground_background(simpleColor fg, simpleColor bg) { string set_foreground_background(SimpleColor fg, SimpleColor bg) {
return ascii_color_code ~ fg ~ "," ~ bg; return ascii_color_code ~ fg ~ "," ~ bg;
} }