mirror of
https://github.com/TheUltimateHacker/shiftos-next.git
synced 2025-01-22 16:42:14 +00:00
ccdbbbed18
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.
36 lines
No EOL
1.3 KiB
VB.net
36 lines
No EOL
1.3 KiB
VB.net
Namespace BasicWM
|
|
Public Class Desktop
|
|
|
|
Public openterminals As Integer = 0
|
|
|
|
Private Sub btnnewterminal_Click(sender As Object, e As EventArgs) Handles btnnewterminal.Click
|
|
If openterminals = 3 Then
|
|
AddLine("The maximum ammount of Terminal windows are open.")
|
|
AddLine(username + "@" + osname + " " & Terminal.currentdir.ToLower.Replace("c:\shiftos", "~") & "$> ")
|
|
Else
|
|
Dim term As New Terminal
|
|
term.StartPosition = FormStartPosition.CenterParent
|
|
term.TopMost = True
|
|
term.Show()
|
|
openterminals += 1
|
|
End If
|
|
End Sub
|
|
|
|
Public Sub Redraw()
|
|
btnnewterminal.ForeColor = newterminalbuttontextcolor
|
|
btnnewterminal.BackColor = newterminalbuttonbackcolor
|
|
Me.BackColor = desktopbackcolor
|
|
End Sub
|
|
|
|
Private Sub Desktop_Load(sender As Object, e As EventArgs) Handles MyBase.Load
|
|
Terminal.Close()
|
|
Me.WindowState = FormWindowState.Maximized
|
|
Dim term As New Terminal
|
|
term.StartPosition = FormStartPosition.CenterParent
|
|
term.TopMost = True
|
|
term.Show()
|
|
openterminals += 1
|
|
loadskindata()
|
|
End Sub
|
|
End Class
|
|
End Namespace |