From 956bed3d8c4ddc1804cac06b7d70628b51cdfcb0 Mon Sep 17 00:00:00 2001 From: shreya Date: Fri, 17 Jan 2025 00:05:49 +0530 Subject: [PATCH] formatting changes --- src/hyprpicker.cpp | 5 ++--- src/main.cpp | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/hyprpicker.cpp b/src/hyprpicker.cpp index 971b75b..650204a 100644 --- a/src/hyprpicker.cpp +++ b/src/hyprpicker.cpp @@ -428,11 +428,10 @@ void CHyprpicker::renderSurface(CLayerSurface* pSurface, bool forceInactive) { if (!m_bDisableHexPreview) { const auto currentColor = getColorFromPixel(pSurface, CLICKPOS); std::string hexBuffer; - if (m_bUseLowerCase) { + if (m_bUseLowerCase) hexBuffer = std::format("#{:02x}{:02x}{:02x}", currentColor.r, currentColor.g, currentColor.b); - } else { + else hexBuffer = std::format("#{:02X}{:02X}{:02X}", currentColor.r, currentColor.g, currentColor.b); - } cairo_set_source_rgba(PCAIRO, 0.0, 0.0, 0.0, 0.5); diff --git a/src/main.cpp b/src/main.cpp index e9124c5..5ccb341 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -16,7 +16,7 @@ static void help(void) { << " -v | --verbose | Enable more logs\n" << " -t | --no-fractional | Disable fractional scaling support\n" << " -d | --disable-hex-preview | Disable live preview of Hex code\n" - << " -l | --lowercase-hex | Outputs the hexcode in lowercase\n" + << " -l | --lowercase-hex | Outputs the hexcode in lowercase\n" << " -V | --version | Print version info\n"; }