From ccdbbbed1898c5073dc460a737cdd4b7c7036bb5 Mon Sep 17 00:00:00 2001 From: TheUltimateHacker Date: Fri, 29 May 2015 09:57:53 -0400 Subject: BWM - Skinning! Yay! ShiftOS Next can finally be Shifted! Yes, that's true. I've added basic skinning to the Basic Window Manager. Currently, the only way to get to it is by typing "open shifter" in the Terminal, and the Shifter will open. Choose the settings you want and hit Apply! This is also the Alpha 3 commit, so after this I'll make the next release. --- shiftos_next/BWM User Controls/Titlebar.vb | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) (limited to 'shiftos_next/BWM User Controls') diff --git a/shiftos_next/BWM User Controls/Titlebar.vb b/shiftos_next/BWM User Controls/Titlebar.vb index 2d4e6e6..549b129 100644 --- a/shiftos_next/BWM User Controls/Titlebar.vb +++ b/shiftos_next/BWM User Controls/Titlebar.vb @@ -1,5 +1,7 @@ Public Class Titlebar + Friend WithEvents tmrcheckskin As New Timer + Public Property AppName As String Set(value As String) lbtitle.Text = value @@ -13,7 +15,9 @@ Private Sub Titlebar_Load(sender As Object, e As EventArgs) Handles Me.Load Me.Dock = DockStyle.Top - Me.BringToFront() + Me.SendToBack() + tmrcheckskin.Interval = 200 + tmrcheckskin.Start() End Sub Private Sub titlebar_MouseDown(sender As Object, e As MouseEventArgs) Handles Me.MouseDown, lbtitle.MouseDown @@ -46,4 +50,21 @@ End If End Sub + Public Sub shiftorium_special() + If boughtbasicwm = True Then + lbtitle.TextAlign = ContentAlignment.MiddleLeft + lbtitle.BackColor = Color.Gray + ParentForm.TopMost = True + ParentForm.WindowState = FormWindowState.Normal + Else + lbtitle.TextAlign = ContentAlignment.MiddleCenter + lbtitle.BackColor = Color.Black + ParentForm.WindowState = FormWindowState.Maximized + End If + End Sub + + Private Sub tmrcheckskin_Tick(sender As Object, e As EventArgs) Handles tmrcheckskin.Tick + lbtitle.BackColor = titlebarcolor + lbtitle.ForeColor = titlebartextcolor + End Sub End Class -- cgit v1.2.3