Skip to content

Commit

Permalink
Removed opaque background support
Browse files Browse the repository at this point in the history
  • Loading branch information
Cvolton committed Apr 30, 2021
1 parent d8948b5 commit d0e80d7
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 365 deletions.
9 changes: 0 additions & 9 deletions Hotkeys.cs
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,6 @@ protected override void WndProc(ref Message m)

private ScreenshotTask GetParamteresFromUI()
{
var type = ScreenshotTask.BackgroundType.Transparent;
if (_settings.opaqueCheckbox && _settings.opaqueType == 0)
type = ScreenshotTask.BackgroundType.Checkerboard;
else if (_settings.opaqueCheckbox && _settings.opaqueType == 1)
type = ScreenshotTask.BackgroundType.SolidColor;

return
new ScreenshotTask(
WindowsApi.GetForegroundWindow(),
Expand All @@ -102,9 +96,6 @@ private ScreenshotTask GetParamteresFromUI()
_settings.resizeCheckbox,
_settings.windowWidth,
_settings.windowHeight,
type,
Color.FromArgb(Convert.ToInt32("FF" + _settings.opaqueColorHexBox, 16)),
_settings.checkerValue,
_settings.aeroColorCheckbox,
Color.FromArgb(Convert.ToInt32("FF" + _settings.aeroColorHexBox, 16)),
_settings.mouseCheckbox,
Expand Down
Loading

0 comments on commit d0e80d7

Please sign in to comment.