Skip to content
Open
2 changes: 1 addition & 1 deletion app/utils/to-electron-background-color.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const toElectronBackgroundColor = (bgColor: string) => {
}

// http://stackoverflow.com/a/11019879/1202488
const alphaHex = Math.round(color.alpha() * 255).toString(16);
const alphaHex = Math.round(color.alpha() * 255).toString(16).padStart(2, '0');
return `#${alphaHex}${color.hex().toString().slice(1)}`;
};

Expand Down