mirror of
https://github.com/hyprwm/hyprlock.git
synced 2025-05-13 05:40:42 +01:00
renderer: remove loading bar (#714)
This commit is contained in:
parent
f883e669d1
commit
9e54d02590
2 changed files with 1 additions and 12 deletions
|
@ -209,7 +209,6 @@ void CConfigManager::init() {
|
||||||
m_config.addSpecialConfigValue(name, "shadow_passes", Hyprlang::INT{0}); \
|
m_config.addSpecialConfigValue(name, "shadow_passes", Hyprlang::INT{0}); \
|
||||||
m_config.addSpecialConfigValue(name, "shadow_color", Hyprlang::INT{0xFF000000}); \
|
m_config.addSpecialConfigValue(name, "shadow_color", Hyprlang::INT{0xFF000000}); \
|
||||||
m_config.addSpecialConfigValue(name, "shadow_boost", Hyprlang::FLOAT{1.2});
|
m_config.addSpecialConfigValue(name, "shadow_boost", Hyprlang::FLOAT{1.2});
|
||||||
m_config.addConfigValue("general:disable_loading_bar", Hyprlang::INT{0});
|
|
||||||
m_config.addConfigValue("general:text_trim", Hyprlang::INT{1});
|
m_config.addConfigValue("general:text_trim", Hyprlang::INT{1});
|
||||||
m_config.addConfigValue("general:hide_cursor", Hyprlang::INT{0});
|
m_config.addConfigValue("general:hide_cursor", Hyprlang::INT{0});
|
||||||
m_config.addConfigValue("general:grace", Hyprlang::INT{0});
|
m_config.addConfigValue("general:grace", Hyprlang::INT{0});
|
||||||
|
|
|
@ -201,8 +201,6 @@ CRenderer::CRenderer() {
|
||||||
|
|
||||||
//
|
//
|
||||||
CRenderer::SRenderFeedback CRenderer::renderLock(const CSessionLockSurface& surf) {
|
CRenderer::SRenderFeedback CRenderer::renderLock(const CSessionLockSurface& surf) {
|
||||||
static const auto DISABLEBAR = g_pConfigManager->getValue<Hyprlang::INT>("general:disable_loading_bar");
|
|
||||||
|
|
||||||
projection = Mat3x3::outputProjection(surf.size, HYPRUTILS_TRANSFORM_NORMAL);
|
projection = Mat3x3::outputProjection(surf.size, HYPRUTILS_TRANSFORM_NORMAL);
|
||||||
|
|
||||||
g_pEGL->makeCurrent(surf.eglSurface);
|
g_pEGL->makeCurrent(surf.eglSurface);
|
||||||
|
@ -221,15 +219,7 @@ CRenderer::SRenderFeedback CRenderer::renderLock(const CSessionLockSurface& surf
|
||||||
SRenderFeedback feedback;
|
SRenderFeedback feedback;
|
||||||
const bool WAITFORASSETS = !g_pHyprlock->m_bImmediateRender && !asyncResourceGatherer->gathered;
|
const bool WAITFORASSETS = !g_pHyprlock->m_bImmediateRender && !asyncResourceGatherer->gathered;
|
||||||
|
|
||||||
if (WAITFORASSETS) {
|
if (!WAITFORASSETS) {
|
||||||
|
|
||||||
// render status
|
|
||||||
if (!*DISABLEBAR) {
|
|
||||||
CBox progress = {0, 0, asyncResourceGatherer->progress * surf.size.x, 2};
|
|
||||||
renderRect(progress, CHyprColor{0.2f, 0.1f, 0.1f, 1.f}, 0);
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
|
|
||||||
// render widgets
|
// render widgets
|
||||||
const auto WIDGETS = getOrCreateWidgetsFor(surf);
|
const auto WIDGETS = getOrCreateWidgetsFor(surf);
|
||||||
for (auto& w : WIDGETS) {
|
for (auto& w : WIDGETS) {
|
||||||
|
|
Loading…
Reference in a new issue