IgnaceMaes / MaterialSkin

Theming .NET WinForms, C# or VB.Net, to Google's Material Design Principles.
MIT License
2.84k stars 829 forks source link

Any way to get rid of the title bar or move it into the controlbox bar? #159

Open DeadSix27 opened 7 years ago

DeadSix27 commented 7 years ago

I couldn't find a property for that or anything, I figured i could use one of those variables:

        private const int STATUS_BAR_HEIGHT = 24;
        private const int ACTION_BAR_HEIGHT = 40;

But those are private and I try not to modify the original library.

tl;dr: How can I move "MainWindow" into the controlbox bar and get rid of the "second" title bar?

EDIT2: Is there a way to hide both status bars tho? I can't figure that out, if I strip all the drawings in OnPaint i still have the margin...

I hacked it in a bit but .. its not that elegant: https://github.com/DeadSix27/MaterialSkin/commit/a1b003a2097a53dea21743a01507f2bbb7658163.patch

EDIT:

Well with modifying I got that pretty quickly, but it looks like there is no other way anyway.

Here's the patch in case anyone wants to know how: https://github.com/DeadSix27/MaterialSkin/commit/88c9470d7e890fccf72f595cc926047c747aae2d.patch

image

ghost commented 6 years ago

@DeadSix27 Thanks buddy, It's helpful to me. For anyone who look for code look at this https://github.com/DeadSix27/MaterialSkin/commit/88c9470d7e890fccf72f595cc926047c747aae2d

Copying from patch is hard.

DeadSix27 commented 6 years ago

@anirugu Use GNU patch to actually apply the patch (unless the original code differs too much at this point)

ghost commented 6 years ago

already done.

b1scoito commented 6 years ago

How do i use that? hahah