flameshot-once profile: +drawColor

This commit is contained in:
tv 2021-12-14 23:11:14 +01:00
parent 657aa2b1d8
commit c2ee574729

View File

@ -64,6 +64,11 @@ let
default = true; default = true;
type = types.bool; type = types.bool;
}; };
drawColor = mkOption {
default = "#ff0000";
type =
types.addCheck types.str (test "#[0-9A-Fa-f]{6}");
};
drawThickness = mkOption { drawThickness = mkOption {
default = 8; default = 8;
type = types.positive; type = types.positive;
@ -179,6 +184,7 @@ let
disabledTrayIcon = cfg.disabledTrayIcon; disabledTrayIcon = cfg.disabledTrayIcon;
checkForUpdates = false; checkForUpdates = false;
copyAndCloseAfterUpload = cfg.copyAndCloseAfterUpload; copyAndCloseAfterUpload = cfg.copyAndCloseAfterUpload;
drawColor = cfg.drawColor;
drawThickness = cfg.drawThickness; drawThickness = cfg.drawThickness;
filenamePattern = cfg.filenamePattern; filenamePattern = cfg.filenamePattern;
savePath = cfg.savePath; savePath = cfg.savePath;