did some skinning stuff

yoy
This commit is contained in:
AShifter 2017-11-21 15:55:27 -07:00
parent 170aebeb68
commit 805402b60f
3 changed files with 18 additions and 11 deletions

View file

@ -2,9 +2,9 @@
namespace ShiftOS.Engine.WindowManager namespace ShiftOS.Engine.WindowManager
{ {
public abstract class ShiftSkinData public abstract class ShiftSkinData
{ {
// ColorData // ColorData
public static Color LeftTopCornerColor = Color.Empty; public static Color LeftTopCornerColor = Color.Empty;
public static Color TitleBarColor = Color.Empty; public static Color TitleBarColor = Color.Empty;
public static Color RightTopCornerColor = Color.Empty; public static Color RightTopCornerColor = Color.Empty;

View file

@ -46,10 +46,13 @@ namespace ShiftOS.Engine.WindowManager
if (ShiftSkinData.TitleBarColor == Color.Empty) if (ShiftSkinData.TitleBarColor == Color.Empty)
{ {
var borderColor = Color.FromArgb(64, 64, 64); var borderColor = Color.FromArgb(64, 64, 64);
ShiftSkinData.BtnCloseColor = Color.Black; ShiftSkinData.BtnCloseColor = Color.Black;
ShiftSkinData.BtnMaxColor = Color.Black; ShiftSkinData.BtnCloseHoverColor = Color.FromArgb(40, 40, 40);
ShiftSkinData.BtnMinColor = Color.Black; ShiftSkinData.BtnMaxColor = Color.Black;
ShiftSkinData.LeftTopCornerColor = borderColor; ShiftSkinData.BtnMaxHoverColor = Color.FromArgb(40, 40, 40);
ShiftSkinData.BtnMinColor = Color.Black;
ShiftSkinData.BtnMinHoverColor = Color.FromArgb(40, 40, 40);
ShiftSkinData.LeftTopCornerColor = borderColor;
ShiftSkinData.TitleBarColor = borderColor; ShiftSkinData.TitleBarColor = borderColor;
ShiftSkinData.RightTopCornerColor = borderColor; ShiftSkinData.RightTopCornerColor = borderColor;
ShiftSkinData.LeftSideColor = borderColor; ShiftSkinData.LeftSideColor = borderColor;

View file

@ -26,11 +26,15 @@ namespace ShiftOS.Main.ShiftOS.Apps.ShifterStuff
void SetDefaultSkin(object sender, EventArgs e) void SetDefaultSkin(object sender, EventArgs e)
{ {
int offset = 30;
SetBorderColor(Color.FromArgb(64, 64, 64)); SetBorderColor(Color.FromArgb(64, 64, 64));
ShiftSkinData.BtnCloseColor = Color.Black; ShiftSkinData.BtnCloseColor = Color.Black;
ShiftSkinData.BtnMaxColor = Color.Black; ShiftSkinData.BtnCloseHoverColor = Color.FromArgb(40, 40, 40);
ShiftSkinData.BtnMinColor = Color.Black; ShiftSkinData.BtnMaxColor = Color.Black;
button5_Click(sender, e); ShiftSkinData.BtnMaxHoverColor = Color.FromArgb(40, 40, 40);
ShiftSkinData.BtnMinColor = Color.Black;
ShiftSkinData.BtnMinHoverColor = Color.FromArgb(40, 40, 40);
button5_Click(sender, e);
} }
void SetColorSkin(object sender, EventArgs e) void SetColorSkin(object sender, EventArgs e)