mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-10-12 18:38:12 +00:00
[client] imgui: make UI font and size configurable
This commit is contained in:
@@ -262,6 +262,20 @@ static struct Option options[] =
|
||||
.validator = optRotateValidate,
|
||||
.value.x_int = 0,
|
||||
},
|
||||
{
|
||||
.module = "win",
|
||||
.name = "uiFont",
|
||||
.description = "The font to use when rendering on-screen UI",
|
||||
.type = OPTION_TYPE_STRING,
|
||||
.value.x_string = "DejaVu Sans Mono",
|
||||
},
|
||||
{
|
||||
.module = "win",
|
||||
.name = "uiSize",
|
||||
.description = "The font size to use when rendering on-screen UI",
|
||||
.type = OPTION_TYPE_INT,
|
||||
.value.x_int = 14
|
||||
},
|
||||
|
||||
// input options
|
||||
{
|
||||
@@ -526,6 +540,8 @@ bool config_load(int argc, char * argv[])
|
||||
g_params.autoScreensaver = option_get_bool ("win", "autoScreensaver");
|
||||
g_params.showAlerts = option_get_bool ("win", "alerts" );
|
||||
g_params.quickSplash = option_get_bool ("win", "quickSplash" );
|
||||
g_params.uiFont = option_get_string("win" , "uiFont" );
|
||||
g_params.uiSize = option_get_int ("win" , "uiSize" );
|
||||
|
||||
if (g_params.noScreensaver && g_params.autoScreensaver)
|
||||
{
|
||||
|
Reference in New Issue
Block a user