Skip to content
This repository has been archived by the owner on May 20, 2024. It is now read-only.

Commit

Permalink
1.0.8.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Abdelrhman-AK committed Nov 30, 2023
1 parent 16e88ee commit 4314cea
Show file tree
Hide file tree
Showing 195 changed files with 9,848 additions and 10,942 deletions.
2 changes: 1 addition & 1 deletion Store/Themes/AMOLED/AMOLED.wpth

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion WinPaletter.SysEventsSounds/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ internal static class Program
static void Main()
{
ServiceBase[] ServicesToRun;
ServicesToRun = new ServiceBase[]
ServicesToRun = new[]
{
new Service1()
};
Expand Down
10 changes: 5 additions & 5 deletions WinPaletter/ColorItemControllers/ColorInfoDragDrop.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ protected override CreateParams CreateParams
{
get
{
var cp = base.CreateParams;
CreateParams cp = base.CreateParams;
if (!DWMAPI.IsCompositionEnabled())
{
cp.ClassStyle = cp.ClassStyle | DWMAPI.CS_DROPSHADOW;
cp.ExStyle = cp.ExStyle | 33554432;
cp.ClassStyle |= DWMAPI.CS_DROPSHADOW;
cp.ExStyle |= 33554432;
return cp;
}
else
Expand Down Expand Up @@ -82,7 +82,7 @@ private void ColorInfoDragDrop_Load(object sender, EventArgs e)

private void Color_From_BackColorChanged(object sender, EventArgs e)
{
var Color = ((Panel)sender).BackColor;
Color Color = ((Panel)sender).BackColor;
BackColor = Program.Style.DarkMode ? Color.Dark(_dark) : Color.LightLight();

Label6.Text = Color.ReturnFormat(ColorsExtensions.ColorFormat.RGB, true, Color.A < 255).Replace(" ", ", ");
Expand All @@ -98,7 +98,7 @@ private void Color_From_BackColorChanged(object sender, EventArgs e)

private void Color_To_BackColorChanged(object sender, EventArgs e)
{
var Color = ((Panel)sender).BackColor;
Color Color = ((Panel)sender).BackColor;

Label13.Text = Color.ReturnFormat(ColorsExtensions.ColorFormat.RGB, true, Color.A < 255).Replace(" ", ", ");
Label12.Text = Color.ReturnFormat(ColorsExtensions.ColorFormat.HEX, true, Color.A < 255).Replace(" ", ", ");
Expand Down
261 changes: 130 additions & 131 deletions WinPaletter/ColorItemControllers/ColorPickerDlg.cs

Large diffs are not rendered by default.

50 changes: 25 additions & 25 deletions WinPaletter/ColorItemControllers/SubMenu.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

42 changes: 21 additions & 21 deletions WinPaletter/ColorItemControllers/SubMenu.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ protected override CreateParams CreateParams
{
get
{
var cp = base.CreateParams;
CreateParams cp = base.CreateParams;
if (!DWMAPI.IsCompositionEnabled())
{
cp.ClassStyle = cp.ClassStyle | DWMAPI.CS_DROPSHADOW;
cp.ExStyle = cp.ExStyle | 33554432;
cp.ClassStyle |= DWMAPI.CS_DROPSHADOW;
cp.ExStyle |= 33554432;
return cp;
}
else
Expand Down Expand Up @@ -81,25 +81,25 @@ public Color ShowMenu(UI.Controllers.ColorItem ColorItem, bool EnableDelete = fa
Button5.Visible = EnableDelete;

MainColor.BackColor = ColorItem.BackColor.CB((float)((Trackbar1.Value - 100) / 100d));
DefaultColor.BackColor = ColorItem.DefaultColor.CB((float)((Trackbar2.Value - 100) / 100d));
DefaultColor.BackColor = ColorItem.DefaultBackColor.CB((float)((Trackbar2.Value - 100) / 100d));
InvertedColor.BackColor = ColorItem.BackColor.Invert().CB((float)((Trackbar3.Value - 100) / 100d));

MainColor.DefaultColor = ColorItem.BackColor;
DefaultColor.DefaultColor = ColorItem.DefaultColor;
InvertedColor.DefaultColor = ColorItem.BackColor.Invert();
MainColor.DefaultBackColor = ColorItem.BackColor;
DefaultColor.DefaultBackColor = ColorItem.DefaultBackColor;
InvertedColor.DefaultBackColor = ColorItem.BackColor.Invert();

if (ColorItem.ColorsHistory.Count > 1)
{
PreviousColor.BackColor = ColorItem.ColorsHistory[ColorItem.ColorsHistory.Count - 2].CB((float)((Trackbar4.Value - 100) / 100d));
PreviousColor.DefaultColor = ColorItem.ColorsHistory[ColorItem.ColorsHistory.Count - 2];
PreviousColor.DefaultBackColor = ColorItem.ColorsHistory[ColorItem.ColorsHistory.Count - 2];
}
else
{
PreviousColor.BackColor = ColorItem.BackColor.CB((float)((Trackbar4.Value - 100) / 100d));
PreviousColor.DefaultColor = ColorItem.BackColor;
PreviousColor.DefaultBackColor = ColorItem.BackColor;
}

PreviousClr = PreviousColor.DefaultColor;
PreviousClr = PreviousColor.DefaultBackColor;

GetHistoryColors(ColorItem);

Expand Down Expand Up @@ -140,15 +140,15 @@ public Color ShowMenu(UI.Controllers.ColorItem ColorItem, bool EnableDelete = fa

case ColorClipboard.MenuEvent.None:
{
return MainColor.DefaultColor;
return MainColor.DefaultBackColor;
}

}
}
else
{
ColorClipboard.Event = ColorClipboard.MenuEvent.None;
return MainColor.DefaultColor;
return MainColor.DefaultBackColor;
} // Nothing

return default;
Expand Down Expand Up @@ -313,10 +313,10 @@ private void SubMenu_Load(object sender, EventArgs e)
public void MiniColorItem_Clicked(object sender, EventArgs e)
{
MainColor.BackColor = ((UI.Controllers.ColorItem)sender).BackColor;
MainColor.DefaultColor = ((UI.Controllers.ColorItem)sender).BackColor;
MainColor.DefaultBackColor = ((UI.Controllers.ColorItem)sender).BackColor;

InvertedColor.BackColor = MainColor.BackColor.Invert().CB((float)((Trackbar3.Value - 100) / 100d));
InvertedColor.DefaultColor = MainColor.BackColor.Invert();
InvertedColor.DefaultBackColor = MainColor.BackColor.Invert();

Collapse_Expand();
}
Expand All @@ -336,12 +336,12 @@ public void GetHistoryColors(UI.Controllers.ColorItem ColorItem)

foreach (Color c in ColorItem.ColorsHistory)
{
UI.Controllers.ColorItem MiniColorItem = new UI.Controllers.ColorItem();
UI.Controllers.ColorItem MiniColorItem = new();
MiniColorItem.Size = MiniColorItem.GetMiniColorItemSize();
MiniColorItem.AllowDrop = false;
MiniColorItem.PauseColorsHistory = true;
MiniColorItem.BackColor = c;
MiniColorItem.DefaultColor = MiniColorItem.BackColor;
MiniColorItem.DefaultBackColor = MiniColorItem.BackColor;

PaletteContainer.Controls.Add(MiniColorItem);
MiniColorItem.Click += MiniColorItem_Clicked;
Expand All @@ -352,7 +352,7 @@ public void GetHistoryColors(UI.Controllers.ColorItem ColorItem)

public void Update_Variants()
{
InvertedColor.DefaultColor = MainColor.DefaultColor.Invert();
InvertedColor.DefaultBackColor = MainColor.DefaultBackColor.Invert();
}

private void Button1_Click(object sender, EventArgs e)
Expand Down Expand Up @@ -404,17 +404,17 @@ private void Button5_Click(object sender, EventArgs e)

private void Trackbar1_Scroll(object sender)
{
MainColor.BackColor = MainColor.DefaultColor.CB((float)((Trackbar1.Value - 100) / 100d));
MainColor.BackColor = MainColor.DefaultBackColor.CB((float)((Trackbar1.Value - 100) / 100d));
}

private void Trackbar2_Scroll(object sender)
{
DefaultColor.BackColor = DefaultColor.DefaultColor.CB((float)((Trackbar2.Value - 100) / 100d));
DefaultColor.BackColor = DefaultColor.DefaultBackColor.CB((float)((Trackbar2.Value - 100) / 100d));
}

private void Trackbar3_Scroll(object sender)
{
InvertedColor.BackColor = InvertedColor.DefaultColor.CB((float)((Trackbar3.Value - 100) / 100d));
InvertedColor.BackColor = InvertedColor.DefaultBackColor.CB((float)((Trackbar3.Value - 100) / 100d));
}

private void Button6_Click(object sender, EventArgs e)
Expand All @@ -434,7 +434,7 @@ private void Button8_Click(object sender, EventArgs e)

private void Trackbar4_Scroll(object sender)
{
PreviousColor.BackColor = PreviousColor.DefaultColor.CB((float)((Trackbar4.Value - 100) / 100d));
PreviousColor.BackColor = PreviousColor.DefaultBackColor.CB((float)((Trackbar4.Value - 100) / 100d));
}

private void Button9_Click(object sender, EventArgs e)
Expand Down
4 changes: 2 additions & 2 deletions WinPaletter/Converter/Converter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public Converter_CP.WP_Format GetFormat(string File)
{
if (System.IO.File.Exists(File))
{
Converter_CP = new Converter_CP(File);
Converter_CP = new(File);
return Format;
}
else
Expand All @@ -24,7 +24,7 @@ public void Convert(string File, string SaveAs, bool Compress, bool OldWPTH1069)
{
if (System.IO.File.Exists(File))
{
Converter_CP = new Converter_CP(File);
Converter_CP = new(File);

switch (Format)
{
Expand Down
Loading

0 comments on commit 4314cea

Please sign in to comment.