mirror of
https://github.com/hyprwm/hyprpicker.git
synced 2025-12-20 08:20:02 +01:00
formatting changes
This commit is contained in:
parent
b7402aa3bf
commit
956bed3d8c
2 changed files with 3 additions and 4 deletions
|
|
@ -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);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue