mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-04-28 01:26:29 +00:00
[client] app: add option to disable dimming in overlay mode
This commit is contained in:
parent
f17dfdc9b3
commit
9ccd93bfd8
@ -862,16 +862,13 @@ render_again:
|
|||||||
igNewFrame();
|
igNewFrame();
|
||||||
|
|
||||||
const bool overlayMode = app_isOverlayMode();
|
const bool overlayMode = app_isOverlayMode();
|
||||||
if (overlayMode)
|
if (overlayMode && g_params.overlayDim)
|
||||||
{
|
{
|
||||||
totalDamage = true;
|
totalDamage = true;
|
||||||
ImDrawList_AddRectFilled(igGetBackgroundDrawList_Nil(), (ImVec2) { 0.0f , 0.0f },
|
ImDrawList_AddRectFilled(igGetBackgroundDrawList_Nil(), (ImVec2) { 0.0f , 0.0f },
|
||||||
g_state.io->DisplaySize,
|
g_state.io->DisplaySize,
|
||||||
igGetColorU32_Col(ImGuiCol_ModalWindowDimBg, 1.0f),
|
igGetColorU32_Col(ImGuiCol_ModalWindowDimBg, 1.0f),
|
||||||
0, 0);
|
0, 0);
|
||||||
|
|
||||||
// bool test;
|
|
||||||
// igShowDemoWindow(&test);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const bool msgModal = overlayMsg_modal();
|
const bool msgModal = overlayMsg_modal();
|
||||||
|
@ -259,6 +259,13 @@ static struct Option options[] =
|
|||||||
.type = OPTION_TYPE_BOOL,
|
.type = OPTION_TYPE_BOOL,
|
||||||
.value.x_bool = false,
|
.value.x_bool = false,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
.module = "win",
|
||||||
|
.name = "overlayDimsDesktop",
|
||||||
|
.description = "Dim the desktop when in interactive overlay mode",
|
||||||
|
.type = OPTION_TYPE_BOOL,
|
||||||
|
.value.x_bool = true,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
.module = "win",
|
.module = "win",
|
||||||
.name = "rotate",
|
.name = "rotate",
|
||||||
@ -630,6 +637,7 @@ bool config_load(int argc, char * argv[])
|
|||||||
g_params.autoScreensaver = option_get_bool ("win", "autoScreensaver" );
|
g_params.autoScreensaver = option_get_bool ("win", "autoScreensaver" );
|
||||||
g_params.showAlerts = option_get_bool ("win", "alerts" );
|
g_params.showAlerts = option_get_bool ("win", "alerts" );
|
||||||
g_params.quickSplash = option_get_bool ("win", "quickSplash" );
|
g_params.quickSplash = option_get_bool ("win", "quickSplash" );
|
||||||
|
g_params.overlayDim = option_get_bool ("win", "overlayDimsDesktop");
|
||||||
g_params.uiFont = option_get_string("win", "uiFont" );
|
g_params.uiFont = option_get_string("win", "uiFont" );
|
||||||
g_params.uiSize = option_get_int ("win", "uiSize" );
|
g_params.uiSize = option_get_int ("win", "uiSize" );
|
||||||
g_params.jitRender = option_get_bool ("win", "jitRender" );
|
g_params.jitRender = option_get_bool ("win", "jitRender" );
|
||||||
|
@ -189,6 +189,7 @@ struct AppParams
|
|||||||
bool showAlerts;
|
bool showAlerts;
|
||||||
bool captureOnStart;
|
bool captureOnStart;
|
||||||
bool quickSplash;
|
bool quickSplash;
|
||||||
|
bool overlayDim;
|
||||||
bool alwaysShowCursor;
|
bool alwaysShowCursor;
|
||||||
uint64_t helpMenuDelayUs;
|
uint64_t helpMenuDelayUs;
|
||||||
const char * uiFont;
|
const char * uiFont;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user