formatting changes

This commit is contained in:
shreya 2025-01-17 00:05:49 +05:30
parent b7402aa3bf
commit 956bed3d8c
2 changed files with 3 additions and 4 deletions

View file

@ -428,11 +428,10 @@ void CHyprpicker::renderSurface(CLayerSurface* pSurface, bool forceInactive) {
if (!m_bDisableHexPreview) { if (!m_bDisableHexPreview) {
const auto currentColor = getColorFromPixel(pSurface, CLICKPOS); const auto currentColor = getColorFromPixel(pSurface, CLICKPOS);
std::string hexBuffer; std::string hexBuffer;
if (m_bUseLowerCase) { if (m_bUseLowerCase)
hexBuffer = std::format("#{:02x}{:02x}{:02x}", currentColor.r, currentColor.g, currentColor.b); 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); 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); cairo_set_source_rgba(PCAIRO, 0.0, 0.0, 0.0, 0.5);

View file

@ -16,7 +16,7 @@ static void help(void) {
<< " -v | --verbose | Enable more logs\n" << " -v | --verbose | Enable more logs\n"
<< " -t | --no-fractional | Disable fractional scaling support\n" << " -t | --no-fractional | Disable fractional scaling support\n"
<< " -d | --disable-hex-preview | Disable live preview of Hex code\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"; << " -V | --version | Print version info\n";
} }